details: https://code.openbravo.com/erp/devel/pi/rev/a8dc1bea4612 changeset: 33940:a8dc1bea4612 user: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> date: Wed May 09 13:30:44 2018 +0200 summary: Related to issue 38459: Use currency standard precision instead of costing precision
diffstat: src/org/openbravo/costing/AverageAlgorithm.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 94997b80fc70 -r a8dc1bea4612 src/org/openbravo/costing/AverageAlgorithm.java --- a/src/org/openbravo/costing/AverageAlgorithm.java Wed May 09 12:25:30 2018 +0200 +++ b/src/org/openbravo/costing/AverageAlgorithm.java Wed May 09 13:30:44 2018 +0200 @@ -143,7 +143,7 @@ cost.setQuantity(transaction.getMovementQuantity()); cost.setTotalMovementQuantity(currentStock.add(transaction.getMovementQuantity())); cost.setTotalStockValuation(currentValuedStock.add(trxCost.setScale(costCurrency - .getCostingPrecision().intValue(), RoundingMode.HALF_UP))); + .getStandardPrecision().intValue(), RoundingMode.HALF_UP))); if (transaction.getMovementQuantity().signum() == 0) { cost.setPrice(newCost); } else { ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits