Author: apatel
Date: Mon Sep 27 02:49:46 2010
New Revision: 1001574

URL: http://svn.apache.org/viewvc?rev=1001574&view=rev
Log:
bug fix, In case of purchase invoice invoice partyId is internal organization 
and not partyIdFrom. 

Modified:
    
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml

Modified: 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml?rev=1001574&r1=1001573&r2=1001574&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
 (original)
+++ 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
 Mon Sep 27 02:49:46 2010
@@ -2112,7 +2112,7 @@ under the License.
                     <clear-field field="debitEntry"/>
                     <make-value entity-name="AcctgTransEntry" 
value-field="debitEntry"/>
                     <set field="debitEntry.debitCreditFlag" value="D"/>
-                    <set field="debitEntry.organizationPartyId" 
from-field="invoice.partyIdFrom"/>
+                    <set field="debitEntry.organizationPartyId" 
from-field="invoice.partyId"/>
                     <call-class-method 
method-name="getInvoiceTaxTotalForTaxAuthPartyAndGeo" 
class-name="org.ofbiz.accounting.invoice.InvoiceWorker"
                             ret-field="taxAmount">
                         <field field="invoice" type="GenericValue"/>
@@ -2130,7 +2130,7 @@ under the License.
             <clear-field field="debitEntry"/>
             <make-value entity-name="AcctgTransEntry" 
value-field="debitEntry"/>
             <set field="debitEntry.debitCreditFlag" value="D"/>
-            <set field="debitEntry.organizationPartyId" 
from-field="invoice.partyIdFrom"/>
+            <set field="debitEntry.organizationPartyId" 
from-field="invoice.partyId"/>
             <call-class-method method-name="getInvoiceUnattributedTaxTotal" 
class-name="org.ofbiz.accounting.invoice.InvoiceWorker"
                     ret-field="taxAmount">
                 <field field="invoice" type="GenericValue"/>


Reply via email to