<bm:fieldname="project_name"databaseType="VARCHAR2"datatype="java.lang.String"expression="(select p.project_name from prj_project p ,con_contract c where c.contract_id = t1.contract_id and p.project_id = c.project_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="finance_amount"databaseType="NUMBER"datatype="java.lang.Double"expression="(select c.finance_amount from con_contract c where c.contract_id = t1.contract_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="period"databaseType="VARCHAR2"datatype="java.lang.String"expression="((CASE WHEN t1.cf_item = 8 THEN (SELECT to_char(cf1.due_date,'yyyy/mm/dd') FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item)||'-'||(SELECT TO_CHAR(cf.due_date, 'yyyy/mm/dd') FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id) ELSE ( (SELECT to_char(cf1.due_date,'yyyy/mm/dd') FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item AND cf1.times = (SELECT cf.times - 1 FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id)) ||'-'|| (SELECT TO_CHAR(cf.due_date -1, 'yyyy/mm/dd') FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id))END))"forInsert="false"forUpdate="false"/>
<bm:fieldname="period"databaseType="VARCHAR2"datatype="java.lang.String"expression="((CASE WHEN t1.cf_item = 8 THEN (SELECT to_char(cf1.due_date,'yyyy/mm/dd') FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item)|| '-' ||(SELECT TO_CHAR(cf.due_date, 'yyyy/mm/dd') FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id) ELSE ( (SELECT to_char(cf1.due_date,'yyyy/mm/dd') FROM con_contract_cashflow cf1 WHERE cf1.contract_id = t1.contract_id AND cf1.cf_item = t1.cf_item AND cf1.times = (SELECT cf.times - 1 FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id)) || nvl2((Select to_char(cf1.due_date, 'yyyy/mm/dd') From con_contract_cashflow cf1 Where cf1.contract_id = t1.contract_id And cf1.cf_item = t1.cf_item And cf1.times = (Select cf.times - 1 From con_contract_cashflow cf Where cf.cashflow_id = t1.cashflow_id)), '-', '') || (SELECT TO_CHAR(cf.due_date -1, 'yyyy/mm/dd') FROM con_contract_cashflow cf WHERE cf.cashflow_id = t1.cashflow_id))END))"forInsert="false"forUpdate="false"/>
<bm:fieldname="interest"databaseType="NUMBER"datatype="java.lang.Double"expression="(select c.interest from con_contract_cashflow c where c.cashflow_id = t1.cashflow_id)"forInsert="false"forUpdate="false"/>
<bm:fieldname="int_rate_implicit"databaseType="NUMBER"datatype="java.lang.Double"expression="round((select c.int_rate from con_contract c where c.contract_id = t1.contract_id),4)"forInsert="false"forUpdate="false"/>