Author: ashish
Date: Thu Jul 9 06:36:08 2009 New Revision: 792414 URL: http://svn.apache.org/viewvc?rev=792414&view=rev Log: Adding entities for the new work coming for commission invoice generation for more then one sales invoice. For more details please refer OFBIZ-2713. Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml?rev=792414&r1=792413&r2=792414&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml (original) +++ ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Thu Jul 9 06:36:08 2009 @@ -1263,6 +1263,51 @@ <key-map field-name="salesOpportunityId"/> </relation> </entity> + + <entity entity-name="InvoiceItemAssoc" + package-name="org.ofbiz.accounting.invoice" + title="Invoice Item Association Entity"> + <field name="invoiceIdFrom" type="id-ne"></field> + <field name="invoiceItemSeqIdFrom" type="id-ne"></field> + <field name="invoiceIdTo" type="id-ne"></field> + <field name="invoiceItemSeqIdTo" type="id-ne"></field> + <field name="invoiceItemAssocTypeId" type="id-ne"></field> + <field name="fromDate" type="date-time"></field> + <field name="thruDate" type="date-time"></field> + <field name="quantity" type="fixed-point"></field> + <field name="amount" type="currency-amount"></field> + <prim-key field="invoiceIdFrom"/> + <prim-key field="invoiceItemSeqIdFrom"/> + <prim-key field="invoiceIdTo"/> + <prim-key field="invoiceItemSeqIdTo"/> + <prim-key field="invoiceItemAssocTypeId"/> + <prim-key field="fromDate"/> + <relation type="one" fk-name="IN_ITMASSC_TYP" rel-entity-name="InvoiceItemAssocType"> + <key-map field-name="invoiceItemAssocTypeId"/> + </relation> + <relation type="one" fk-name="IN_ITMASSC_FIITM" title="From" rel-entity-name="InvoiceItem"> + <key-map field-name="invoiceIdFrom" rel-field-name="invoiceId"/> + <key-map field-name="invoiceItemSeqIdFrom" rel-field-name="invoiceItemSeqId"/> + </relation> + <relation type="one" fk-name="IN_ITMASSC_TIITM" title="To" rel-entity-name="InvoiceItem"> + <key-map field-name="invoiceIdTo" rel-field-name="invoiceId"/> + <key-map field-name="invoiceItemSeqIdTo" rel-field-name="invoiceItemSeqId"/> + </relation> + </entity> + + <entity entity-name="InvoiceItemAssocType" + package-name="org.ofbiz.accounting.invoice" + title="Invoice Item Assoc Type Entity"> + <field name="invoiceItemAssocTypeId" type="id-ne"></field> + <field name="parentTypeId" type="id-ne"></field> + <field name="hasTable" type="indicator"></field> + <field name="description" type="description"></field> + <prim-key field="invoiceItemAssocTypeId"/> + <relation type="one" fk-name="IN_ITMASSC_TYP" title="Parent" rel-entity-name="InvoiceItemAssocType"> + <key-map field-name="parentTypeId" rel-field-name="invoiceItemAssocTypeId"/> + </relation> + </entity> + <entity entity-name="InvoiceItemAttribute" package-name="org.ofbiz.accounting.invoice" title="Invoice Item Attribute Entity"> |
Free forum by Nabble | Edit this page |