<bm:fieldname="left_amount"expression="(select decode(cf_item,1,ca.due_amount - nvl(ca.received_amount,0)) from con_contract_cashflow ca where ca.cashflow_id = t1.write_off_cashflow_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="unreceived_amount"expression="(select ca.due_amount - nvl(ca.received_amount,0) from con_contract_cashflow ca where ca.cashflow_id = t1.write_off_cashflow_id)"forInsert="false"forUpdate="false"/>
<!--<bm:field name="unreceived_amount" expression="(select ca.due_amount - nvl(ca.received_amount,0) from con_contract_cashflow ca where ca.cashflow_id = t1.write_off_cashflow_id)" forInsert="false" forUpdate="false"/>-->
due_amount) -nvl(received_amount,0) from con_contract_cashflow where cashflow_id = t1.write_off_cashflow_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="left_principal"expression="(select ca.principal - nvl(ca.received_principal,0) from con_contract_cashflow ca where ca.cashflow_id = t1.write_off_cashflow_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="left_interest"expression="(select ca.interest - nvl(ca.received_interest,0) from con_contract_cashflow ca where ca.cashflow_id = t1.write_off_cashflow_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="unreceived_penalty"expression="(select ca.due_amount - nvl(ca.received_amount,0) from con_contract_cashflow ca where ca.contract_id = t1.contract_id and ca.times = t1.write_off_times and cf_item = 9 and cf_status = 'RELEASE')"forInsert="false"forUpdate="false"/>
...
...
@@ -119,7 +133,14 @@ end;
<bm:fieldname="interest"expression="(select interest from con_contract_cashflow where cashflow_id = t1.write_off_cashflow_id)"/>