<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: ZLF  
    $Date: 2015-2-5 下午1:52:16  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
             begin
                UPDATE
                    acr_invoice_hd t
                SET
                    t.receipt_print_status   ='Y',
                    t.last_receipt_print_time=sysdate
                WHERE
                    t.invoice_hd_id IN (${:@invoice_hd_id}) AND
                    (
                        t.receipt_number        IS NULL OR
                        ${/parameter/@again_flag}='Y'
                    );
              end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
