Fixes Issue 27395. Implements feat. Req. to add info about Product Unit Cost.
authorDavid Miguelez <david.miguelez@openbravo.com>
Tue, 11 Nov 2014 17:32:58 +0530
changeset 25724 6f9cc94e865d
parent 25360 539fa37a226a
child 25725 87b0a4144cc7
Fixes Issue 27395. Implements feat. Req. to add info about Product Unit Cost.

*Adds a new Table named M_Stock_Valuation to store Stock, Stock Valuation
and Unit Cost of a Product.
*Adds ModuleScript to fill this Table for existing Data.
*Adds Process to Reset this Table
*Modifies M_Transaction_Trg and adds M_Transaction_Cost_Trg to Update
the values of M_Stock_Valuation Table when Stock is introduced
and when the Cost is calculated or adjusted.
*Modifes M_Product_Trg to initialize the information of this Table
when the Product is created.
src-db/database/model/functions/M_INITIALIZE_STOCK_VALUATION.xml
src-db/database/model/functions/M_UPDATE_STOCK_VALUATION.xml
src-db/database/model/tables/M_STOCK_VALUATION.xml
src-db/database/model/triggers/M_PRODUCT_TRG.xml
src-db/database/model/triggers/M_TRANSACTION_COST_TRG.xml
src-db/database/model/triggers/M_TRANSACTION_TRG.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_DATASET_TABLE.xml
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
src-db/database/sourcedata/AD_MENU.xml
src-db/database/sourcedata/AD_REFERENCE.xml
src-db/database/sourcedata/AD_REF_LIST.xml
src-db/database/sourcedata/AD_TAB.xml
src-db/database/sourcedata/AD_TABLE.xml
src-db/database/sourcedata/AD_TREENODE.xml
src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
src-db/database/sourcedata/OBUIAPP_PROCESS.xml
src-db/database/sourcedata/OBUISEL_SELECTOR.xml
src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
src/org/openbravo/costing/ResetStockValuation.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/model/functions/M_INITIALIZE_STOCK_VALUATION.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+  <database name="FUNCTION M_INITIALIZE_STOCK_VALUATION">
+    <function name="M_INITIALIZE_STOCK_VALUATION" type="NULL">
+      <parameter name="p_client" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_org" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_product" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <body><![CDATA[/*************************************************************************
+* The contents of this file are subject to the Openbravo  Public  License
+* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+* Version 1.1  with a permitted attribution clause; you may not  use this
+* file except in compliance with the License. You  may  obtain  a copy of
+* the License at http://www.openbravo.com/legal/license.html
+* Software distributed under the License  is  distributed  on  an "AS IS"
+* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+* License for the specific  language  governing  rights  and  limitations
+* under the License.
+* The Original Code is Openbravo ERP.
+* The Initial Developer of the Original Code is Openbravo SLU
+* All portions are Copyright (C) 2014 Openbravo SLU
+* All Rights Reserved.
+* Contributor(s):  ______________________________________.
+************************************************************************/
+  
+  -- Parameter
+  TYPE RECORD IS REF CURSOR;
+  Cur_legal_entities RECORD;
+  Cur_products RECORD;
+  Cur_values RECORD;
+  
+  -- Parameter Variables
+  v_currency_ID    				VARCHAR2(32);
+
+BEGIN
+
+  FOR Cur_legal_entities IN (
+ 
+    SELECT ad_org_id, warehouse_dimension
+    FROM m_costing_rule cr
+    WHERE isvalidated = 'Y'
+      AND COALESCE(datefrom, TO_DATE('01-01-1900', 'DD-MM-YYYY')) <= now()
+      AND COALESCE(dateto, TO_DATE('01-01-9999', 'DD-MM-YYYY')) >= now()
+      AND ad_client_id = p_client
+      AND (p_org IS NULL OR ad_org_id IN (SELECT ad_org_id
+                                          FROM ad_org
+                                          WHERE (ad_isorgincluded(ad_org_id, p_org, p_client) <> -1
+                                          OR ad_isorgincluded(p_org, ad_org_id, p_client) <> -1
+                                          OR ad_org_id = '0'))
+      AND ad_client_id = p_client)
+
+  ) LOOP
+    
+    SELECT c_currency_id
+    INTO v_currency_ID
+    FROM ad_org
+    WHERE ad_org_id = Cur_legal_entities.ad_org_id;
+
+    FOR Cur_products IN (
+       SELECT m_product_id
+       FROM m_product
+       WHERE ad_org_id IN (SELECT ad_org_id
+                           FROM ad_org
+                           WHERE (ad_isorgincluded(ad_org_id, cur_legal_entities.ad_org_id, p_client) <> -1
+                           OR ad_isorgincluded(cur_legal_entities.ad_org_id, ad_org_id, p_client) <> -1
+                           OR ad_org_id = '0'))
+       AND ad_client_id = p_client
+       AND isstocked = 'Y'
+       AND producttype = 'I'
+       AND (p_product IS NULL OR m_product_id = p_product)
+       
+    ) LOOP
+    
+      DBMS_OUTPUT.PUT_LINE( 'product' || cur_products.m_product_id);
+    
+      FOR Cur_values IN (
+      
+        SELECT COALESCE(SUM(aa.qty),0) as stock, COALESCE(SUM(aa.total_cost),0) as valuation, COUNT(*), aux_warehouse_id as m_warehouse_id
+        FROM (SELECT a.m_product_id, CASE a.iscostcalculated
+                                       WHEN 'Y' THEN c_currency_convert_precision(sumcost, a.c_currency_id, v_currency_id, a.movementdate, NULL, p_client, Cur_legal_entities.ad_org_id, 'C')
+                                       ELSE NULL
+                                     END AS total_cost, a.qty, aux_warehouse_id
+              FROM (SELECT trx.m_product_id,  SUM(trx.movementqty) AS qty, SUM (CASE WHEN trx.movementqty < 0 THEN -tc.cost ELSE tc.cost END) AS sumcost, trx.iscostcalculated, 
+                           tc.c_currency_id, tc.dateacct AS movementdate, (CASE WHEN Cur_legal_entities.warehouse_dimension = 'N' THEN NULL ELSE l.m_warehouse_id END) AS aux_warehouse_id
+                    FROM m_transaction trx
+                      JOIN m_locator l ON (trx.m_locator_id=l.m_locator_id)
+                      LEFT JOIN m_transaction_cost tc ON (trx.m_transaction_id = tc.m_transaction_id)
+                    WHERE trx.m_product_id = cur_products.m_product_id
+                      AND trx.iscostcalculated = 'Y'
+                      AND trx.ad_org_id IN (SELECT ad_org_id
+                                            FROM ad_org
+                                            WHERE (ad_isorgincluded(ad_org_id, Cur_legal_entities.ad_org_id, ad_client_id) <> -1
+                                            OR ad_isorgincluded(Cur_legal_entities.ad_org_id, ad_org_id, ad_client_id) <> -1
+                                            OR ad_org_id = '0'))
+                      AND trx.ad_client_id = p_client
+                      AND trx.ad_client_id = p_client
+                    GROUP BY trx.m_transaction_id, trx.m_product_id, trx.iscostcalculated, tc.c_currency_id, tc.dateacct, aux_warehouse_id) a
+              WHERE a.sumcost <> 0) aa
+         GROUP BY aux_warehouse_id
+
+      ) LOOP
+     
+        M_UPDATE_STOCK_VALUATION(p_client, Cur_legal_entities.ad_org_id, '0', Cur_values.m_warehouse_id, cur_products.m_product_id, Cur_values.stock, ROUND(Cur_values.valuation,c_get_currency_precision(v_currency_ID, 'C'))); 
+     
+      END LOOP;      
+    END LOOP;
+  END LOOP;    
+
+RETURN;
+
+EXCEPTION
+WHEN OTHERS THEN
+  RAISE;
+END M_INITIALIZE_STOCK_VALUATION
+]]></body>
+    </function>
+  </database>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/model/functions/M_UPDATE_STOCK_VALUATION.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -0,0 +1,118 @@
+<?xml version="1.0"?>
+  <database name="FUNCTION M_UPDATE_STOCK_VALUATION">
+    <function name="M_UPDATE_STOCK_VALUATION" type="NULL">
+      <parameter name="p_client" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_org" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_user" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_warehouse" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_product" type="VARCHAR" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_stock" type="NUMERIC" mode="in">
+        <default/>
+      </parameter>
+      <parameter name="p_valuation" type="NUMERIC" mode="in">
+        <default/>
+      </parameter>
+      <body><![CDATA[/*************************************************************************
+* The contents of this file are subject to the Openbravo  Public  License
+* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+* Version 1.1  with a permitted attribution clause; you may not  use this
+* file except in compliance with the License. You  may  obtain  a copy of
+* the License at http://www.openbravo.com/legal/license.html
+* Software distributed under the License  is  distributed  on  an "AS IS"
+* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+* License for the specific  language  governing  rights  and  limitations
+* under the License.
+* The Original Code is Openbravo ERP.
+* The Initial Developer of the Original Code is Openbravo SLU
+* All portions are Copyright (C) 2014 Openbravo SLU
+* All Rights Reserved.
+* Contributor(s):  ______________________________________.
+************************************************************************/
+  
+  -- Parameter Variables
+  v_stock               NUMBER;
+  v_valuation           NUMBER;
+  v_unit_price          NUMBER;
+  v_count               NUMBER;
+  v_wh_dimension        VARCHAR(1);
+  v_warehouse           VARCHAR(32);
+  
+BEGIN
+
+  v_warehouse := p_warehouse;
+
+  SELECT warehouse_dimension
+  INTO v_wh_dimension
+  FROM m_costing_rule cr
+  WHERE isvalidated = 'Y'
+    AND COALESCE(datefrom, TO_DATE('01-01-1900', 'DD-MM-YYYY')) <= now()
+    AND COALESCE(dateto, TO_DATE('01-01-9999', 'DD-MM-YYYY')) >= now()
+    AND ad_client_id = p_client
+    AND p_org = ad_org_id; 
+    
+  IF (v_wh_dimension = 'N') THEN
+    v_warehouse := NULL;
+  END IF;
+
+  SELECT COUNT(*), COALESCE(SUM(stock), 0), COALESCE(SUM(stock_valuation),0)
+  INTO v_count, v_stock, v_valuation
+  FROM m_stock_valuation
+  WHERE ad_client_id = p_client
+    AND ad_org_id = p_org
+    AND m_product_id = p_product
+    AND (v_warehouse IS NULL
+      OR m_warehouse_id = v_warehouse);
+
+  v_stock := v_stock + p_stock;
+  v_valuation := v_valuation + p_valuation;
+
+  IF (v_stock= 0) THEN
+    v_unit_price := 0;
+    v_valuation := 0;
+  ELSE
+    v_unit_price := v_valuation/v_stock;
+  END IF;
+      
+  IF (v_count > 0) THEN
+    UPDATE m_stock_valuation
+    SET stock = v_stock,
+        stock_valuation = v_valuation,
+        unit_price = v_unit_price
+     WHERE ad_client_id = p_client
+       AND ad_org_id = p_org
+       AND (v_warehouse IS NULL
+         OR m_warehouse_id = v_warehouse);
+  ELSE
+    INSERT INTO m_stock_valuation
+  (
+    m_stock_valuation_id, ad_client_id, ad_org_id,
+    created, createdby, updated, updatedby,
+    isactive, stock, stock_valuation, m_product_id, m_warehouse_id, unit_price
+  )
+  VALUES
+  (
+    GET_UUID(), p_client, p_org,
+    now(), COALESCE(p_user,'0'), now(), COALESCE(p_user,'0'),
+    'Y', v_stock, v_valuation, p_product, v_warehouse, v_unit_price
+  );
+  END IF;
+
+RETURN;
+
+EXCEPTION
+WHEN OTHERS THEN
+  RAISE;
+END M_UPDATE_STOCK_VALUATION
+]]></body>
+    </function>
+  </database>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/model/tables/M_STOCK_VALUATION.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+  <database name="TABLE M_STOCK_VALUATION">
+    <table name="M_STOCK_VALUATION" primaryKey="M_STOCK_VALUATION_KEY">
+      <column name="M_STOCK_VALUATION_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
+        <default><![CDATA[SYSDATE]]></default>
+        <onCreateDefault/>
+      </column>
+      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
+        <default><![CDATA[SYSDATE]]></default>
+        <onCreateDefault/>
+      </column>
+      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[Y]]></default>
+        <onCreateDefault/>
+      </column>
+      <column name="STOCK" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="STOCK_VALUATION" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="M_WAREHOUSE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="M_PRODUCT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="UNIT_PRICE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <foreign-key foreignTable="AD_CLIENT" name="M_STOCK_VALUATION_CLIENT">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="M_STOCK_VALUATION_ORG">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="M_PRODUCT" name="M_STOCK_VALUATION_PRODUCT" onDelete="cascade">
+        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="M_WAREHOUSE" name="M_STOCK_VALUATION_WH">
+        <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
+      </foreign-key>
+      <index name="M_STOCK_VALUATION_ORG_IDX" unique="false">
+        <index-column name="AD_ORG_ID"/>
+      </index>
+      <index name="M_STOCK_VALUATION_PROD_IDX" unique="false">
+        <index-column name="M_PRODUCT_ID"/>
+      </index>
+      <index name="M_STOCK_VALUATION_WH_IDX" unique="false">
+        <index-column name="M_WAREHOUSE_ID"/>
+      </index>
+      <check name="M_STOCK_VALUATION_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+    </table>
+  </database>
--- a/src-db/database/model/triggers/M_PRODUCT_TRG.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/model/triggers/M_PRODUCT_TRG.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -26,6 +26,8 @@
    TYPE RECORD IS REF CURSOR;
    Cur_Defaults RECORD;
    Cur_Product RECORD;
