<?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:update-sql><![CDATA[
                begin
                    con_contract_change_req_pkg.insert_ccr_cashflow
                    (
                        p_contract_id=>${@contract_id},
                        p_ccr_document_type=>${@ccr_document_type},
                        p_btb_payment_date=>to_date(substr(${@btb_payment_date}, 1, 10),'yyyy-mm-dd'),
                        p_bp_id=>${@bp_id},
                        p_lease_item_id=>${@lease_item_id},
                        p_pattern=>${@pattern},
                        p_machine_number=>${@machine_number},
                        p_interim_times=>${@interim_times},
                        p_ccr_start_times=>${@ccr_start_times},
                        p_hd_user_col_v04=>${@hd_user_col_v04},
                        p_user_id=>${/session/@user_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>