<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                BEGIN
                    -- Call the procedure
                    csh_batch_transaction_pkg.auto_transaction_and_write_off(p_batch_id => ${@batch_id},
                                                           p_user_id => ${/session/@user_id},
                                                           p_company_id => ${/session/@company_id});
                END;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    -- Call the procedure
                    csh_batch_transaction_pkg.auto_transaction(p_deduction_id => ${@deduction_id},
                                                           p_user_id => ${/session/@user_id},
                                                           p_company_id => ${/session/@company_id});
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
