<?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="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_rent_trans_pently_pkg.submit_rent_trans_pently(p_contract_id=>${@contract_id},
                                                        p_user_id=>${/session/@user_id},
                                                        p_record_id=>${@record_id} );
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_rent_trans_pently_pkg.update_rent_trans_pently(p_contract_id=>${@contract_id},
                                                        p_user_id=>${/session/@user_id},
                                                        p_record_id=>${@record_id},
                                                         p_csh_write_off_id=>${@write_off_id});
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_rent_trans_pently_pkg.check_rent_trans_pently(p_contract_id=>${@contract_id},
                                                        p_user_id=>${/session/@user_id},
                                                        p_record_id=>${@record_id},
                                                        p_description => ${@description});
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
