--- a/src/org/openbravo/costing/StandardCostAdjustment.java Wed Jun 10 09:56:13 2015 +0530
+++ b/src/org/openbravo/costing/StandardCostAdjustment.java Wed Jun 10 17:02:19 2015 +0200
@@ -93,7 +93,7 @@
MaterialTransaction relTrx = (MaterialTransaction) trxs.get()[0];
BigDecimal currentCost = CostAdjustmentUtils.getTrxCost(relTrx, true, trx.getCurrency());
BigDecimal expectedCost = relTrx.getMovementQuantity().abs().multiply(unitCost)
- .setScale(stdCurPrecission, RoundingMode.HALF_UP);
+ .setScale(stdCurPrecission, RoundingMode.HALF_UP);
if (expectedCost.compareTo(currentCost) != 0) {
CostAdjustmentLine newCAL = insertCostAdjustmentLine(relTrx,
expectedCost.subtract(currentCost), null);
--- a/src/org/openbravo/event/GLJournalEventHandler.java Wed Jun 10 09:56:13 2015 +0530
+++ b/src/org/openbravo/event/GLJournalEventHandler.java Wed Jun 10 17:02:19 2015 +0200
@@ -43,7 +43,8 @@
return entities;
}
- public void onUpdate(@Observes EntityUpdateEvent event) {
+ public void onUpdate(@Observes
+ EntityUpdateEvent event) {
if (!isValidEvent(event)) {
return;
}