+   Cur_Warehouses RECORD;
+   Cur_Legal RECORD;
 
     v_xTree_ID    			           varchar2(32);
     v_xParent_ID  			           varchar2(32);
@@ -131,6 +133,50 @@
   END IF;
 
  ELSIF (INSERTING) THEN
+ 
+   -- Insert into M_Stock_Valuation
+ 
+  SELECT COUNT(*) 
+    INTO v_count
+  FROM ad_preference
+  WHERE property = 'UnitaryCost'
+    AND ad_client_id IN (:NEW.ad_client_id, '0')
+    AND TO_CHAR(value) = 'Y';
+    
+  IF (v_count > 0) THEN
+  
+    FOR Cur_Legal IN (
+      SELECT ad_org_id, warehouse_dimension
+      FROM m_costing_rule cr
+      WHERE isvalidated = 'Y'
+        AND COALESCE(datefrom, TO_DATE('01-01-1900', 'DD-MM-YYYY')) <= now()
+        AND COALESCE(dateto, TO_DATE('01-01-9999', 'DD-MM-YYYY')) >= now()
+        AND (:NEW.ad_org_id IS NULL OR ad_org_id IN (SELECT ad_org_id
+                                                    FROM ad_org
+                                                    WHERE (ad_isorgincluded(ad_org_id, :NEW.ad_org_id, :NEW.ad_client_id) <> -1
+                                                      OR ad_isorgincluded(:NEW.ad_org_id, ad_org_id, :NEW.ad_client_id) <> -1
+                                                      OR ad_org_id = '0')
+        AND ad_client_id = :NEW.ad_client_id))
+    ) LOOP 
+      IF cur_legal.warehouse_dimension = 'Y' THEN
+        FOR Cur_Warehouses IN(
+          SELECT m_warehouse_id
+          FROM m_warehouse
+          WHERE ad_org_id IN (SELECT ad_org_id
+                              FROM ad_org
+                              WHERE (ad_isorgincluded(ad_org_id, cur_legal.ad_org_id, :NEW.ad_client_id) <> -1
+                                OR ad_isorgincluded(cur_legal.ad_org_id, ad_org_id, :NEW.ad_client_id) <> -1
+                                OR ad_org_id = '0'))
+            AND ad_client_id = :NEW.ad_client_id
+        ) LOOP
+          M_UPDATE_STOCK_VALUATION(:NEW.ad_client_id, cur_legal.ad_org_id, '0', cur_warehouses.m_warehouse_id, :NEW.m_product_id, 0, 0); 
+        END LOOP;
+      ELSE
+        M_UPDATE_STOCK_VALUATION(:NEW.ad_client_id, cur_legal.ad_org_id, '0', NULL, :NEW.m_product_id, 0, 0); 
+      END IF;
+    END LOOP;
+  END IF;
+
   v_C_AcctSchema_ID:=null;
   --   For all AcctSchema create ...
   FOR Cur_Defaults IN (
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/model/triggers/M_TRANSACTION_COST_TRG.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -0,0 +1,117 @@
+<?xml version="1.0"?>
+  <database name="TRIGGER M_TRANSACTION_COST_TRG">
+    <trigger name="M_TRANSACTION_COST_TRG" table="M_TRANSACTION_COST" fires="after" insert="true" update="true" delete="true" foreach="row">
+      <body><![CDATA[
+
+
+
+
+/*************************************************************************
+* The contents of this file are subject to the Openbravo  Public  License
+* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+* Version 1.1  with a permitted attribution clause; you may not  use this
+* file except in compliance with the License. You  may  obtain  a copy of
+* the License at http://www.openbravo.com/legal/license.html
+* Software distributed under the License  is  distributed  on  an "AS IS"
+* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+* License for the specific  language  governing  rights  and  limitations
+* under the License.
+* The Original Code is Openbravo ERP.
+* The Initial Developer of the Original Code is Openbravo SLU
+* All portions are Copyright (C) 2014 Openbravo SLU
+* All Rights Reserved.
+* Contributor(s):  ______________________________________.
+************************************************************************/
+
+  v_warehouse            VARCHAR(32);
+  v_org                  VARCHAR(32);
+  v_transaction          VARCHAR(32);
+  v_old_transaction			 VARCHAR(32);
+  v_sign                 NUMBER;
+  v_old_sign             NUMBER;
+  v_product              VARCHAR(32);
+  v_trans_date           DATE;
+  v_legal                VARCHAR(32);
+  v_count                NUMBER;
+  v_valuation            NUMBER;
+  v_old_valuation			   NUMBER;
+  v_currency_to          VARCHAR(32);
+
+    
+BEGIN
+
+  IF AD_isTriggerEnabled()='N' THEN RETURN;
+  END IF;
+
+  --Update m_stock_valuation
+  
+  SELECT COUNT(*) 
+    INTO v_count
+  FROM ad_preference
+  WHERE property = 'UnitaryCost'
+    AND ad_client_id IN (:NEW.ad_client_id, '0')
+    AND TO_CHAR(value) = 'Y';
+    
+  IF (v_count > 0) THEN
+  
+    IF INSERTING THEN
+      v_transaction := :NEW.m_transaction_id;
+      v_org := :NEW.ad_org_id;
+    ELSIF DELETING THEN
+      v_transaction := :OLD.m_transaction_id;
+      v_org := :OLD.ad_org_id;
+    ELSIF UPDATING  AND :OLD.cost <> :NEW.cost THEN
+      v_transaction := :NEW.m_transaction_id;
+      v_old_transaction := :OLD.m_transaction_id;
+      v_org := :OLD.ad_org_id;
+    END IF;
+      
+    SELECT t.m_product_id, l.m_warehouse_id, t.movementdate, CASE WHEN t.movementqty < 0 THEN 0 ELSE 1 END
+    INTO v_product, v_warehouse, v_trans_date, v_sign
+    FROM m_transaction t
+    JOIN m_locator l ON (t.m_locator_id = l.m_locator_id)
+    WHERE m_transaction_id = v_transaction;
+    
+     IF (v_old_transaction IS NOT NULL) THEN
+       SELECT CASE WHEN t.movementqty < 0 THEN 0 ELSE 1 END
+       INTO  v_old_sign
+       FROM m_transaction t
+       JOIN m_locator l ON (t.m_locator_id = l.m_locator_id)
+       WHERE m_transaction_id = v_old_transaction;
+     END IF;
+    
+    SELECT ad_org_id, c_currency_id
+    INTO v_legal, v_currency_to
+    FROM ad_org
+    WHERE ad_org_id = ad_get_org_le_bu(v_org,'LE');
+    
+    IF INSERTING THEN
+        v_valuation := c_currency_convert_precision(:NEW.cost, :NEW.c_currency_id, v_currency_to, :NEW.costdate, NULL, :NEW.ad_client_id, v_legal, 'C');
+      IF v_sign <> 1 THEN
+        v_valuation := - v_valuation;
+      END IF;
+      M_UPDATE_STOCK_VALUATION(:NEW.ad_client_id, v_legal, :NEW.createdby, v_warehouse, v_product, 0, v_valuation);
+    ELSIF DELETING THEN
+      v_valuation := c_currency_convert_precision(:OLD.cost, :OLD.c_currency_id, v_currency_to, :OLD.costdate, NULL, :OLD.ad_client_id, v_legal, 'C');
+      IF v_sign <> 1 THEN
+        v_valuation := - v_valuation;
+      END IF;
+      M_UPDATE_STOCK_VALUATION(:OLD.ad_client_id, v_legal, :OLD.createdby, v_warehouse, v_product, 0, - v_valuation);
+    ELSIF UPDATING AND :OLD.cost <> :NEW.cost THEN
+      v_valuation := c_currency_convert_precision(:NEW.cost, :NEW.c_currency_id, v_currency_to, :NEW.costdate, NULL, :NEW.ad_client_id, v_legal, 'C');
+      IF v_sign <> 1 THEN
+        v_valuation := - v_valuation;
+      END IF;
+      v_old_valuation := c_currency_convert_precision(:OLD.cost, :OLD.c_currency_id, v_currency_to, :OLD.costdate, NULL, :OLD.ad_client_id, v_legal, 'C');
+      IF v_old_sign <> 1 THEN
+        v_old_valuation := - v_old_valuation;
+      END IF;
+      M_UPDATE_STOCK_VALUATION(:OLD.ad_client_id, v_legal, :OLD.createdby, v_warehouse, v_product, 0, - v_old_valuation);
+      M_UPDATE_STOCK_VALUATION(:NEW.ad_client_id, v_legal, :NEW.createdby, v_warehouse, v_product, 0, v_valuation);
+    END IF;
+  END IF;
+  
+  END M_TRANSACTION_COST_TRG
+]]></body>
+    </trigger>
+  </database>
--- a/src-db/database/model/triggers/M_TRANSACTION_TRG.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/model/triggers/M_TRANSACTION_TRG.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -32,6 +32,10 @@
   v_LINE NUMBER;
   v_DateNull DATE := TO_DATE('01-01-1900', 'DD-MM-YYYY');
   v_DocumentLineNo M_InventoryLine.line%TYPE;
+  v_Change_valuation BOOLEAN;
+  v_sv_count NUMBER;
+  v_warehouse VARCHAR(32);
+  v_count NUMBER;
     
 BEGIN
     
@@ -155,6 +159,32 @@
     END IF;
     -- END FIXME
   END IF;
+
+  --Update m_stock_valuation
+  
+  SELECT COUNT(*) 
+    INTO v_count
+  FROM ad_preference
+  WHERE property = 'UnitaryCost'
+    AND ad_client_id IN (:NEW.ad_client_id, '0')
+    AND TO_CHAR(value) = 'Y';
+    
+  IF (v_count > 0) THEN
+    SELECT m_warehouse_id
+    INTO v_warehouse
+    FROM m_locator
+    WHERE m_locator_id = :NEW.m_locator_id;
+    
+    IF INSERTING THEN
+      M_UPDATE_STOCK_VALUATION(:NEW.ad_client_id, ad_get_org_le_bu(:NEW.ad_org_id,'LE'), :NEW.createdby, v_warehouse, :NEW.m_product_id, COALESCE(:NEW.movementqty, 0), 0);
+    ELSIF DELETING THEN
+      M_UPDATE_STOCK_VALUATION(:OLD.ad_client_id, ad_get_org_le_bu(:OLD.ad_org_id,'LE'), :OLD.createdby, v_warehouse, :OLD.m_product_id, - COALESCE(:OLD.movementqty, 0), 0);
+    ELSIF UPDATING AND :OLD.iscostcalculated = 'N' AND :NEW.iscostcalculated = 'Y' AND :OLD.movementqty <> :NEW.movementqty THEN
+      M_UPDATE_STOCK_VALUATION(:OLD.ad_client_id, ad_get_org_le_bu(:OLD.ad_org_id,'LE'), :OLD.createdby, v_warehouse, :OLD.m_product_id, - COALESCE(:OLD.movementqty, 0), 0);
+      M_UPDATE_STOCK_VALUATION(:NEW.ad_client_id, ad_get_org_le_bu(:NEW.ad_org_id,'LE'), :NEW.createdby, v_warehouse, :NEW.m_product_id, COALESCE(:NEW.movementqty, 0), 0);
+    END IF;
+  END IF;
+
 END M_TRANSACTION_TRG
 ]]></body>
     </trigger>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -233423,6 +233423,39 @@
 <!--28CC711032C44D3D81430BF7C6F0EB03-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--28CC711032C44D3D81430BF7C6F0EB03--></AD_COLUMN>
 
+<!--28D13F7ADA9644E298ADB5F7C326F045--><AD_COLUMN>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_COLUMN_ID><![CDATA[28D13F7ADA9644E298ADB5F7C326F045]]></AD_COLUMN_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <NAME><![CDATA[M_Stock_Valuation_ID]]></NAME>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <COLUMNNAME><![CDATA[M_Stock_Valuation_ID]]></COLUMNNAME>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_REFERENCE_ID><![CDATA[13]]></AD_REFERENCE_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISKEY><![CDATA[Y]]></ISKEY>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_ELEMENT_ID><![CDATA[5A5EB8AB6DB14F8DBCBA89AF35904233]]></AD_ELEMENT_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <POSITION><![CDATA[1]]></POSITION>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--28D13F7ADA9644E298ADB5F7C326F045-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--28D13F7ADA9644E298ADB5F7C326F045--></AD_COLUMN>
+
 <!--28F414D20A1D412CB0D9B1FD040CE670--><AD_COLUMN>
 <!--28F414D20A1D412CB0D9B1FD040CE670-->  <AD_COLUMN_ID><![CDATA[28F414D20A1D412CB0D9B1FD040CE670]]></AD_COLUMN_ID>
 <!--28F414D20A1D412CB0D9B1FD040CE670-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -244061,6 +244094,44 @@
 <!--521F8231198C6C29E040007F01001B31-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--521F8231198C6C29E040007F01001B31--></AD_COLUMN>
 
