<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: wangwei  
    $Date: 2015-12-25 下午3:52:15  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="SDIC_ACR_INVOICE_LINE">
    <bm:fields>
        <bm:field name="invoice_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_ID" prompt="SDIC_ACR_INVOICE_LINE.INVOICE_ID"/>
        <bm:field name="invoice_line_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_LINE_ID" prompt="SDIC_ACR_INVOICE_LINE.INVOICE_LINE_ID"/>
        <bm:field name="invoice_date" databaseType="DATE" datatype="java.util.Date" physicalName="INVOICE_DATE" prompt="SDIC_ACR_INVOICE_LINE.INVOICE_DATE"/>
        <bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER" prompt="SDIC_ACR_INVOICE_LINE.INVOICE_NUMBER"/>
        <bm:field name="invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_CODE" prompt="SDIC_ACR_INVOICE_LINE.INVOICE_CODE"/>
        <bm:field name="net_invoice_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="NET_INVOICE_AMOUNT" prompt="SDIC_ACR_INVOICE_LINE.NET_INVOICE_AMOUNT"/>
        <bm:field name="vat_invoice_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="VAT_INVOICE_AMOUNT" prompt="SDIC_ACR_INVOICE_LINE.VAT_INVOICE_AMOUNT"/>
        <bm:field name="vat_invoice_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="VAT_INVOICE_RATE" prompt="SDIC_ACR_INVOICE_LINE.VAT_INVOICE_RATE"/>
        <bm:field name="invoice_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INVOICE_AMOUNT" prompt="SDIC_ACR_INVOICE_LINE.INVOICE_AMOUNT"/>
        <bm:field name="cf_item_desc"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk autoReturn="true" sequenceName="sdic_acr_invoice_line_s"/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="invoice_line_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="invoice_id" queryExpression="t1.invoice_id=${@invoice_id}"/>
    </bm:query-fields>
</bm:model>
