Backed out changeset f5b89bd131a9
authorDavid Miguelez <david.miguelez@openbravo.com>
Fri, 26 Jun 2015 13:44:06 +0200
changeset 27160 5c8a864ef970
parent 27159 f5b89bd131a9
child 27161 04dd2c60fad1
Backed out changeset f5b89bd131a9
src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java
--- a/src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java	Fri Jun 26 13:43:05 2015 +0200
+++ b/src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java	Fri Jun 26 13:44:06 2015 +0200
@@ -446,14 +446,6 @@
     BigDecimal adjAmt = BigDecimal.ZERO;
     TrxType calTrxType = TrxType.getTrxType(costAdjLine.getInventoryTransaction());
 
-    if (costAdjLine.getInventoryTransaction().isCostPermanent() && costAdjLine.isUnitCost()) {
-      costAdjLine.setCurrency((Currency) OBDal.getInstance().getProxy(Currency.ENTITY_NAME,
-          strCostCurrencyId));
-      costAdjLine.setAdjustmentAmount(adjAmt);
-      OBDal.getInstance().save(costAdjLine);
-      return;
-    }
-
     // Incoming transactions does not modify the calculated cost
     switch (calTrxType) {
     case ShipmentVoid: