<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
	            begin
	            	csh_transaction_interface_pkg.auto_write_off (p_transaction_id  =>${@transaction_id},
                            									  p_conds_account_num  =>${@csh_bp_bank_account_num},
                            									  p_conds_account_name =>${@csh_bp_bank_account_name},
                            									  p_conds_trx_amount   =>${@csh_trx_amount},
                            									  p_user_id   =>${/session/@user_id},
                            									  p_warning_msg=>${@warning_msg});
                end;
	        ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="warning_msg" dataType="java.lang.Long" output="true" outputPath="@warning_msg"/>
            </bm:parameters>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                begin
                	 csh_transaction_interface_pkg.import_write_off_interface(p_company_id	=>${/session/@company_id},
                	 														  p_write_off_batch_id =>${@write_off_batch_id},
                	 														  p_do_after_assigns => ${@do_after_assigns},
                	 														  p_user_id		=>${/session/@user_id},
                	 														  p_err_count	=>${@err_count});
                end;
            ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="err_count" dataType="java.lang.Long" output="true" outputPath="@err_count"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