+<!--522A2B1E84E04C8A8A12A0C8994A6877--><AD_COLUMN>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_COLUMN_ID><![CDATA[522A2B1E84E04C8A8A12A0C8994A6877]]></AD_COLUMN_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <NAME><![CDATA[Active]]></NAME>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <DESCRIPTION><![CDATA[A flag indicating whether this record is available for use or de-activated.]]></DESCRIPTION>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <HELP><![CDATA[There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records: 
+(1) The system requires the record for auditing purposes.
+(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.]]></HELP>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <COLUMNNAME><![CDATA[Isactive]]></COLUMNNAME>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <SEQNO><![CDATA[80]]></SEQNO>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_ELEMENT_ID><![CDATA[348]]></AD_ELEMENT_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <POSITION><![CDATA[8]]></POSITION>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--522A2B1E84E04C8A8A12A0C8994A6877-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--522A2B1E84E04C8A8A12A0C8994A6877--></AD_COLUMN>
+
 <!--5251651446F54828A2786F1D1FAC979D--><AD_COLUMN>
 <!--5251651446F54828A2786F1D1FAC979D-->  <AD_COLUMN_ID><![CDATA[5251651446F54828A2786F1D1FAC979D]]></AD_COLUMN_ID>
 <!--5251651446F54828A2786F1D1FAC979D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -258480,6 +258551,39 @@
 <!--5C8773B1F56F4B13A8F2FD7A3D2A514F-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--5C8773B1F56F4B13A8F2FD7A3D2A514F--></AD_COLUMN>
 
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8--><AD_COLUMN>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_COLUMN_ID><![CDATA[5CF05EACCB8F4CAA804252C56EF9CCC8]]></AD_COLUMN_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <NAME><![CDATA[Unit_Price]]></NAME>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <COLUMNNAME><![CDATA[Unit_Price]]></COLUMNNAME>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_REFERENCE_ID><![CDATA[12]]></AD_REFERENCE_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <FIELDLENGTH><![CDATA[2]]></FIELDLENGTH>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <SEQNO><![CDATA[130]]></SEQNO>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_ELEMENT_ID><![CDATA[C11641264089439BA8BE130ADED4E9E9]]></AD_ELEMENT_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <POSITION><![CDATA[13]]></POSITION>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--5CF05EACCB8F4CAA804252C56EF9CCC8--></AD_COLUMN>
+
 <!--5D2F5DD21B1C4223A49058534AC894C8--><AD_COLUMN>
 <!--5D2F5DD21B1C4223A49058534AC894C8-->  <AD_COLUMN_ID><![CDATA[5D2F5DD21B1C4223A49058534AC894C8]]></AD_COLUMN_ID>
 <!--5D2F5DD21B1C4223A49058534AC894C8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -264853,6 +264957,42 @@
 <!--699C3D66B0824AFFA3A25A679D6DD5C6-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--699C3D66B0824AFFA3A25A679D6DD5C6--></AD_COLUMN>
 
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C--><AD_COLUMN>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_COLUMN_ID><![CDATA[69ACEFACF1054DE0A9F9440C78D9FC0C]]></AD_COLUMN_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <NAME><![CDATA[Updated]]></NAME>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <DESCRIPTION><![CDATA[The date that this record was last updated]]></DESCRIPTION>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <HELP><![CDATA[The Updated field indicates the date that this record was updated.]]></HELP>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <COLUMNNAME><![CDATA[Updated]]></COLUMNNAME>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_REFERENCE_ID><![CDATA[16]]></AD_REFERENCE_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <FIELDLENGTH><![CDATA[19]]></FIELDLENGTH>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <DEFAULTVALUE><![CDATA[@#Date@]]></DEFAULTVALUE>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <SEQNO><![CDATA[60]]></SEQNO>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_ELEMENT_ID><![CDATA[607]]></AD_ELEMENT_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <POSITION><![CDATA[6]]></POSITION>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--69ACEFACF1054DE0A9F9440C78D9FC0C--></AD_COLUMN>
+
 <!--69BC1E85C3334B9292A224991900D233--><AD_COLUMN>
 <!--69BC1E85C3334B9292A224991900D233-->  <AD_COLUMN_ID><![CDATA[69BC1E85C3334B9292A224991900D233]]></AD_COLUMN_ID>
 <!--69BC1E85C3334B9292A224991900D233-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -270603,6 +270743,42 @@
 <!--7781643767204846BFBB44EC17A074DB-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--7781643767204846BFBB44EC17A074DB--></AD_COLUMN>
 
+<!--77BC1225FBCD4825AC1397BCB1D55966--><AD_COLUMN>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_COLUMN_ID><![CDATA[77BC1225FBCD4825AC1397BCB1D55966]]></AD_COLUMN_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <NAME><![CDATA[Client]]></NAME>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <DESCRIPTION><![CDATA[Client for this installation.]]></DESCRIPTION>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <HELP><![CDATA[A Client is a company or a legal entity. You cannot share data between Clients.]]></HELP>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <COLUMNNAME><![CDATA[AD_Client_ID]]></COLUMNNAME>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <DEFAULTVALUE><![CDATA[@AD_CLIENT_ID@]]></DEFAULTVALUE>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_ELEMENT_ID><![CDATA[102]]></AD_ELEMENT_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <POSITION><![CDATA[2]]></POSITION>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--77BC1225FBCD4825AC1397BCB1D55966-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--77BC1225FBCD4825AC1397BCB1D55966--></AD_COLUMN>
+
 <!--77C2EFEE52794BBE82FD666BDB3790AC--><AD_COLUMN>
 <!--77C2EFEE52794BBE82FD666BDB3790AC-->  <AD_COLUMN_ID><![CDATA[77C2EFEE52794BBE82FD666BDB3790AC]]></AD_COLUMN_ID>
 <!--77C2EFEE52794BBE82FD666BDB3790AC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -292556,6 +292732,41 @@
 <!--8B53A1513DB5DD41E040007F01011767-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--8B53A1513DB5DD41E040007F01011767--></AD_COLUMN>
 
+<!--8B7E480655B6483CBAF9A5998BA838AF--><AD_COLUMN>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_COLUMN_ID><![CDATA[8B7E480655B6483CBAF9A5998BA838AF]]></AD_COLUMN_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <NAME><![CDATA[Created By]]></NAME>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <DESCRIPTION><![CDATA[User who created this records]]></DESCRIPTION>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <HELP><![CDATA[The Created By field indicates the user who created this record.]]></HELP>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <COLUMNNAME><![CDATA[Createdby]]></COLUMNNAME>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <SEQNO><![CDATA[50]]></SEQNO>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_ELEMENT_ID><![CDATA[246]]></AD_ELEMENT_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <POSITION><![CDATA[5]]></POSITION>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--8B7E480655B6483CBAF9A5998BA838AF-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--8B7E480655B6483CBAF9A5998BA838AF--></AD_COLUMN>
+
 <!--8BB9DE42018D7689E040007F010120AF--><AD_COLUMN>
 <!--8BB9DE42018D7689E040007F010120AF-->  <AD_COLUMN_ID><![CDATA[8BB9DE42018D7689E040007F010120AF]]></AD_COLUMN_ID>
 <!--8BB9DE42018D7689E040007F010120AF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -301003,6 +301214,39 @@
 <!--9C8C523F49F2BD9DE040007F0100646F-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--9C8C523F49F2BD9DE040007F0100646F--></AD_COLUMN>
 
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02--><AD_COLUMN>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_COLUMN_ID><![CDATA[9CC0EC6D13F74D3CBFCE1E17215ABC02]]></AD_COLUMN_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <NAME><![CDATA[Stock_Valuation]]></NAME>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <COLUMNNAME><![CDATA[Stock_Valuation]]></COLUMNNAME>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_REFERENCE_ID><![CDATA[22]]></AD_REFERENCE_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <FIELDLENGTH><![CDATA[2]]></FIELDLENGTH>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISIDENTIFIER><![CDATA[Y]]></ISIDENTIFIER>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <SEQNO><![CDATA[100]]></SEQNO>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_ELEMENT_ID><![CDATA[41C80FBDB7614106AD1ED14A7745E43A]]></AD_ELEMENT_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <POSITION><![CDATA[10]]></POSITION>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--9CC0EC6D13F74D3CBFCE1E17215ABC02--></AD_COLUMN>
+
 <!--9D092C673B3F439993CAC0ABFAAECAE5--><AD_COLUMN>
 <!--9D092C673B3F439993CAC0ABFAAECAE5-->  <AD_COLUMN_ID><![CDATA[9D092C673B3F439993CAC0ABFAAECAE5]]></AD_COLUMN_ID>
 <!--9D092C673B3F439993CAC0ABFAAECAE5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -301474,6 +301718,41 @@
 <!--9ECAE2711AFE4A1D8EF9CCA5652470CD-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--9ECAE2711AFE4A1D8EF9CCA5652470CD--></AD_COLUMN>
 
+<!--9EEB9990970E4CFF81022D814D127C5A--><AD_COLUMN>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_COLUMN_ID><![CDATA[9EEB9990970E4CFF81022D814D127C5A]]></AD_COLUMN_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <NAME><![CDATA[Warehouse]]></NAME>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <DESCRIPTION><![CDATA[The location where products arrive to or are sent from.]]></DESCRIPTION>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <HELP><![CDATA[The Warehouse identifies a unique Warehouse where products are stored or Services are provided.]]></HELP>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <COLUMNNAME><![CDATA[M_Warehouse_ID]]></COLUMNNAME>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <SEQNO><![CDATA[110]]></SEQNO>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_ELEMENT_ID><![CDATA[459]]></AD_ELEMENT_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <POSITION><![CDATA[11]]></POSITION>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--9EEB9990970E4CFF81022D814D127C5A-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--9EEB9990970E4CFF81022D814D127C5A--></AD_COLUMN>
+
 <!--9EFBEC5F6F6EDD01E040007F01011DA0--><AD_COLUMN>
 <!--9EFBEC5F6F6EDD01E040007F01011DA0-->  <AD_COLUMN_ID><![CDATA[9EFBEC5F6F6EDD01E040007F01011DA0]]></AD_COLUMN_ID>
 <!--9EFBEC5F6F6EDD01E040007F01011DA0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -316391,6 +316670,39 @@
 <!--C228CBC21EC74A0D8785A309736F0446-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--C228CBC21EC74A0D8785A309736F0446--></AD_COLUMN>
 
+<!--C24096B949D84F408FA8AEB433D3AFCA--><AD_COLUMN>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_COLUMN_ID><![CDATA[C24096B949D84F408FA8AEB433D3AFCA]]></AD_COLUMN_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <NAME><![CDATA[Stock]]></NAME>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <COLUMNNAME><![CDATA[Stock]]></COLUMNNAME>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_REFERENCE_ID><![CDATA[29]]></AD_REFERENCE_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <FIELDLENGTH><![CDATA[2]]></FIELDLENGTH>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISIDENTIFIER><![CDATA[Y]]></ISIDENTIFIER>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <SEQNO><![CDATA[90]]></SEQNO>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_ELEMENT_ID><![CDATA[AE85CE85BEB54698B6DF75685B4AAD29]]></AD_ELEMENT_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <POSITION><![CDATA[9]]></POSITION>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--C24096B949D84F408FA8AEB433D3AFCA-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--C24096B949D84F408FA8AEB433D3AFCA--></AD_COLUMN>
+
 <!--C24F4ED6E3B34DC49C4E622918D7C5BF--><AD_COLUMN>
 <!--C24F4ED6E3B34DC49C4E622918D7C5BF-->  <AD_COLUMN_ID><![CDATA[C24F4ED6E3B34DC49C4E622918D7C5BF]]></AD_COLUMN_ID>
 <!--C24F4ED6E3B34DC49C4E622918D7C5BF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -334061,6 +334373,42 @@
 <!--ECB2E6217957452592B24F63D4DFAC88-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--ECB2E6217957452592B24F63D4DFAC88--></AD_COLUMN>
 
+<!--ECB83B33E4EB4E60B00D29F79A73635F--><AD_COLUMN>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_COLUMN_ID><![CDATA[ECB83B33E4EB4E60B00D29F79A73635F]]></AD_COLUMN_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <NAME><![CDATA[Creation Date]]></NAME>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <DESCRIPTION><![CDATA[The date that this record is completed.]]></DESCRIPTION>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <HELP><![CDATA[The Created field indicates the date that this record was created.]]></HELP>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <COLUMNNAME><![CDATA[Created]]></COLUMNNAME>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_REFERENCE_ID><![CDATA[16]]></AD_REFERENCE_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <FIELDLENGTH><![CDATA[19]]></FIELDLENGTH>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <DEFAULTVALUE><![CDATA[@#Date@]]></DEFAULTVALUE>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <SEQNO><![CDATA[40]]></SEQNO>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_ELEMENT_ID><![CDATA[245]]></AD_ELEMENT_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <POSITION><![CDATA[4]]></POSITION>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--ECB83B33E4EB4E60B00D29F79A73635F-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--ECB83B33E4EB4E60B00D29F79A73635F--></AD_COLUMN>
+
 <!--ECD12BAFE5A1495FAE68E32508E8ED05--><AD_COLUMN>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <AD_COLUMN_ID><![CDATA[ECD12BAFE5A1495FAE68E32508E8ED05]]></AD_COLUMN_ID>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -336832,6 +337180,42 @@
 <!--F8318C7FBD7A4692A6B2F6D4D4413F94-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--F8318C7FBD7A4692A6B2F6D4D4413F94--></AD_COLUMN>
 
+<!--F843C5AC686841199898B40CDE33563C--><AD_COLUMN>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_COLUMN_ID><![CDATA[F843C5AC686841199898B40CDE33563C]]></AD_COLUMN_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F843C5AC686841199898B40CDE33563C-->  <NAME><![CDATA[Organization]]></NAME>
+<!--F843C5AC686841199898B40CDE33563C-->  <DESCRIPTION><![CDATA[Organizational entity within client]]></DESCRIPTION>
+<!--F843C5AC686841199898B40CDE33563C-->  <HELP><![CDATA[An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.]]></HELP>
+<!--F843C5AC686841199898B40CDE33563C-->  <COLUMNNAME><![CDATA[AD_Org_ID]]></COLUMNNAME>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--F843C5AC686841199898B40CDE33563C-->  <DEFAULTVALUE><![CDATA[@AD_ORG_ID@]]></DEFAULTVALUE>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISIDENTIFIER><![CDATA[Y]]></ISIDENTIFIER>
+<!--F843C5AC686841199898B40CDE33563C-->  <SEQNO><![CDATA[30]]></SEQNO>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_ELEMENT_ID><![CDATA[113]]></AD_ELEMENT_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--F843C5AC686841199898B40CDE33563C-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--F843C5AC686841199898B40CDE33563C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--F843C5AC686841199898B40CDE33563C-->  <POSITION><![CDATA[3]]></POSITION>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--F843C5AC686841199898B40CDE33563C-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--F843C5AC686841199898B40CDE33563C-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--F843C5AC686841199898B40CDE33563C-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--F843C5AC686841199898B40CDE33563C--></AD_COLUMN>
+
 <!--F88552B627E048CCA995BEED4756BC9E--><AD_COLUMN>
 <!--F88552B627E048CCA995BEED4756BC9E-->  <AD_COLUMN_ID><![CDATA[F88552B627E048CCA995BEED4756BC9E]]></AD_COLUMN_ID>
 <!--F88552B627E048CCA995BEED4756BC9E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -339299,6 +339683,41 @@
 <!--FD4BD9AA63F17B3AE040007F01005BA7-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--FD4BD9AA63F17B3AE040007F01005BA7--></AD_COLUMN>
 
+<!--FD7674E0E9754585BCC683309CAB9BB2--><AD_COLUMN>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_COLUMN_ID><![CDATA[FD7674E0E9754585BCC683309CAB9BB2]]></AD_COLUMN_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <NAME><![CDATA[Updated By]]></NAME>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <DESCRIPTION><![CDATA[User who updated this records]]></DESCRIPTION>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <HELP><![CDATA[The Updated By field indicates the user who updated this record.]]></HELP>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <COLUMNNAME><![CDATA[Updatedby]]></COLUMNNAME>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISUPDATEABLE><![CDATA[N]]></ISUPDATEABLE>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_ELEMENT_ID><![CDATA[608]]></AD_ELEMENT_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <POSITION><![CDATA[7]]></POSITION>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--FD7674E0E9754585BCC683309CAB9BB2-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--FD7674E0E9754585BCC683309CAB9BB2--></AD_COLUMN>
+
 <!--FDA188A07EEB46D8A44A45943542F751--><AD_COLUMN>
 <!--FDA188A07EEB46D8A44A45943542F751-->  <AD_COLUMN_ID><![CDATA[FDA188A07EEB46D8A44A45943542F751]]></AD_COLUMN_ID>
 <!--FDA188A07EEB46D8A44A45943542F751-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -339647,6 +340066,42 @@
 <!--FEF00B4897E14942B35D2265870707A4-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--FEF00B4897E14942B35D2265870707A4--></AD_COLUMN>
 
+<!--FF5993A63BB24820A02FC0FF2A26D288--><AD_COLUMN>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_COLUMN_ID><![CDATA[FF5993A63BB24820A02FC0FF2A26D288]]></AD_COLUMN_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <NAME><![CDATA[Product]]></NAME>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <DESCRIPTION><![CDATA[An item produced by a process.]]></DESCRIPTION>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <HELP><![CDATA[Identifies an item which is either purchased or sold in this organization.]]></HELP>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <COLUMNNAME><![CDATA[M_Product_ID]]></COLUMNNAME>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_REFERENCE_VALUE_ID><![CDATA[800060]]></AD_REFERENCE_VALUE_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <SEQNO><![CDATA[120]]></SEQNO>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_ELEMENT_ID><![CDATA[454]]></AD_ELEMENT_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <POSITION><![CDATA[12]]></POSITION>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--FF5993A63BB24820A02FC0FF2A26D288-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--FF5993A63BB24820A02FC0FF2A26D288--></AD_COLUMN>
+
 <!--FFE1ED5BBE79407B85712E8EA9B08335--><AD_COLUMN>
 <!--FFE1ED5BBE79407B85712E8EA9B08335-->  <AD_COLUMN_ID><![CDATA[FFE1ED5BBE79407B85712E8EA9B08335]]></AD_COLUMN_ID>
 <!--FFE1ED5BBE79407B85712E8EA9B08335-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_DATASET_TABLE.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_DATASET_TABLE.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -896,6 +896,20 @@
 <!--545E9AF0D23649BABC153B1B8DA2BB3B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--545E9AF0D23649BABC153B1B8DA2BB3B--></AD_DATASET_TABLE>
 
+<!--57A27A911F4644BD827B4F17DAD08874--><AD_DATASET_TABLE>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <AD_DATASET_TABLE_ID><![CDATA[57A27A911F4644BD827B4F17DAD08874]]></AD_DATASET_TABLE_ID>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <AD_DATASET_ID><![CDATA[D81C5C810AEF47C690E4F688ABC8AAC8]]></AD_DATASET_ID>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <INCLUDEALLCOLUMNS><![CDATA[Y]]></INCLUDEALLCOLUMNS>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <WHERECLAUSE><![CDATA[client.id=:ClientID]]></WHERECLAUSE>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <EXCLUDEAUDITINFO><![CDATA[N]]></EXCLUDEAUDITINFO>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <ISBUSINESSOBJECT><![CDATA[N]]></ISBUSINESSOBJECT>
+<!--57A27A911F4644BD827B4F17DAD08874-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--57A27A911F4644BD827B4F17DAD08874--></AD_DATASET_TABLE>
+
 <!--57A4AE9147384F99AF23CF04164A1EB4--><AD_DATASET_TABLE>
 <!--57A4AE9147384F99AF23CF04164A1EB4-->  <AD_DATASET_TABLE_ID><![CDATA[57A4AE9147384F99AF23CF04164A1EB4]]></AD_DATASET_TABLE_ID>
 <!--57A4AE9147384F99AF23CF04164A1EB4-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -22543,6 +22543,18 @@
 <!--40F3E79F963841DCBFFFCA8D1E60ACCC-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--40F3E79F963841DCBFFFCA8D1E60ACCC--></AD_ELEMENT>
 
+<!--41C80FBDB7614106AD1ED14A7745E43A--><AD_ELEMENT>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <AD_ELEMENT_ID><![CDATA[41C80FBDB7614106AD1ED14A7745E43A]]></AD_ELEMENT_ID>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <COLUMNNAME><![CDATA[Stock_Valuation]]></COLUMNNAME>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <NAME><![CDATA[Stock Valuation]]></NAME>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <PRINTNAME><![CDATA[Stock Valuation]]></PRINTNAME>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--41C80FBDB7614106AD1ED14A7745E43A-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--41C80FBDB7614106AD1ED14A7745E43A--></AD_ELEMENT>
+
 <!--4275E22E56264665A5036996A8045C8D--><AD_ELEMENT>
 <!--4275E22E56264665A5036996A8045C8D-->  <AD_ELEMENT_ID><![CDATA[4275E22E56264665A5036996A8045C8D]]></AD_ELEMENT_ID>
 <!--4275E22E56264665A5036996A8045C8D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -25131,6 +25143,18 @@
 <!--59FFF002FF973779E040007F01013B24-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--59FFF002FF973779E040007F01013B24--></AD_ELEMENT>
 
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233--><AD_ELEMENT>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <AD_ELEMENT_ID><![CDATA[5A5EB8AB6DB14F8DBCBA89AF35904233]]></AD_ELEMENT_ID>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <COLUMNNAME><![CDATA[M_Stock_Valuation_ID]]></COLUMNNAME>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <NAME><![CDATA[M_Stock_Valuation_ID]]></NAME>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <PRINTNAME><![CDATA[M_Stock_Valuation_ID]]></PRINTNAME>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--5A5EB8AB6DB14F8DBCBA89AF35904233--></AD_ELEMENT>
+
 <!--5A98A33EBFF64617BF5768557C8DF941--><AD_ELEMENT>
 <!--5A98A33EBFF64617BF5768557C8DF941-->  <AD_ELEMENT_ID><![CDATA[5A98A33EBFF64617BF5768557C8DF941]]></AD_ELEMENT_ID>
 <!--5A98A33EBFF64617BF5768557C8DF941-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -30087,6 +30111,18 @@
 <!--AE5F0D103EEF4E7CB86EB5A9B4801686-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--AE5F0D103EEF4E7CB86EB5A9B4801686--></AD_ELEMENT>
 
+<!--AE85CE85BEB54698B6DF75685B4AAD29--><AD_ELEMENT>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <AD_ELEMENT_ID><![CDATA[AE85CE85BEB54698B6DF75685B4AAD29]]></AD_ELEMENT_ID>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <COLUMNNAME><![CDATA[Stock]]></COLUMNNAME>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <NAME><![CDATA[Stock]]></NAME>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <PRINTNAME><![CDATA[Stock]]></PRINTNAME>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--AE85CE85BEB54698B6DF75685B4AAD29-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--AE85CE85BEB54698B6DF75685B4AAD29--></AD_ELEMENT>
+
 <!--AF073DA2C96FFA0CE040A8C09166378E--><AD_ELEMENT>
 <!--AF073DA2C96FFA0CE040A8C09166378E-->  <AD_ELEMENT_ID><![CDATA[AF073DA2C96FFA0CE040A8C09166378E]]></AD_ELEMENT_ID>
 <!--AF073DA2C96FFA0CE040A8C09166378E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -31142,6 +31178,18 @@
 <!--C0FEDDACE59D4AA59AFB2D1D65D748E0-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--C0FEDDACE59D4AA59AFB2D1D65D748E0--></AD_ELEMENT>
 
+<!--C11641264089439BA8BE130ADED4E9E9--><AD_ELEMENT>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <AD_ELEMENT_ID><![CDATA[C11641264089439BA8BE130ADED4E9E9]]></AD_ELEMENT_ID>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <COLUMNNAME><![CDATA[Unit_Price]]></COLUMNNAME>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <PRINTNAME><![CDATA[Unit Cost]]></PRINTNAME>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--C11641264089439BA8BE130ADED4E9E9-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--C11641264089439BA8BE130ADED4E9E9--></AD_ELEMENT>
+
 <!--C1FC934106F24E9A82DDD748FC66F7ED--><AD_ELEMENT>
 <!--C1FC934106F24E9A82DDD748FC66F7ED-->  <AD_ELEMENT_ID><![CDATA[C1FC934106F24E9A82DDD748FC66F7ED]]></AD_ELEMENT_ID>
 <!--C1FC934106F24E9A82DDD748FC66F7ED-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -179605,6 +179605,57 @@
 <!--0598442DEB3442968DB65ADD0C30512B-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--0598442DEB3442968DB65ADD0C30512B--></AD_FIELD>
 
+<!--059D29C5DF774292B3FCF9D287167A09--><AD_FIELD>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <AD_FIELD_ID><![CDATA[059D29C5DF774292B3FCF9D287167A09]]></AD_FIELD_ID>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <AD_COLUMN_ID><![CDATA[5CF05EACCB8F4CAA804252C56EF9CCC8]]></AD_COLUMN_ID>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <DISPLAYLENGTH><![CDATA[2]]></DISPLAYLENGTH>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <SEQNO><![CDATA[80]]></SEQNO>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--059D29C5DF774292B3FCF9D287167A09-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--059D29C5DF774292B3FCF9D287167A09--></AD_FIELD>
+
+<!--059F7231F8A246A585FD4E2E503FC1ED--><AD_FIELD>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <AD_FIELD_ID><![CDATA[059F7231F8A246A585FD4E2E503FC1ED]]></AD_FIELD_ID>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <NAME><![CDATA[M_Stock_Valuation_ID]]></NAME>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <AD_COLUMN_ID><![CDATA[28D13F7ADA9644E298ADB5F7C326F045]]></AD_COLUMN_ID>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--059F7231F8A246A585FD4E2E503FC1ED-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--059F7231F8A246A585FD4E2E503FC1ED--></AD_FIELD>
+
 <!--05A05505FBF14040A661CE3A51417DAC--><AD_FIELD>
 <!--05A05505FBF14040A661CE3A51417DAC-->  <AD_FIELD_ID><![CDATA[05A05505FBF14040A661CE3A51417DAC]]></AD_FIELD_ID>
 <!--05A05505FBF14040A661CE3A51417DAC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -187213,6 +187264,34 @@
 <!--1B937446D4014DCBACB4FDC147812973-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--1B937446D4014DCBACB4FDC147812973--></AD_FIELD>
 
+<!--1B9ED399E0674E91A44C0B7830F77135--><AD_FIELD>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <AD_FIELD_ID><![CDATA[1B9ED399E0674E91A44C0B7830F77135]]></AD_FIELD_ID>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <NAME><![CDATA[Organization]]></NAME>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <DESCRIPTION><![CDATA[Organizational entity within client]]></DESCRIPTION>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <HELP><![CDATA[An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.]]></HELP>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <AD_COLUMN_ID><![CDATA[F843C5AC686841199898B40CDE33563C]]></AD_COLUMN_ID>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--1B9ED399E0674E91A44C0B7830F77135-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--1B9ED399E0674E91A44C0B7830F77135--></AD_FIELD>
+
 <!--1BA16F2070274F2D8409086644F70A14--><AD_FIELD>
 <!--1BA16F2070274F2D8409086644F70A14-->  <AD_FIELD_ID><![CDATA[1BA16F2070274F2D8409086644F70A14]]></AD_FIELD_ID>
 <!--1BA16F2070274F2D8409086644F70A14-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -194568,6 +194647,32 @@
 <!--3140BF715A144C0486980C42E1259C31-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--3140BF715A144C0486980C42E1259C31--></AD_FIELD>
 
+<!--314FA3B1B264420BA40CE6011EF64ED1--><AD_FIELD>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <AD_FIELD_ID><![CDATA[314FA3B1B264420BA40CE6011EF64ED1]]></AD_FIELD_ID>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <NAME><![CDATA[Stock]]></NAME>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <AD_COLUMN_ID><![CDATA[C24096B949D84F408FA8AEB433D3AFCA]]></AD_COLUMN_ID>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <DISPLAYLENGTH><![CDATA[2]]></DISPLAYLENGTH>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <SEQNO><![CDATA[40]]></SEQNO>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--314FA3B1B264420BA40CE6011EF64ED1-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--314FA3B1B264420BA40CE6011EF64ED1--></AD_FIELD>
+
 <!--315FAA99016C4885A71D7179BEEC302F--><AD_FIELD>
 <!--315FAA99016C4885A71D7179BEEC302F-->  <AD_FIELD_ID><![CDATA[315FAA99016C4885A71D7179BEEC302F]]></AD_FIELD_ID>
 <!--315FAA99016C4885A71D7179BEEC302F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -222786,6 +222891,34 @@
 <!--6AC5FA2EB66B4379B1E139AABD01CFFB-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--6AC5FA2EB66B4379B1E139AABD01CFFB--></AD_FIELD>
 
+<!--6AD756805DF2421A939D8460E9A3AA01--><AD_FIELD>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <AD_FIELD_ID><![CDATA[6AD756805DF2421A939D8460E9A3AA01]]></AD_FIELD_ID>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <NAME><![CDATA[Warehouse]]></NAME>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <DESCRIPTION><![CDATA[The location where products arrive to or are sent from.]]></DESCRIPTION>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <HELP><![CDATA[The Warehouse identifies a unique Warehouse where products are stored or Services are provided.]]></HELP>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <AD_COLUMN_ID><![CDATA[9EEB9990970E4CFF81022D814D127C5A]]></AD_COLUMN_ID>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <SEQNO><![CDATA[60]]></SEQNO>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--6AD756805DF2421A939D8460E9A3AA01-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--6AD756805DF2421A939D8460E9A3AA01--></AD_FIELD>
+
 <!--6AE1A4B2CDE34CF8A2E7984A4678C2E0--><AD_FIELD>
 <!--6AE1A4B2CDE34CF8A2E7984A4678C2E0-->  <AD_FIELD_ID><![CDATA[6AE1A4B2CDE34CF8A2E7984A4678C2E0]]></AD_FIELD_ID>
 <!--6AE1A4B2CDE34CF8A2E7984A4678C2E0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -251081,6 +251214,33 @@
 <!--A09F0A9AE4D24C7C86265395AC93D7FE-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--A09F0A9AE4D24C7C86265395AC93D7FE--></AD_FIELD>
 
+<!--A0B23077DA0D41239D69F0E9E0646313--><AD_FIELD>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <AD_FIELD_ID><![CDATA[A0B23077DA0D41239D69F0E9E0646313]]></AD_FIELD_ID>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <NAME><![CDATA[Client]]></NAME>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <DESCRIPTION><![CDATA[Client for this installation.]]></DESCRIPTION>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <HELP><![CDATA[A Client is a company or a legal entity. You cannot share data between Clients.]]></HELP>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <AD_COLUMN_ID><![CDATA[77BC1225FBCD4825AC1397BCB1D55966]]></AD_COLUMN_ID>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--A0B23077DA0D41239D69F0E9E0646313-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--A0B23077DA0D41239D69F0E9E0646313--></AD_FIELD>
+
 <!--A0F64442A0A34F50BA762BC85AEF6836--><AD_FIELD>
 <!--A0F64442A0A34F50BA762BC85AEF6836-->  <AD_FIELD_ID><![CDATA[A0F64442A0A34F50BA762BC85AEF6836]]></AD_FIELD_ID>
 <!--A0F64442A0A34F50BA762BC85AEF6836-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -276412,6 +276572,32 @@
 <!--CDFFE9CA0CA8A5D4E040007F01001A9F-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--CDFFE9CA0CA8A5D4E040007F01001A9F--></AD_FIELD>
 
+<!--CE013FA625F541F6B5B9BBA3DCD932BF--><AD_FIELD>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <AD_FIELD_ID><![CDATA[CE013FA625F541F6B5B9BBA3DCD932BF]]></AD_FIELD_ID>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <NAME><![CDATA[Stock Valuation]]></NAME>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <AD_COLUMN_ID><![CDATA[9CC0EC6D13F74D3CBFCE1E17215ABC02]]></AD_COLUMN_ID>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <DISPLAYLENGTH><![CDATA[2]]></DISPLAYLENGTH>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <SEQNO><![CDATA[50]]></SEQNO>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--CE013FA625F541F6B5B9BBA3DCD932BF--></AD_FIELD>
+
 <!--CE0F0D775DAF6C8FE040007F01007137--><AD_FIELD>
 <!--CE0F0D775DAF6C8FE040007F01007137-->  <AD_FIELD_ID><![CDATA[CE0F0D775DAF6C8FE040007F01007137]]></AD_FIELD_ID>
 <!--CE0F0D775DAF6C8FE040007F01007137-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -279526,6 +279712,34 @@
 <!--D474FB2D71904FAD90D70EEFF24AA244-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--D474FB2D71904FAD90D70EEFF24AA244--></AD_FIELD>
 
+<!--D48D4599B74E4DB3992139281F708600--><AD_FIELD>
+<!--D48D4599B74E4DB3992139281F708600-->  <AD_FIELD_ID><![CDATA[D48D4599B74E4DB3992139281F708600]]></AD_FIELD_ID>
+<!--D48D4599B74E4DB3992139281F708600-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D48D4599B74E4DB3992139281F708600-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D48D4599B74E4DB3992139281F708600-->  <NAME><![CDATA[Product]]></NAME>
+<!--D48D4599B74E4DB3992139281F708600-->  <DESCRIPTION><![CDATA[An item produced by a process.]]></DESCRIPTION>
+<!--D48D4599B74E4DB3992139281F708600-->  <HELP><![CDATA[Identifies an item which is either purchased or sold in this organization.]]></HELP>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--D48D4599B74E4DB3992139281F708600-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--D48D4599B74E4DB3992139281F708600-->  <AD_COLUMN_ID><![CDATA[FF5993A63BB24820A02FC0FF2A26D288]]></AD_COLUMN_ID>
+<!--D48D4599B74E4DB3992139281F708600-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--D48D4599B74E4DB3992139281F708600-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--D48D4599B74E4DB3992139281F708600-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--D48D4599B74E4DB3992139281F708600-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--D48D4599B74E4DB3992139281F708600-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--D48D4599B74E4DB3992139281F708600-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--D48D4599B74E4DB3992139281F708600-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--D48D4599B74E4DB3992139281F708600-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--D48D4599B74E4DB3992139281F708600-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--D48D4599B74E4DB3992139281F708600--></AD_FIELD>
+
 <!--D4B38CE329944180B6C6284BE5917125--><AD_FIELD>
 <!--D4B38CE329944180B6C6284BE5917125-->  <AD_FIELD_ID><![CDATA[D4B38CE329944180B6C6284BE5917125]]></AD_FIELD_ID>
 <!--D4B38CE329944180B6C6284BE5917125-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -296023,6 +296237,36 @@
 <!--FDF055DCF1EC4A07AF90FDD62F31ACC8-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--FDF055DCF1EC4A07AF90FDD62F31ACC8--></AD_FIELD>
 
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8--><AD_FIELD>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <AD_FIELD_ID><![CDATA[FE05BD3DD77A4B3A86C89CF4F32624F8]]></AD_FIELD_ID>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <NAME><![CDATA[Active]]></NAME>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <DESCRIPTION><![CDATA[A flag indicating whether this record is available for use or de-activated.]]></DESCRIPTION>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <HELP><![CDATA[There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records: 
+(1) The system requires the record for auditing purposes.
+(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.]]></HELP>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <AD_COLUMN_ID><![CDATA[522A2B1E84E04C8A8A12A0C8994A6877]]></AD_COLUMN_ID>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <SEQNO><![CDATA[30]]></SEQNO>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--FE05BD3DD77A4B3A86C89CF4F32624F8--></AD_FIELD>
+
 <!--FE1A9A3CDEBA48FA848B0CD2089B0385--><AD_FIELD>
 <!--FE1A9A3CDEBA48FA848B0CD2089B0385-->  <AD_FIELD_ID><![CDATA[FE1A9A3CDEBA48FA848B0CD2089B0385]]></AD_FIELD_ID>
 <!--FE1A9A3CDEBA48FA848B0CD2089B0385-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_MENU.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_MENU.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -4735,6 +4735,19 @@
 <!--26BF4F6D476E4D0CAF5E62EBC63E440E-->  <OPENLINKINBROWSER><![CDATA[N]]></OPENLINKINBROWSER>
 <!--26BF4F6D476E4D0CAF5E62EBC63E440E--></AD_MENU>
 
+<!--308B984799CC4F5EBE5A5AC298EB260D--><AD_MENU>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <AD_MENU_ID><![CDATA[308B984799CC4F5EBE5A5AC298EB260D]]></AD_MENU_ID>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <NAME><![CDATA[Reset Unit Cost]]></NAME>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <ACTION><![CDATA[OBUIAPP_Process]]></ACTION>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <OPENLINKINBROWSER><![CDATA[N]]></OPENLINKINBROWSER>
+<!--308B984799CC4F5EBE5A5AC298EB260D-->  <EM_OBUIAPP_PROCESS_ID><![CDATA[281704CE41444AC4BF9410A725234BFB]]></EM_OBUIAPP_PROCESS_ID>
+<!--308B984799CC4F5EBE5A5AC298EB260D--></AD_MENU>
+
 <!--31D7EC462DD7401EA90200C393B3EB9B--><AD_MENU>
 <!--31D7EC462DD7401EA90200C393B3EB9B-->  <AD_MENU_ID><![CDATA[31D7EC462DD7401EA90200C393B3EB9B]]></AD_MENU_ID>
 <!--31D7EC462DD7401EA90200C393B3EB9B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_REFERENCE.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_REFERENCE.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -6508,6 +6508,18 @@
 <!--EE2E61C84926484C809BEBBCED00C7E3-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--EE2E61C84926484C809BEBBCED00C7E3--></AD_REFERENCE>
 
+<!--EE3A1FFA879945C88957F4401BF15C0B--><AD_REFERENCE>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <AD_REFERENCE_ID><![CDATA[EE3A1FFA879945C88957F4401BF15C0B]]></AD_REFERENCE_ID>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <NAME><![CDATA[Legal Organizations Selector]]></NAME>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <PARENTREFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></PARENTREFERENCE_ID>
+<!--EE3A1FFA879945C88957F4401BF15C0B-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--EE3A1FFA879945C88957F4401BF15C0B--></AD_REFERENCE>
+
 <!--EE8B072E19034D0FB34CA1CEB3583620--><AD_REFERENCE>
 <!--EE8B072E19034D0FB34CA1CEB3583620-->  <AD_REFERENCE_ID><![CDATA[EE8B072E19034D0FB34CA1CEB3583620]]></AD_REFERENCE_ID>
 <!--EE8B072E19034D0FB34CA1CEB3583620-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_REF_LIST.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_REF_LIST.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -8860,6 +8860,18 @@
 <!--3A38B5315B64459793BF256CEB6703B4-->  <SEQNO><![CDATA[30]]></SEQNO>
 <!--3A38B5315B64459793BF256CEB6703B4--></AD_REF_LIST>
 
+<!--3A6E145DECA24145A9C3777B3E1988CE--><AD_REF_LIST>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <AD_REF_LIST_ID><![CDATA[3A6E145DECA24145A9C3777B3E1988CE]]></AD_REF_LIST_ID>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <VALUE><![CDATA[UnitaryCost]]></VALUE>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <NAME><![CDATA[Allow to persist Unit Cost]]></NAME>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <DESCRIPTION><![CDATA[Allow to persist Unit Cost for each Product]]></DESCRIPTION>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <AD_REFERENCE_ID><![CDATA[A26BA480E2014707B47257024C3CBFF7]]></AD_REFERENCE_ID>
+<!--3A6E145DECA24145A9C3777B3E1988CE-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3A6E145DECA24145A9C3777B3E1988CE--></AD_REF_LIST>
+
 <!--3ABF54A29AF94B35AB205894C5ED319C--><AD_REF_LIST>
 <!--3ABF54A29AF94B35AB205894C5ED319C-->  <AD_REF_LIST_ID><![CDATA[3ABF54A29AF94B35AB205894C5ED319C]]></AD_REF_LIST_ID>
 <!--3ABF54A29AF94B35AB205894C5ED319C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TAB.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_TAB.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -15777,6 +15777,35 @@
 <!--708B2569E609493E818B5F6E1563A9A0-->  <EM_OBUIAPP_SHOW_SELECT><![CDATA[Y]]></EM_OBUIAPP_SHOW_SELECT>
 <!--708B2569E609493E818B5F6E1563A9A0--></AD_TAB>
 
+<!--710F849A838B4AC6B2AE7E47237F7F8F--><AD_TAB>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <AD_TAB_ID><![CDATA[710F849A838B4AC6B2AE7E47237F7F8F]]></AD_TAB_ID>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <AD_WINDOW_ID><![CDATA[140]]></AD_WINDOW_ID>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <SEQNO><![CDATA[160]]></SEQNO>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <TABLEVEL><![CDATA[1]]></TABLEVEL>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISSINGLEROW><![CDATA[N]]></ISSINGLEROW>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISINFOTAB><![CDATA[N]]></ISINFOTAB>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISTRANSLATIONTAB><![CDATA[N]]></ISTRANSLATIONTAB>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <HASTREE><![CDATA[N]]></HASTREE>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <PROCESSING><![CDATA[N]]></PROCESSING>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <IMPORTFIELDS><![CDATA[N]]></IMPORTFIELDS>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISSORTTAB><![CDATA[N]]></ISSORTTAB>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <UIPATTERN><![CDATA[RO]]></UIPATTERN>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <SHOWPARENTBUTTONS><![CDATA[Y]]></SHOWPARENTBUTTONS>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <DISABLE_PARENT_KEY_PROPERTY><![CDATA[N]]></DISABLE_PARENT_KEY_PROPERTY>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISREADONLYTREE><![CDATA[N]]></ISREADONLYTREE>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <ISSHOWTREENODEICONS><![CDATA[Y]]></ISSHOWTREENODEICONS>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <EM_OBUIAPP_CAN_ADD><![CDATA[N]]></EM_OBUIAPP_CAN_ADD>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <EM_OBUIAPP_CAN_DELETE><![CDATA[N]]></EM_OBUIAPP_CAN_DELETE>
+<!--710F849A838B4AC6B2AE7E47237F7F8F-->  <EM_OBUIAPP_SHOW_SELECT><![CDATA[Y]]></EM_OBUIAPP_SHOW_SELECT>
+<!--710F849A838B4AC6B2AE7E47237F7F8F--></AD_TAB>
+
 <!--719D6C8507CA4B27886C0D8A7859B543--><AD_TAB>
 <!--719D6C8507CA4B27886C0D8A7859B543-->  <AD_TAB_ID><![CDATA[719D6C8507CA4B27886C0D8A7859B543]]></AD_TAB_ID>
 <!--719D6C8507CA4B27886C0D8A7859B543-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TABLE.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_TABLE.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -10428,6 +10428,28 @@
 <!--686694E77C424953BC759965AB2D19C5-->  <ISTREE><![CDATA[N]]></ISTREE>
 <!--686694E77C424953BC759965AB2D19C5--></AD_TABLE>
 
+<!--6C4B972651E0443AAA1B13B7652E0CD5--><AD_TABLE>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <AD_TABLE_ID><![CDATA[6C4B972651E0443AAA1B13B7652E0CD5]]></AD_TABLE_ID>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <NAME><![CDATA[M_Stock_Valuation]]></NAME>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <TABLENAME><![CDATA[M_Stock_Valuation]]></TABLENAME>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <CLASSNAME><![CDATA[StockValuation]]></CLASSNAME>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISVIEW><![CDATA[N]]></ISVIEW>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ACCESSLEVEL><![CDATA[3]]></ACCESSLEVEL>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISSECURITYENABLED><![CDATA[N]]></ISSECURITYENABLED>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISDELETEABLE><![CDATA[Y]]></ISDELETEABLE>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISHIGHVOLUME><![CDATA[N]]></ISHIGHVOLUME>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <IMPORTTABLE><![CDATA[N]]></IMPORTTABLE>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISCHANGELOG><![CDATA[N]]></ISCHANGELOG>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISDEFAULTACCT><![CDATA[N]]></ISDEFAULTACCT>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <AD_PACKAGE_ID><![CDATA[5A3ED54AB1EF4B84E040007F01006125]]></AD_PACKAGE_ID>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <DATAORIGINTYPE><![CDATA[Table]]></DATAORIGINTYPE>
+<!--6C4B972651E0443AAA1B13B7652E0CD5-->  <ISTREE><![CDATA[N]]></ISTREE>
+<!--6C4B972651E0443AAA1B13B7652E0CD5--></AD_TABLE>
+
 <!--6F5AE5830F18429FB1FF735C15BF3579--><AD_TABLE>
 <!--6F5AE5830F18429FB1FF735C15BF3579-->  <AD_TABLE_ID><![CDATA[6F5AE5830F18429FB1FF735C15BF3579]]></AD_TABLE_ID>
 <!--6F5AE5830F18429FB1FF735C15BF3579-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TREENODE.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/AD_TREENODE.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -143,6 +143,17 @@
 <!--480566EC59D3490E8E5752A26A352CE2-->  <SEQNO><![CDATA[160]]></SEQNO>
 <!--480566EC59D3490E8E5752A26A352CE2--></AD_TREENODE>
 
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F--><AD_TREENODE>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <AD_TREENODE_ID><![CDATA[4FE0EA8A71C54E2488E4BD90EC73AA7F]]></AD_TREENODE_ID>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <NODE_ID><![CDATA[308B984799CC4F5EBE5A5AC298EB260D]]></NODE_ID>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <PARENT_ID><![CDATA[800256]]></PARENT_ID>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--4FE0EA8A71C54E2488E4BD90EC73AA7F--></AD_TREENODE>
+
 <!--52118BF1A1E64D84E040007F01005FEC--><AD_TREENODE>
 <!--52118BF1A1E64D84E040007F01005FEC-->  <AD_TREENODE_ID><![CDATA[52118BF1A1E64D84E040007F01005FEC]]></AD_TREENODE_ID>
 <!--52118BF1A1E64D84E040007F01005FEC-->  <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
--- a/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -121,6 +121,31 @@
 <!--439E00644F0647B397201C0C099D60E4-->  <DISPLAYTITLE><![CDATA[Y]]></DISPLAYTITLE>
 <!--439E00644F0647B397201C0C099D60E4--></OBUIAPP_PARAMETER>
 
+<!--490120F2EB114AB08A8377DC50DCAB55--><OBUIAPP_PARAMETER>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <OBUIAPP_PARAMETER_ID><![CDATA[490120F2EB114AB08A8377DC50DCAB55]]></OBUIAPP_PARAMETER_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <NAME><![CDATA[Organization]]></NAME>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <DESCRIPTION><![CDATA[Organizational entity within client]]></DESCRIPTION>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <HELP><![CDATA[An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.]]></HELP>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <AD_REFERENCE_VALUE_ID><![CDATA[EE3A1FFA879945C88957F4401BF15C0B]]></AD_REFERENCE_VALUE_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <COLUMNNAME><![CDATA[AD_Org_ID]]></COLUMNNAME>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <AD_ELEMENT_ID><![CDATA[113]]></AD_ELEMENT_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <OBUIAPP_PROCESS_ID><![CDATA[281704CE41444AC4BF9410A725234BFB]]></OBUIAPP_PROCESS_ID>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <DISPLAYEDROWS><![CDATA[5]]></DISPLAYEDROWS>
+<!--490120F2EB114AB08A8377DC50DCAB55-->  <DISPLAYTITLE><![CDATA[Y]]></DISPLAYTITLE>
+<!--490120F2EB114AB08A8377DC50DCAB55--></OBUIAPP_PARAMETER>
+
 <!--499D42C5ED7F4244B4F9E306B1F105B0--><OBUIAPP_PARAMETER>
 <!--499D42C5ED7F4244B4F9E306B1F105B0-->  <OBUIAPP_PARAMETER_ID><![CDATA[499D42C5ED7F4244B4F9E306B1F105B0]]></OBUIAPP_PARAMETER_ID>
 <!--499D42C5ED7F4244B4F9E306B1F105B0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -18,6 +18,24 @@
 <!--24E052E6FEB64295B64E683B5196230B-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
 <!--24E052E6FEB64295B64E683B5196230B--></OBUIAPP_PROCESS>
 
+<!--281704CE41444AC4BF9410A725234BFB--><OBUIAPP_PROCESS>
+<!--281704CE41444AC4BF9410A725234BFB-->  <OBUIAPP_PROCESS_ID><![CDATA[281704CE41444AC4BF9410A725234BFB]]></OBUIAPP_PROCESS_ID>
+<!--281704CE41444AC4BF9410A725234BFB-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--281704CE41444AC4BF9410A725234BFB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--281704CE41444AC4BF9410A725234BFB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--281704CE41444AC4BF9410A725234BFB-->  <VALUE><![CDATA[ResetStockValuation]]></VALUE>
+<!--281704CE41444AC4BF9410A725234BFB-->  <NAME><![CDATA[Reset Stock Valuation]]></NAME>
+<!--281704CE41444AC4BF9410A725234BFB-->  <ACCESSLEVEL><![CDATA[3]]></ACCESSLEVEL>
+<!--281704CE41444AC4BF9410A725234BFB-->  <CLASSNAME><![CDATA[org.openbravo.costing.ResetStockValuation]]></CLASSNAME>
+<!--281704CE41444AC4BF9410A725234BFB-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--281704CE41444AC4BF9410A725234BFB-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--281704CE41444AC4BF9410A725234BFB-->  <UIPATTERN><![CDATA[OBUIAPP_PickAndExecute]]></UIPATTERN>
+<!--281704CE41444AC4BF9410A725234BFB-->  <ISMULTIRECORD><![CDATA[N]]></ISMULTIRECORD>
+<!--281704CE41444AC4BF9410A725234BFB-->  <IS_EXPLICIT_ACCESS><![CDATA[N]]></IS_EXPLICIT_ACCESS>
+<!--281704CE41444AC4BF9410A725234BFB-->  <ISGRIDLEGACY><![CDATA[N]]></ISGRIDLEGACY>
+<!--281704CE41444AC4BF9410A725234BFB-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
+<!--281704CE41444AC4BF9410A725234BFB--></OBUIAPP_PROCESS>
+
 <!--281FFDFAB31C4394A2EAA73A6F9F3A3F--><OBUIAPP_PROCESS>
 <!--281FFDFAB31C4394A2EAA73A6F9F3A3F-->  <OBUIAPP_PROCESS_ID><![CDATA[281FFDFAB31C4394A2EAA73A6F9F3A3F]]></OBUIAPP_PROCESS_ID>
 <!--281FFDFAB31C4394A2EAA73A6F9F3A3F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -657,6 +657,28 @@
 <!--B9E2C11BDA924BF8ADF019BA15A11153-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
 <!--B9E2C11BDA924BF8ADF019BA15A11153--></OBUISEL_SELECTOR>
 
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A--><OBUISEL_SELECTOR>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <OBUISEL_SELECTOR_ID><![CDATA[BA3E7AE2C78E44AF890EDEFCDB76CD9A]]></OBUISEL_SELECTOR_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <NAME><![CDATA[Legal Organizations Selector]]></NAME>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <AD_REFERENCE_ID><![CDATA[EE3A1FFA879945C88957F4401BF15C0B]]></AD_REFERENCE_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <AD_TABLE_ID><![CDATA[155]]></AD_TABLE_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <VALUEFIELD_ID><![CDATA[5EB79D1F0D424CA4BBA838C3AB4AEE88]]></VALUEFIELD_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <DISPLAYFIELD_ID><![CDATA[56CF04D01F364FD1AC5BA64E0D5CC4D6]]></DISPLAYFIELD_ID>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[substring]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <POPUPTEXTMATCHSTYLE><![CDATA[substring]]></POPUPTEXTMATCHSTYLE>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <HQL><![CDATA[select org.id as orgid, org.name as name, org.searchKey as value
+from Organization org
+where org.organizationType in ('1','3')
+and @additional_filters@]]></HQL>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <ENTITY_ALIAS><![CDATA[org]]></ENTITY_ALIAS>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A-->  <CUSTOM_QUERY><![CDATA[Y]]></CUSTOM_QUERY>
+<!--BA3E7AE2C78E44AF890EDEFCDB76CD9A--></OBUISEL_SELECTOR>
+
 <!--BD1DA40E134A42B9889B529302A96871--><OBUISEL_SELECTOR>
 <!--BD1DA40E134A42B9889B529302A96871-->  <OBUISEL_SELECTOR_ID><![CDATA[BD1DA40E134A42B9889B529302A96871]]></OBUISEL_SELECTOR_ID>
 <!--BD1DA40E134A42B9889B529302A96871-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml	Wed Nov 12 13:14:57 2014 +0100
+++ b/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml	Tue Nov 11 17:32:58 2014 +0530
@@ -1254,6 +1254,27 @@
 <!--5545248A63EC4FB1833AB17C07C5542C-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
 <!--5545248A63EC4FB1833AB17C07C5542C--></OBUISEL_SELECTOR_FIELD>
 
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6--><OBUISEL_SELECTOR_FIELD>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[56CF04D01F364FD1AC5BA64E0D5CC4D6]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <OBUISEL_SELECTOR_ID><![CDATA[BA3E7AE2C78E44AF890EDEFCDB76CD9A]]></OBUISEL_SELECTOR_ID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <NAME><![CDATA[name]]></NAME>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <ISCENTRALLYMAINTAINED><![CDATA[N]]></ISCENTRALLYMAINTAINED>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <SORT><![CDATA[Y]]></SORT>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <SEARCHINSUGGESTIONBOX><![CDATA[Y]]></SEARCHINSUGGESTIONBOX>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <SORTNO><![CDATA[0]]></SORTNO>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <DISPLAY_EXPRESSION><![CDATA[name]]></DISPLAY_EXPRESSION>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <CLAUSE_LEFT_PART><![CDATA[org.name]]></CLAUSE_LEFT_PART>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <AD_REFERENCE_ID><![CDATA[10]]></AD_REFERENCE_ID>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--56CF04D01F364FD1AC5BA64E0D5CC4D6--></OBUISEL_SELECTOR_FIELD>
+
 <!--595A55CFF6EE4272A3B4330A1814FCDB--><OBUISEL_SELECTOR_FIELD>
 <!--595A55CFF6EE4272A3B4330A1814FCDB-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[595A55CFF6EE4272A3B4330A1814FCDB]]></OBUISEL_SELECTOR_FIELD_ID>
 <!--595A55CFF6EE4272A3B4330A1814FCDB-->  <OBUISEL_SELECTOR_ID><![CDATA[2E64F551C7C4470C80C29DBA24B34A5F]]></OBUISEL_SELECTOR_ID>
@@ -1338,6 +1359,26 @@
 <!--5C49AEF18F02402180E472E45E58C776-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
 <!--5C49AEF18F02402180E472E45E58C776--></OBUISEL_SELECTOR_FIELD>
 
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88--><OBUISEL_SELECTOR_FIELD>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[5EB79D1F0D424CA4BBA838C3AB4AEE88]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <OBUISEL_SELECTOR_ID><![CDATA[BA3E7AE2C78E44AF890EDEFCDB76CD9A]]></OBUISEL_SELECTOR_ID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <NAME><![CDATA[orgid]]></NAME>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <ISCENTRALLYMAINTAINED><![CDATA[N]]></ISCENTRALLYMAINTAINED>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <SORT><![CDATA[Y]]></SORT>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <SHOWINGRID><![CDATA[N]]></SHOWINGRID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <SORTNO><![CDATA[0]]></SORTNO>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <DISPLAY_EXPRESSION><![CDATA[orgid]]></DISPLAY_EXPRESSION>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <AD_REFERENCE_ID><![CDATA[276]]></AD_REFERENCE_ID>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--5EB79D1F0D424CA4BBA838C3AB4AEE88--></OBUISEL_SELECTOR_FIELD>
+
 <!--61468BCC79F14B0289A046060D119EC2--><OBUISEL_SELECTOR_FIELD>
 <!--61468BCC79F14B0289A046060D119EC2-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[61468BCC79F14B0289A046060D119EC2]]></OBUISEL_SELECTOR_FIELD_ID>
 <!--61468BCC79F14B0289A046060D119EC2-->  <OBUISEL_SELECTOR_ID><![CDATA[A48B1462EE7F4C109F06564E0B4677A8]]></OBUISEL_SELECTOR_ID>
@@ -2606,6 +2647,26 @@
 <!--AF04AEFE8D914932819A7FE9DF0D8656-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
 <!--AF04AEFE8D914932819A7FE9DF0D8656--></OBUISEL_SELECTOR_FIELD>
 
+<!--B0D7816370094619A58B6E0272638374--><OBUISEL_SELECTOR_FIELD>
+<!--B0D7816370094619A58B6E0272638374-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[B0D7816370094619A58B6E0272638374]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--B0D7816370094619A58B6E0272638374-->  <OBUISEL_SELECTOR_ID><![CDATA[BA3E7AE2C78E44AF890EDEFCDB76CD9A]]></OBUISEL_SELECTOR_ID>
+<!--B0D7816370094619A58B6E0272638374-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B0D7816370094619A58B6E0272638374-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B0D7816370094619A58B6E0272638374-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--B0D7816370094619A58B6E0272638374-->  <NAME><![CDATA[value]]></NAME>
+<!--B0D7816370094619A58B6E0272638374-->  <ISCENTRALLYMAINTAINED><![CDATA[N]]></ISCENTRALLYMAINTAINED>
+<!--B0D7816370094619A58B6E0272638374-->  <SORT><![CDATA[Y]]></SORT>
+<!--B0D7816370094619A58B6E0272638374-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--B0D7816370094619A58B6E0272638374-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--B0D7816370094619A58B6E0272638374-->  <SHOWINGRID><![CDATA[N]]></SHOWINGRID>
+<!--B0D7816370094619A58B6E0272638374-->  <SORTNO><![CDATA[0]]></SORTNO>
+<!--B0D7816370094619A58B6E0272638374-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B0D7816370094619A58B6E0272638374-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--B0D7816370094619A58B6E0272638374-->  <DISPLAY_EXPRESSION><![CDATA[value]]></DISPLAY_EXPRESSION>
+<!--B0D7816370094619A58B6E0272638374-->  <AD_REFERENCE_ID><![CDATA[10]]></AD_REFERENCE_ID>
+<!--B0D7816370094619A58B6E0272638374-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--B0D7816370094619A58B6E0272638374--></OBUISEL_SELECTOR_FIELD>
+
 <!--B103893820FC4080809A97FABD49D8AF--><OBUISEL_SELECTOR_FIELD>
 <!--B103893820FC4080809A97FABD49D8AF-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[B103893820FC4080809A97FABD49D8AF]]></OBUISEL_SELECTOR_FIELD_ID>
 <!--B103893820FC4080809A97FABD49D8AF-->  <OBUISEL_SELECTOR_ID><![CDATA[862F54CB1B074513BD791C6789F4AA42]]></OBUISEL_SELECTOR_ID>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/costing/ResetStockValuation.java	Tue Nov 11 17:32:58 2014 +0530
@@ -0,0 +1,87 @@
+package org.openbravo.costing;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.codehaus.jettison.json.JSONArray;
+import org.codehaus.jettison.json.JSONException;
+import org.codehaus.jettison.json.JSONObject;
+import org.hibernate.Query;
+import org.openbravo.client.application.process.BaseProcessActionHandler;
+import org.openbravo.dal.core.OBContext;
+import org.openbravo.dal.service.OBDal;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
+import org.openbravo.model.materialmgmt.cost.StockValuation;
+import org.openbravo.service.db.CallStoredProcedure;
+
+public class ResetStockValuation extends BaseProcessActionHandler {
+
+  private static final Logger log = Logger.getLogger(ResetStockValuation.class);
+
+  @Override
+  protected JSONObject doExecute(Map<String, Object> parameters, String content) {
+    try {
+      JSONObject result = new JSONObject();
+      JSONObject msg = new JSONObject();
+      boolean errorMessage = false;
+
+      JSONObject request = new JSONObject(content);
+      JSONObject params = request.getJSONObject("_params");
+
+      // Do validations on param values
+      String strOrgID = null;
+      if (params.get("AD_Org_ID") != JSONObject.NULL) {
+        strOrgID = (String) params.get("AD_Org_ID");
+      }
+
+      // delete existing records
+      StringBuffer sql = new StringBuffer();
+      sql.append("delete from");
+      sql.append("\n " + StockValuation.ENTITY_NAME + " sv");
+      sql.append("\n where sv." + StockValuation.PROPERTY_CLIENT + ".id = :client");
+      if (strOrgID != null) {
+        sql.append("\n and sv." + StockValuation.PROPERTY_ORGANIZATION + ".id = :org");
+      }
+
+      Query delQry = OBDal.getInstance().getSession().createQuery(sql.toString());
+      delQry.setParameter("client", OBContext.getOBContext().getCurrentClient().getId());
+      if (strOrgID != null) {
+        delQry.setParameter("org", strOrgID);
+      }
+      delQry.executeUpdate();
+
+      List<Object> storedProcedureParams = new ArrayList<Object>();
+      storedProcedureParams.add(OBContext.getOBContext().getCurrentClient().getId());
+      storedProcedureParams.add(strOrgID);
+      storedProcedureParams.add(null);
+      try {
+        CallStoredProcedure.getInstance().call("M_INITIALIZE_STOCK_VALUATION",
+            storedProcedureParams, null, true, false);
+      } catch (Exception e) {
+        errorMessage = true;
+        msg.put("msgType", "error");
+        msg.put("msgTitle", OBMessageUtils.messageBD("Error"));
+        msg.put("msgText", OBMessageUtils.messageBD("ConversionRateCommandError"));
+      }
+
+      if (!errorMessage) {
+        msg.put("msgType", "success");
+        msg.put("msgTitle", OBMessageUtils.messageBD("Success"));
+      }
+
+      JSONArray actions = new JSONArray();
+      JSONObject msgAction = new JSONObject();
+      msgAction.put("showMsgInProcessView", msg);
+      actions.put(msgAction);
+      result.put("responseActions", actions);
+      result.put("retryExecution", true);
+      return result;
+
+    } catch (JSONException e) {
+      log.error("Error in process", e);
+      return new JSONObject();
+    }
+  }
+}