Related to issue 30120: Applied OB code format
authorVíctor Martínez Romanos <victor.martinez@openbravo.com>
Wed, 10 Jun 2015 17:02:19 +0200
changeset 26892 4c6de7a747e1
parent 26891 ba00fcc9d5bf
child 26893 0e8c70499208
child 26896 29888743cfde
Related to issue 30120: Applied OB code format
src/org/openbravo/costing/StandardCostAdjustment.java
src/org/openbravo/event/GLJournalEventHandler.java
--- 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;
     }