Related to issue 42092: Fixed costing tests
authorMark Molina <mark.molina@doceleguas.com>
Wed, 30 Oct 2019 22:02:25 -0300
changeset 36726 20fcab3e0379
parent 36725 dcd5ec559020
child 36733 ae8a9b5dd30f
Related to issue 42092: Fixed costing tests
src-test/src/org/openbravo/test/costing/TestCostingLandedCost.java
src-test/src/org/openbravo/test/costing/TestCostingNoSourceAdjustments.java
src-test/src/org/openbravo/test/costing/TestCostingSourceAdjustments.java
--- a/src-test/src/org/openbravo/test/costing/TestCostingLandedCost.java	Thu Nov 07 16:36:01 2019 +0100
+++ b/src-test/src/org/openbravo/test/costing/TestCostingLandedCost.java	Wed Oct 30 22:02:25 2019 -0300
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2018 Openbravo SLU
+ * All portions are Copyright (C) 2018-2019 Openbravo SLU
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -2697,10 +2697,10 @@
       // Post cost adjustment 3 and assert it
       TestCostingUtils.postDocument(costAdjustmentList2.get(2));
       List<DocumentPostAssert> documentPostAssertList1 = new ArrayList<DocumentPostAssert>();
-      documentPostAssertList1.add(new DocumentPostAssert("61000", BigDecimal.ZERO, amount1, null));
+      documentPostAssertList1.add(new DocumentPostAssert("99904", BigDecimal.ZERO, amount1, null));
       documentPostAssertList1.add(new DocumentPostAssert("35000", amount1, BigDecimal.ZERO, null));
       documentPostAssertList1.add(
-          new DocumentPostAssert("61000", BigDecimal.ZERO, costAdjustmentAssertLineAmount9, null));
+          new DocumentPostAssert("99904", BigDecimal.ZERO, costAdjustmentAssertLineAmount9, null));
       documentPostAssertList1.add(
           new DocumentPostAssert("35000", costAdjustmentAssertLineAmount9, BigDecimal.ZERO, null));
       CostAdjustment costAdjustment1 = OBDal.getInstance()
--- a/src-test/src/org/openbravo/test/costing/TestCostingNoSourceAdjustments.java	Thu Nov 07 16:36:01 2019 +0100
+++ b/src-test/src/org/openbravo/test/costing/TestCostingNoSourceAdjustments.java	Wed Oct 30 22:02:25 2019 -0300
@@ -827,7 +827,7 @@
       // Post cost adjustment and assert it
       TestCostingUtils.postDocument(costAdjustmentList1.get(0));
       List<DocumentPostAssert> documentPostAssertList1 = new ArrayList<DocumentPostAssert>();
-      documentPostAssertList1.add(new DocumentPostAssert("61000",
+      documentPostAssertList1.add(new DocumentPostAssert("99904",
           quantity1.multiply(price1).add(quantity1.multiply(price2).negate()), BigDecimal.ZERO,
           null));
       documentPostAssertList1.add(new DocumentPostAssert("35000", BigDecimal.ZERO,
@@ -896,7 +896,7 @@
       // Post cost adjustment 1 and assert it
       TestCostingUtils.postDocument(costAdjustmentList2.get(0));
       List<DocumentPostAssert> documentPostAssertList21 = new ArrayList<DocumentPostAssert>();
-      documentPostAssertList21.add(new DocumentPostAssert("61000",
+      documentPostAssertList21.add(new DocumentPostAssert("99904",
           quantity1.multiply(price1).add(quantity1.multiply(price2).negate()), BigDecimal.ZERO,
           null));
       documentPostAssertList21.add(new DocumentPostAssert("35000", BigDecimal.ZERO,
@@ -914,7 +914,7 @@
       // Post cost adjustment 2 and assert it
       TestCostingUtils.postDocument(costAdjustmentList2.get(1));
       List<DocumentPostAssert> documentPostAssertList22 = new ArrayList<DocumentPostAssert>();
-      documentPostAssertList22.add(new DocumentPostAssert("61000", BigDecimal.ZERO,
+      documentPostAssertList22.add(new DocumentPostAssert("99904", BigDecimal.ZERO,
           quantity1.multiply(price1).add(quantity1.multiply(price2).negate()), null));
       documentPostAssertList22.add(new DocumentPostAssert("35000",
           quantity1.multiply(price1).add(quantity1.multiply(price2).negate()), BigDecimal.ZERO,
--- a/src-test/src/org/openbravo/test/costing/TestCostingSourceAdjustments.java	Thu Nov 07 16:36:01 2019 +0100
+++ b/src-test/src/org/openbravo/test/costing/TestCostingSourceAdjustments.java	Wed Oct 30 22:02:25 2019 -0300
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2018 Openbravo SLU
+ * All portions are Copyright (C) 2018-2019 Openbravo SLU
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -1659,7 +1659,7 @@
       // Post cost adjustment 1 and assert it
       TestCostingUtils.postDocument(costAdjustmentList.get(0));
       List<DocumentPostAssert> documentPostAssertList = new ArrayList<DocumentPostAssert>();
-      documentPostAssertList.add(new DocumentPostAssert("61000", BigDecimal.ZERO,
+      documentPostAssertList.add(new DocumentPostAssert("99904", BigDecimal.ZERO,
           quantity1.multiply(price1).add(quantity1.multiply(price2).negate()), null));
       documentPostAssertList.add(new DocumentPostAssert("35000",
           quantity1.multiply(price1).add(quantity1.multiply(price2).negate()), BigDecimal.ZERO,
@@ -1780,7 +1780,7 @@
       // Post cost adjustment 1 and assert it
       TestCostingUtils.postDocument(costAdjustmentList.get(0));
       List<DocumentPostAssert> documentPostAssertList = new ArrayList<DocumentPostAssert>();
-      documentPostAssertList.add(new DocumentPostAssert("61000", BigDecimal.ZERO,
+      documentPostAssertList.add(new DocumentPostAssert("99904", BigDecimal.ZERO,
           quantity1.multiply(price4).add(quantity1.multiply(price2).negate()), null));
       documentPostAssertList.add(new DocumentPostAssert("35000",
           quantity1.multiply(price4).add(quantity1.multiply(price2).negate()), BigDecimal.ZERO,