Author: ashish
Date: Mon Jul 13 11:33:06 2009
New Revision: 793550
URL:
http://svn.apache.org/viewvc?rev=793550&view=revLog:
specialpurpose components are loaded after applications components. DemoSupplier & AcctBigSupplier data exists in ecommerce component.
So it creates foreign key violation as accounting component is loaded first and it tries to find 'DemoSupplier' and 'AcctBigSupplier' party.
This change will help to load test data without producing any foreign key error.
Adding the same comment in data file.
Thanks Deepak for your report on this.
Modified:
ofbiz/trunk/applications/accounting/data/PaymentsInvoices.xml
Modified: ofbiz/trunk/applications/accounting/data/PaymentsInvoices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/data/PaymentsInvoices.xml?rev=793550&r1=793549&r2=793550&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/data/PaymentsInvoices.xml (original)
+++ ofbiz/trunk/applications/accounting/data/PaymentsInvoices.xml Mon Jul 13 11:33:06 2009
@@ -74,6 +74,14 @@
<Invoice invoiceId="8001" invoiceTypeId="PURCHASE_INVOICE" partyIdFrom="AcctBigSupplier" partyId="Company" statusId="INVOICE_READY" invoiceDate="2009-07-06 16:48:40.952" paidDate="2009-07-06 16:52:52.901"/>
<InvoiceItem invoiceId="8001" invoiceItemSeqId="1" invoiceItemTypeId="PINV_SURCHARGE_ADJ" taxableFlag="Y" quantity="1.000000" amount="10.000"/>
+ <!--
+ specialpurpose components are loaded after applications components. DemoSupplier & AcctBigSupplier data exists in ecommerce component.
+ So it creates foreign key violation as accounting component is loaded first and it tries to find 'DemoSupplier' and 'AcctBigSupplier' party.
+ This change will help to load test data without producing any foreign key error.
+ -->
+ <Party partyId="DemoSupplier"/>
+ <Party partyId="AcctBigSupplier"/>
+
<!--demo data for testCancelCheckRunPayments-->
<Invoice invoiceId="8002" invoiceTypeId="PURCHASE_INVOICE" partyIdFrom="AcctBigSupplier" partyId="Company" statusId="INVOICE_PAID" invoiceDate="2009-07-11 12:24:31.85" paidDate="2009-07-11 12:28:44.034" currencyUomId="USD"/>
<Invoice invoiceId="8003" invoiceTypeId="PURCHASE_INVOICE" partyIdFrom="AcctBigSupplier" partyId="Company" statusId="INVOICE_PAID" invoiceDate="2009-07-11 12:25:26.085" paidDate="2009-07-11 12:28:44.034" currencyUomId="USD"/>