Related to issue 42092: Code review improvements
authorÁlvaro Ferraz <alvaro.ferraz@openbravo.com>
Thu, 07 Nov 2019 16:36:01 +0100
changeset 36725 dcd5ec559020
parent 36724 2e969cbadcac
child 36726 20fcab3e0379
Related to issue 42092: Code review improvements
src/org/openbravo/erpCommon/ad_forms/DocLineCostAdjustment_data.xsql
src/org/openbravo/erpCommon/ad_forms/DocLine_CostAdjustment.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocLineCostAdjustment_data.xsql	Tue Oct 29 21:42:45 2019 -0300
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLineCostAdjustment_data.xsql	Thu Nov 07 16:36:01 2019 +0100
@@ -30,9 +30,9 @@
       <![CDATA[
         SELECT CAL.M_COSTADJUSTMENTLINE_ID, CAL.AD_Client_ID, T.AD_Org_ID,
         CAL.M_COSTADJUSTMENT_ID, CAL.M_TRANSACTION_ID, CAL.ADJUSTMENT_AMOUNT, 
-        CAL.ISSOURCE, CAL.NEEDSPOSTING, CAL.DATEACCT, CAL.ISRELATEDTRXADJUSTED, CAL.PARENT_COSTADJUSTMENTLINE_ID,
+        CAL.ISSOURCE, CAL.ISUNITCOST, CAL.NEEDSPOSTING, CAL.DATEACCT, CAL.ISRELATEDTRXADJUSTED, CAL.PARENT_COSTADJUSTMENTLINE_ID,
         T.M_PRODUCT_ID, L.M_WAREHOUSE_ID, CAL.C_CURRENCY_ID, CA.SOURCE_PROCESS AS SOURCE_PROCESS, 
-        IO.C_BPARTNER_ID AS C_BPARTNER_ID, CAL.ISUNITCOST
+        IO.C_BPARTNER_ID AS C_BPARTNER_ID
         FROM M_COSTADJUSTMENTLINE CAL, M_COSTADJUSTMENT CA, M_LOCATOR L, 
         M_TRANSACTION T LEFT JOIN M_INOUTLINE IOL ON T.M_INOUTLINE_ID = IOL.M_INOUTLINE_ID
                         LEFT JOIN M_INOUT IO ON IOL.M_INOUT_ID = IO.M_INOUT_ID
--- a/src/org/openbravo/erpCommon/ad_forms/DocLine_CostAdjustment.java	Tue Oct 29 21:42:45 2019 -0300
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_CostAdjustment.java	Thu Nov 07 16:36:01 2019 +0100
@@ -73,6 +73,14 @@
     return isSource;
   }
 
+  public void setIsUnitCost(boolean isUnitCost) {
+    this.isUnitCost = isUnitCost;
+  }
+
+  public boolean isUnitCost() {
+    return isUnitCost;
+  }
+
   public void setTrxType(String transactionId) {
     MaterialTransaction transaction = OBDal.getInstance()
         .get(MaterialTransaction.class, transactionId);
@@ -204,14 +212,6 @@
     return transactionNegative;
   } // setAmounts
 
-  public boolean isUnitCost() {
-    return isUnitCost;
-  }
-
-  public void setIsUnitCost(boolean isUnitCost) {
-    this.isUnitCost = isUnitCost;
-  }
-
   /**
    * Line Account from Product (or Charge).
    *