Author: apatel Date: Sat Sep 25 03:44:26 2010 New Revision: 1001131 URL: http://svn.apache.org/viewvc?rev=1001131&view=rev Log: bug fix, In case of return invoice invoice partyIdTo is internal organization and not partyIdFrom. I see same issue purchase invoice posting case as well. Will fix it when I work on PO.
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=1001131&r1=1001130&r2=1001131&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 Sat Sep 25 03:44:26 2010 @@ -1948,7 +1948,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.partyIdTo"/> <call-class-method method-name="getInvoiceTaxTotalForTaxAuthPartyAndGeo" class-name="org.ofbiz.accounting.invoice.InvoiceWorker" ret-field="taxAmount"> <field field="invoice" type="GenericValue"/>