<?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
                    sdic_tre_loan_contract_pkg.insert_contract_repayment
                    (
                        p_loan_contract_id=>${@loan_contract_id},
                        p_widthdrawal_plan_id=>${@widthdrawal_plan_id},
                        p_amount=>${@amount},
                        p_user_id=>${/session/@user_id},
                        p_repayment_id=>${@repayment_id}

                    );
                end;]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="repayment_id" dataType="java.lang.Long" input="false" output="true" outputPath="@repayment_id"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>