<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="contract_id" input="true" output="false"/>
                <bm:parameter name="btb_payment_date" input="true" output="false"/>
                <bm:parameter name="ccr_leasse_rental" dataType="java.lang.Double" input="false" output="true"/>
                <bm:parameter name="ccr_leasse_principal" dataType="java.lang.Double" input="false" output="true"/>
                <bm:parameter name="ccr_leasse_interest" dataType="java.lang.Double" input="false" output="true"/>
                <bm:parameter name="ccr_leasse_penalty" dataType="java.lang.Double" input="false" output="true"/>
                <bm:parameter name="ccr_outstanding_prin_ti_total" dataType="java.lang.Double" input="false" output="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    con_contract_change_req_pkg.calc_leasse_date
                    (
                        p_contract_id=>${@contract_id},
                        p_btb_payment_date=>to_date(${@btb_payment_date},'yyyy-mm-dd'),
                        p_ccr_leasse_rental=>${@ccr_leasse_rental},
                        p_ccr_leasse_principal=>${@ccr_leasse_principal},
                        p_ccr_leasse_interest=>${@ccr_leasse_interest},
                        p_ccr_leasse_penalty=>${@ccr_leasse_penalty},
                        p_ccr_outstanding_cld=>${@ccr_outstanding_prin_ti_total}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
