<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR
    $Date: 2013-7-16 下午06:07:55
    $Revision: 1.0
    $Purpose:
-->

<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">

    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
            begin
              acr_invoice_pkg.acr_invoice_status_change(p_invoice_hd=> ${@invoice_hd_ids},
                                                        p_want_status=>${@want_status},
                                                        p_user_id=>${/session/@user_id} );
            end;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            begin
              acr_invoice_pkg.acr_invoice_status_reject(p_invoice_hd_id=> ${@invoice_hd_id},
                                                        p_want_status=>${@want_status},
                                                        p_user_id=>${/session/@user_id} );
            end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
