Author: jacopoc
Date: Wed Oct 30 09:58:40 2013
New Revision: 1537026
URL:
http://svn.apache.org/r1537026Log:
Applied fix from trunk for revision: 1537023
===
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/branches/release12.04/ (props changed)
ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1537023
Modified: ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml?rev=1537026&r1=1537025&r2=1537026&view=diff==============================================================================
--- ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml (original)
+++ ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml Wed Oct 30 09:58:40 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}">