Author: jacopoc
Date: Wed Oct 30 09:54:45 2013
New Revision: 1537023
URL:
http://svn.apache.org/r1537023Log:
Applied patch from OFBIZ-5359 that fixes an error in the computation of accounting quantity difference: thanks to Michael Ende for the contribution.
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=1537023&r1=1537022&r2=1537023&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 Wed Oct 30 09:54:45 2013
@@ -1198,7 +1198,7 @@ under the License.
</if-compare-field>
<!-- An inventory item detail record is created to keep track of the units (value) that we are going to add to the inventory account -->
<set from-field="costInventoryItem.inventoryItemId" field="createDetailMap.inventoryItemId"/>
- <set value="${-1 * costInventoryItemQuantity}" field="createDetailMap.accountingQuantityDiff" type="BigDecimal"/>
+ <set value="${(-1) * costInventoryItemQuantity}" field="createDetailMap.accountingQuantityDiff" type="BigDecimal"/>
<call-service service-name="createInventoryItemDetail" in-map-name="createDetailMap"/>
<calculate field="costInventoryItemAmount" decimal-scale="${ledgerDecimals}" rounding-mode="${roundingMode}">