<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhuxianfei
    $Date: 2018/7/26 14:11
    $Revision: 1.0
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                begin
                acp_invoice_import_pkg.acp_invoice_import(p_invoice_type =>  ${@invoice_type},
                                                          p_invoice_code =>  ${@invoice_code},
                                                          p_invoice_number=> ${@invoice_number},
                                                          p_net_amount   =>  ${@net_amount},
                                                          p_invoice_date =>  ${@invoice_date},
                                                          p_user_id      =>  ${/session/@user_id},
                                                          p_contract_id  =>  ${@contract_id});
                end;
                ]]>
            </bm:update-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                begin
                acp_invoice_import_pkg.submit_wfl(  p_contract_id  =>  ${@contract_id},
                                                    p_user_id      =>  ${/session/@user_id},
                                                    p_company_id      =>  ${/session/@company_id});
                end;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
