<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2013-5-22 下午05:30:09  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            	begin
            		csh_write_off_pkg.main_write_off(
            			   p_session_id           =>${/session/@session_id},
                           p_transaction_id       =>${@transaction_id},
                           p_cross_currency_flag  =>nvl(${@cross_currency_flag},'N'),
                           p_receipt_flag		  =>'N',
                           p_user_id              =>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
            	begin
            		hlcm_cux_deposit_pkg.create_deposit_entry_je(
                           p_transaction_id       =>${@transaction_id},
                           p_user_id              =>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
