[costAdj] code review
authorSandra Huguet <sandra.huguet@openbravo.com>
Thu, 16 Oct 2014 17:06:50 +0200
changeset 25231 959a6c968b0f
parent 25230 3a528276e909
child 25232 cd1469170f1e
[costAdj] code review

update licence in some files, add descriptions,
fixed initial dataset, fixed backdated functionality in closed periods,
delete commented code, disable costing junit test,
fixed process price difference adjustment process definition
referencedata/sampledata/F_B_International_Group/AD_PROCESS_ACCESS.xml
referencedata/sampledata/QA_Testing/AD_PROCESS_ACCESS.xml
referencedata/standard/Initial_Setup.xml
src-db/database/model/tables/M_COSTING_RULE.xml
src-db/database/model/triggers/M_INTERNAL_CONSUMPTIONLINE_TRG.xml
src-db/database/sourcedata/AD_AUXILIARINPUT.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_DATASET.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_MESSAGE.xml
src-db/database/sourcedata/AD_MODEL_OBJECT.xml
src-db/database/sourcedata/AD_PROCESS.xml
src-db/database/sourcedata/AD_TAB.xml
src-db/database/sourcedata/AD_WINDOW.xml
src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
src-db/database/sourcedata/OBUIAPP_PROCESS.xml
src-test/src/org/openbravo/test/AllAntTaskTests.java
src-util/modulescript/src/org/openbravo/modulescript/CreateCostAdjustmentAcctConf.java
src-util/modulescript/src/org/openbravo/modulescript/CreateCostAdjustmentAcctConf_data.xsql
src-util/modulescript/src/org/openbravo/modulescript/CreateLandedCostAcctConf.java
src-util/modulescript/src/org/openbravo/modulescript/CreateLandedCostAcctConf_data.xsql
src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct.java
src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct_data.xsql
src-util/modulescript/src/org/openbravo/modulescript/UpdateCostingRuleDateTo.java
src-util/modulescript/src/org/openbravo/modulescript/UpdateCostingRuleDateTo_data.xsql
src/org/openbravo/common/inserters/LCMatchFromInvoiceInserter.java
src/org/openbravo/costing/AverageAlgorithm.java
src/org/openbravo/costing/AverageCostAdjustment.java
src/org/openbravo/costing/CancelCostAdjustment.java
src/org/openbravo/costing/CostAdjustmentProcess.java
src/org/openbravo/costing/CostAdjustmentUtils.java
src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java
src/org/openbravo/costing/CostingBackground.java
src/org/openbravo/costing/CostingMigrationProcess.java
src/org/openbravo/costing/CostingRuleProcess.java
src/org/openbravo/costing/CostingServer.java
src/org/openbravo/costing/CostingStatus.java
src/org/openbravo/costing/CostingUtils.java
src/org/openbravo/costing/FixBackdatedTransactionsProcess.java
src/org/openbravo/costing/InventoryAmountUpdateProcess.java
src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java
src/org/openbravo/costing/LCMatchingProcess.java
src/org/openbravo/costing/LandedCostDistributionAlgorithm.java
src/org/openbravo/costing/LandedCostDistributionByAmount.java
src/org/openbravo/costing/LandedCostProcess.java
src/org/openbravo/costing/PriceDifferenceByDateProcess.java
src/org/openbravo/costing/ReactivateLandedCost.java
src/org/openbravo/costing/StandardCostAdjustment.java
src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_AmtUnitCost.java
src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java
src/org/openbravo/erpCommon/ad_callouts/SL_LandedCost_InvoiceLine.java
src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment.java
src/org/openbravo/erpCommon/ad_forms/DocCostAdjustmentTemplate.java
src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment_data.xsql
src/org/openbravo/erpCommon/ad_forms/DocInternalConsumption.java
src/org/openbravo/erpCommon/ad_forms/DocInternalConsumptionTemplate.java
src/org/openbravo/erpCommon/ad_forms/DocInternalConsumption_data.xsql
src/org/openbravo/erpCommon/ad_forms/DocLCCost.java
src/org/openbravo/erpCommon/ad_forms/DocLandedCost.java
src/org/openbravo/erpCommon/ad_forms/DocLineInternalConsumption_data.xsql
src/org/openbravo/erpCommon/ad_forms/DocLine_CostAdjustment.java
src/org/openbravo/erpCommon/ad_forms/DocLine_LCCost.java
src/org/openbravo/erpCommon/ad_forms/DocLine_LandedCost.java
src/org/openbravo/erpCommon/utility/DimensionDisplayUtility.java
--- a/referencedata/sampledata/F_B_International_Group/AD_PROCESS_ACCESS.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/referencedata/sampledata/F_B_International_Group/AD_PROCESS_ACCESS.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -463,20 +463,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[023DB64113774A2EB1B2B3ADD8EB37CE]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[42D0EEB1C66F497A90DD526DC597E6F0]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[025C33A56FF840F2B8B6A2AA1D2D28DE]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[800124]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[6DCC4F942CE944F997596B9EA51A4FEB]]></AD_ROLE_ID>
@@ -7729,20 +7715,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[2963E228D9C8476F86A767AB31B2CC76]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[E669860946664B24BD1AE1ACDF2F5FC3]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[2969D6FE85C34382AF6DAA2CC88BB688]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[192]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[6DCC4F942CE944F997596B9EA51A4FEB]]></AD_ROLE_ID>
@@ -19657,20 +19629,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[6E99FF79D33D45E48ACB18AAA8D84A14]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[9A2D4EC760704A79BAFF8FF244FE0273]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[6EAF4A6213274611A8D6DA7E0E53D586]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[109]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[9A2D4EC760704A79BAFF8FF244FE0273]]></AD_ROLE_ID>
@@ -19727,20 +19685,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[6ECE599B4AB84B3AAE364029B7CEF5F8]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[F3196A30B53A42778727B2852FF90C24]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[6EE0B2120A674CC5973C4D70EDAAE264]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[B54318B49E984B9CB855AEFB1F474CD6]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[E669860946664B24BD1AE1ACDF2F5FC3]]></AD_ROLE_ID>
@@ -20217,20 +20161,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[7166E02FC5FD46E48698C0FF4E1AFB75]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[6DCC4F942CE944F997596B9EA51A4FEB]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[71C82D93DCB04E7591EB27D073CEBD4C]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[1000500000]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[0D4689364DDB473BB3023E4E554C8762]]></AD_ROLE_ID>
@@ -24235,20 +24165,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[889B25F1BFA94B3586B26CC75643A155]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[0D4689364DDB473BB3023E4E554C8762]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[88A164D221424D40AE2012745D69EBC7]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[800151]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[F77D70601AD549B19DE47965F6D48D12]]></AD_ROLE_ID>
@@ -39103,20 +39019,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[DBA2633A5E5648E3B372B935B1C047BF]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[DB6660F6713A4DCFA320A502B4A0E670]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[DC04688701454484BE8A09282E524B24]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[186]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[0D4689364DDB473BB3023E4E554C8762]]></AD_ROLE_ID>
@@ -40909,20 +40811,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[E6628A952F24438F8342025C80931CAE]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[F77D70601AD549B19DE47965F6D48D12]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[E66A435C8EEB482FB88AF0C1D5F606B7]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[800145]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[8CB7726D1DCD435FAF7D1654C9560F81]]></AD_ROLE_ID>
@@ -42015,20 +41903,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[ED15AC1FECFA4D97AC29FA614868358B]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[8CB7726D1DCD435FAF7D1654C9560F81]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[ED1DA085106341638E7E49394DA9E094]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[1004400004]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[0D4689364DDB473BB3023E4E554C8762]]></AD_ROLE_ID>
@@ -42715,20 +42589,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[F06727109D1D43FE9C44A42FD33CB9C9]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[1CAE17A7848D4F0BAAF21FEB17045B88]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[23C59575B9CF467C9620760EB255B389]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-30 19:59:09.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-30 19:59:09.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[F06F2EA4B49F4586A49148B81805AC68]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[FF80808133362F6A013336781FCE0066]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[6DCC4F942CE944F997596B9EA51A4FEB]]></AD_ROLE_ID>
--- a/referencedata/sampledata/QA_Testing/AD_PROCESS_ACCESS.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/referencedata/sampledata/QA_Testing/AD_PROCESS_ACCESS.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -799,20 +799,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[109CA8FA9D9E40739D781C9B14B0C368]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[CC6AB5B4C4B54CB79103C96AD2B90750]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[4028E6C72959682B01295A070852010D]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-05 11:58:34.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-05 11:58:34.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[119A0C3D1C6F4EB3BD704823F66AE427]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[140]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[0256D4272D82412C9CDF41B67E362599]]></AD_ROLE_ID>
@@ -2759,20 +2745,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[37C5C88C1BBD4185BB395F1F8F46D638]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[4028E6C72959682B01295A071429011E]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[4028E6C72959682B01295A070852010D]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-05 11:58:34.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-05 11:58:34.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[386AD6888643418B93BAAC3B0362ACD2]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[800020]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[0256D4272D82412C9CDF41B67E362599]]></AD_ROLE_ID>
@@ -13147,20 +13119,6 @@
 </AD_PROCESS_ACCESS>
 
 <AD_PROCESS_ACCESS>
-  <AD_PROCESS_ACCESS_ID><![CDATA[EDC5AABF316244569DE25FA0DA82364D]]></AD_PROCESS_ACCESS_ID>
-  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-  <AD_ROLE_ID><![CDATA[0256D4272D82412C9CDF41B67E362599]]></AD_ROLE_ID>
-  <AD_CLIENT_ID><![CDATA[4028E6C72959682B01295A070852010D]]></AD_CLIENT_ID>
-  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-  <CREATED><![CDATA[2014-09-05 11:58:34.0]]></CREATED>
-  <CREATEDBY><![CDATA[0]]></CREATEDBY>
-  <UPDATED><![CDATA[2014-09-05 11:58:34.0]]></UPDATED>
-  <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
-  <ISREADWRITE><![CDATA[Y]]></ISREADWRITE>
-</AD_PROCESS_ACCESS>
-
-<AD_PROCESS_ACCESS>
   <AD_PROCESS_ACCESS_ID><![CDATA[EE6281E2A37A495C866667075B686A89]]></AD_PROCESS_ACCESS_ID>
   <AD_PROCESS_ID><![CDATA[225]]></AD_PROCESS_ID>
   <AD_ROLE_ID><![CDATA[0256D4272D82412C9CDF41B67E362599]]></AD_ROLE_ID>
--- a/referencedata/standard/Initial_Setup.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/referencedata/standard/Initial_Setup.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -675,6 +675,31 @@
     <return>false</return>
     <documentTypeForOrder xsi:nil="true"/>
   </DocumentType>
+  <DocumentType id="56AA9305B32C44A08554D3DB16E2B4E2" identifier="Return Material Sales Invoice">
+    <id>56AA9305B32C44A08554D3DB16E2B4E2</id>
+    <active>true</active>
+    <name>Return Material Sales Invoice</name>
+    <printText>Return Material Sales Invoice</printText>
+    <description xsi:nil="true"/>
+    <documentCategory>ARI_RM</documentCategory>
+    <salesTransaction>true</salesTransaction>
+    <sOSubType xsi:nil="true"/>
+    <documentTypeForShipment xsi:nil="true"/>
+    <documentTypeForInvoice xsi:nil="true"/>
+    <sequencedDocument>true</sequencedDocument>
+    <documentSequence id="CD179732385848B09607674D35D1C447" entity-name="ADSequence" identifier="Return Material Sales Invoice"/>
+    <gLCategory id="102C08DF5D4341D5B7FDF758632503D2" entity-name="FinancialMgmtGLCategory" identifier="AR Invoice"/>
+    <comments xsi:nil="true"/>
+    <default>false</default>
+    <numberOfCopies>1</numberOfCopies>
+    <table id="318" entity-name="ADTable" identifier="C_Invoice"/>
+    <filterByOrganization>false</filterByOrganization>
+    <documentCancelled xsi:nil="true"/>
+    <expense>false</expense>
+    <reversal>false</reversal>
+    <return>true</return>
+    <documentTypeForOrder xsi:nil="true"/>
+  </DocumentType>
   <DocumentType id="5C6E02993E9B4FCA81C07955EF676C62" identifier="AP Invoice">
     <id>5C6E02993E9B4FCA81C07955EF676C62</id>
     <active>true</active>
@@ -1075,31 +1100,6 @@
     <return>false</return>
     <documentTypeForOrder xsi:nil="true"/>
   </DocumentType>
-  <DocumentType id="56AA9305B32C44A08554D3DB16E2B4E2" identifier="Return Material Sales Invoice">
-    <id>56AA9305B32C44A08554D3DB16E2B4E2</id>
-    <active>true</active>
-    <name>Return Material Sales Invoice</name>
-    <printText>Return Material Sales Invoice</printText>
-    <description xsi:nil="true"/>
-    <documentCategory>ARI_RM</documentCategory>
-    <salesTransaction>true</salesTransaction>
-    <sOSubType xsi:nil="true"/>
-    <documentTypeForShipment xsi:nil="true"/>
-    <documentTypeForInvoice xsi:nil="true"/>
-    <sequencedDocument>true</sequencedDocument>
-    <documentSequence id="CD179732385848B09607674D35D1C447" entity-name="ADSequence" identifier="Return Material Sales Invoice"/>
-    <gLCategory id="102C08DF5D4341D5B7FDF758632503D2" entity-name="FinancialMgmtGLCategory" identifier="AR Invoice"/>
-    <comments xsi:nil="true"/>
-    <default>false</default>
-    <numberOfCopies>1</numberOfCopies>
-    <table id="318" entity-name="ADTable" identifier="C_Invoice"/>
-    <filterByOrganization>false</filterByOrganization>
-    <documentCancelled xsi:nil="true"/>
-    <expense>false</expense>
-    <reversal>false</reversal>
-    <return>true</return>
-    <documentTypeForOrder xsi:nil="true"/>
-  </DocumentType>
   <DocumentType id="AFFD4594FB734E9682D5769669A9D471" identifier="Reversed Purchase Invoice">
     <id>AFFD4594FB734E9682D5769669A9D471</id>
     <active>true</active>
@@ -1325,6 +1325,31 @@
     <return>false</return>
     <documentTypeForOrder xsi:nil="true"/>
   </DocumentType>
+  <DocumentType id="E664C8BE572A41558E12063E99081B15" identifier="Material Internal Consumption">
+    <id>E664C8BE572A41558E12063E99081B15</id>
+    <active>true</active>
+    <name>Material Internal Consumption</name>
+    <printText>Material Internal Consumption</printText>
+    <description xsi:nil="true"/>
+    <documentCategory>MIC</documentCategory>
+    <salesTransaction>false</salesTransaction>
+    <sOSubType xsi:nil="true"/>
+    <documentTypeForShipment xsi:nil="true"/>
+    <documentTypeForInvoice xsi:nil="true"/>
+    <sequencedDocument>true</sequencedDocument>
+    <documentSequence id="733AF9614B5F45BA91AF10D624089C0C" entity-name="ADSequence" identifier="Material Internal Consumption"/>
+    <gLCategory id="745A2B441A2644DF934D1B1E462292E9" entity-name="FinancialMgmtGLCategory" identifier="None"/>
+    <comments xsi:nil="true"/>
+    <default>false</default>
+    <numberOfCopies>1</numberOfCopies>
+    <table id="800168" entity-name="ADTable" identifier="M_Internal_Consumption"/>
+    <filterByOrganization>false</filterByOrganization>
+    <documentCancelled xsi:nil="true"/>
+    <expense>false</expense>
+    <reversal>false</reversal>
+    <return>false</return>
+    <documentTypeForOrder xsi:nil="true"/>
+  </DocumentType>
   <DocumentType id="E7F4802D902A42A59143DCCBEDE4DE85" identifier="Credit Order">
     <id>E7F4802D902A42A59143DCCBEDE4DE85</id>
     <active>false</active>
@@ -1367,7 +1392,7 @@
     <comments xsi:nil="true"/>
     <default>false</default>
     <numberOfCopies>1</numberOfCopies>
-    <table id="F6B6AD5679FF4A798D2A3D44B232C52C" entity-name="ADTable" identifier="M_CA_INVENTORYAMT"/>
+    <table id="F6B6AD5679FF4A798D2A3D44B232C52C" entity-name="ADTable" identifier="M_CA_InventoryAmt"/>
     <filterByOrganization>false</filterByOrganization>
     <documentCancelled xsi:nil="true"/>
     <expense>false</expense>
@@ -1582,6 +1607,18 @@
     <usedForRecordID>false</usedForRecordID>
     <restartSequenceEveryYear>false</restartSequenceEveryYear>
   </ADSequence>
+  <ADSequence id="733AF9614B5F45BA91AF10D624089C0C" identifier="Material Internal Consumption">
+    <id>733AF9614B5F45BA91AF10D624089C0C</id>
+    <active>true</active>
+    <name>Material Internal Consumption</name>
+    <description>Material Internal Consumption</description>
+    <valueFormat xsi:nil="true"/>
+    <autoNumbering>true</autoNumbering>
+    <incrementBy>1</incrementBy>
+    <startingNo>1000000</startingNo>
+    <usedForRecordID>false</usedForRecordID>
+    <restartSequenceEveryYear>false</restartSequenceEveryYear>
+  </ADSequence>
   <ADSequence id="74C3CC2BCDDA45F5BBFE8DF603728749" identifier="Purchase Requisition">
     <id>74C3CC2BCDDA45F5BBFE8DF603728749</id>
     <active>true</active>
@@ -1690,18 +1727,6 @@
     <usedForRecordID>false</usedForRecordID>
     <restartSequenceEveryYear>false</restartSequenceEveryYear>
   </ADSequence>
-  <ADSequence id="CD179732385848B09607674D35D1C447" identifier="Return Material Sales Invoice">
-    <id>CD179732385848B09607674D35D1C447</id>
-    <active>true</active>
-    <name>Return Material Sales Invoice</name>
-    <description>Return Material Sales Invoice</description>
-    <valueFormat xsi:nil="true"/>
-    <autoNumbering>true</autoNumbering>
-    <incrementBy>1</incrementBy>
-    <startingNo>1000000</startingNo>
-    <usedForRecordID>false</usedForRecordID>
-    <restartSequenceEveryYear>false</restartSequenceEveryYear>
-  </ADSequence>
   <ADSequence id="949C664EE54A4AA5B23CE288E1677916" identifier="Bank Statement">
     <id>949C664EE54A4AA5B23CE288E1677916</id>
     <active>true</active>
@@ -1822,6 +1847,18 @@
     <usedForRecordID>false</usedForRecordID>
     <restartSequenceEveryYear>false</restartSequenceEveryYear>
   </ADSequence>
+  <ADSequence id="CD179732385848B09607674D35D1C447" identifier="Return Material Sales Invoice">
+    <id>CD179732385848B09607674D35D1C447</id>
+    <active>true</active>
+    <name>Return Material Sales Invoice</name>
+    <description>Return Material Sales Invoice</description>
+    <valueFormat xsi:nil="true"/>
+    <autoNumbering>true</autoNumbering>
+    <incrementBy>1</incrementBy>
+    <startingNo>1000000</startingNo>
+    <usedForRecordID>false</usedForRecordID>
+    <restartSequenceEveryYear>false</restartSequenceEveryYear>
+  </ADSequence>
   <ADSequence id="CF53CE0FBB6B4FBB89C4939E191AFFD4" identifier="Manual Settlement">
     <id>CF53CE0FBB6B4FBB89C4939E191AFFD4</id>
     <active>true</active>
@@ -1966,18 +2003,6 @@
     <showlogo>true</showlogo>
     <headermargin xsi:nil="true"/>
   </DocumentTemplate>
-  <DocumentTemplate id="B1D6986BD45E4E108B0C3121FC90D3B5" identifier="Return Material Sales Invoice Report template">
-    <id>B1D6986BD45E4E108B0C3121FC90D3B5</id>
-    <active>true</active>
-    <documentType id="56AA9305B32C44A08554D3DB16E2B4E2" entity-name="DocumentType" identifier="Return Material Sales Invoice"/>
-    <name>Return Material Sales Invoice Report template</name>
-    <templateLocation>@basedesign@/org/openbravo/erpReports</templateLocation>
-    <reportFilename>Return Material Invoice-@our_ref@</reportFilename>
-    <templateFilename>RptC_Invoice_new.jrxml</templateFilename>
-    <showcompanydata>true</showcompanydata>
-    <showlogo>true</showlogo>
-    <headermargin xsi:nil="true"/>
-  </DocumentTemplate>
   <DocumentTemplate id="70AEA0C77DB743A4A89058BFE091FEEA" identifier="Standard order report template">
     <id>70AEA0C77DB743A4A89058BFE091FEEA</id>
     <active>true</active>
@@ -2074,6 +2099,18 @@
     <showlogo>true</showlogo>
     <headermargin xsi:nil="true"/>
   </DocumentTemplate>
+  <DocumentTemplate id="B1D6986BD45E4E108B0C3121FC90D3B5" identifier="Return Material Sales Invoice Report template">
+    <id>B1D6986BD45E4E108B0C3121FC90D3B5</id>
+    <active>true</active>
+    <documentType id="56AA9305B32C44A08554D3DB16E2B4E2" entity-name="DocumentType" identifier="Return Material Sales Invoice"/>
+    <name>Return Material Sales Invoice Report template</name>
+    <templateLocation>@basedesign@/org/openbravo/erpReports</templateLocation>
+    <reportFilename>Return Material Invoice-@our_ref@</reportFilename>
+    <templateFilename>RptC_Invoice_new.jrxml</templateFilename>
+    <showcompanydata>true</showcompanydata>
+    <showlogo>true</showlogo>
+    <headermargin xsi:nil="true"/>
+  </DocumentTemplate>
   <DocumentTemplate id="B1DF02E45C4946C7BB1D45C065C49577" identifier="AP Credit Report template">
     <id>B1DF02E45C4946C7BB1D45C065C49577</id>
     <active>true</active>
--- a/src-db/database/model/tables/M_COSTING_RULE.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/model/tables/M_COSTING_RULE.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -77,6 +77,10 @@
         <default><![CDATA[N]]></default>
         <onCreateDefault/>
       </column>
+      <column name="FIXBACKDATEDFROM" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <foreign-key foreignTable="M_COSTING_ALGORITHM" name="M_COSTING_RULE_ALGORITHM">
         <reference local="M_COSTING_ALGORITHM_ID" foreign="M_COSTING_ALGORITHM_ID"/>
       </foreign-key>
--- a/src-db/database/model/triggers/M_INTERNAL_CONSUMPTIONLINE_TRG.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/model/triggers/M_INTERNAL_CONSUMPTIONLINE_TRG.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -14,7 +14,7 @@
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2001-2013 Openbravo SLU
+* All portions are Copyright (C) 2001-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************/
--- a/src-db/database/sourcedata/AD_AUXILIARINPUT.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_AUXILIARINPUT.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -2715,6 +2715,17 @@
 <!--9078FCC35AE5454DB6818D2BB6602E0B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--9078FCC35AE5454DB6818D2BB6602E0B--></AD_AUXILIARINPUT>
 
+<!--93B167F1358F4D7E8767FF56D97CF924--><AD_AUXILIARINPUT>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <AD_AUXILIARINPUT_ID><![CDATA[93B167F1358F4D7E8767FF56D97CF924]]></AD_AUXILIARINPUT_ID>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <AD_TAB_ID><![CDATA[800202]]></AD_TAB_ID>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <NAME><![CDATA[DOCBASETYPE]]></NAME>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <CODE><![CDATA[MIC]]></CODE>
+<!--93B167F1358F4D7E8767FF56D97CF924-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--93B167F1358F4D7E8767FF56D97CF924--></AD_AUXILIARINPUT>
+
 <!--9452A73B80BF4AD8AE1BCBC04D196000--><AD_AUXILIARINPUT>
 <!--9452A73B80BF4AD8AE1BCBC04D196000-->  <AD_AUXILIARINPUT_ID><![CDATA[9452A73B80BF4AD8AE1BCBC04D196000]]></AD_AUXILIARINPUT_ID>
 <!--9452A73B80BF4AD8AE1BCBC04D196000-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -219925,6 +219925,7 @@
 <!--000AC0F629075A1FE050007F010018C3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--000AC0F629075A1FE050007F010018C3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--000AC0F629075A1FE050007F010018C3-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--000AC0F629075A1FE050007F010018C3-->  <DESCRIPTION><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></DESCRIPTION>
 <!--000AC0F629075A1FE050007F010018C3-->  <HELP><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></HELP>
 <!--000AC0F629075A1FE050007F010018C3-->  <COLUMNNAME><![CDATA[IsUnitCost]]></COLUMNNAME>
 <!--000AC0F629075A1FE050007F010018C3-->  <AD_TABLE_ID><![CDATA[34E79323CEC847C2A9ED2C8430AC73D1]]></AD_TABLE_ID>
@@ -219960,6 +219961,7 @@
 <!--0019F1923F570D78E050007F01001F36-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0019F1923F570D78E050007F01001F36-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0019F1923F570D78E050007F01001F36-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--0019F1923F570D78E050007F01001F36-->  <DESCRIPTION><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></DESCRIPTION>
 <!--0019F1923F570D78E050007F01001F36-->  <HELP><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></HELP>
 <!--0019F1923F570D78E050007F01001F36-->  <COLUMNNAME><![CDATA[IsUnitCost]]></COLUMNNAME>
 <!--0019F1923F570D78E050007F01001F36-->  <AD_TABLE_ID><![CDATA[3D6BB7D6D0F74610B7FA67B2D8471028]]></AD_TABLE_ID>
@@ -220030,6 +220032,7 @@
 <!--001D6CB1D08567ABE050007F0100057B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--001D6CB1D08567ABE050007F0100057B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--001D6CB1D08567ABE050007F0100057B-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--001D6CB1D08567ABE050007F0100057B-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--001D6CB1D08567ABE050007F0100057B-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--001D6CB1D08567ABE050007F0100057B-->  <COLUMNNAME><![CDATA[M_Lc_Distribution_Alg_ID]]></COLUMNNAME>
 <!--001D6CB1D08567ABE050007F0100057B-->  <AD_TABLE_ID><![CDATA[61F6EE14CE4A484D857536AF192E6BED]]></AD_TABLE_ID>
@@ -220421,6 +220424,7 @@
 <!--001D6CB1D0A967ABE050007F0100057B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--001D6CB1D0A967ABE050007F0100057B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--001D6CB1D0A967ABE050007F0100057B-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--001D6CB1D0A967ABE050007F0100057B-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--001D6CB1D0A967ABE050007F0100057B-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--001D6CB1D0A967ABE050007F0100057B-->  <COLUMNNAME><![CDATA[M_Lc_Type_ID]]></COLUMNNAME>
 <!--001D6CB1D0A967ABE050007F0100057B-->  <AD_TABLE_ID><![CDATA[BAFE429F04854EBEBD63A450DD714C89]]></AD_TABLE_ID>
@@ -220777,6 +220781,7 @@
 <!--001D6CB1D0B367ABE050007F0100057B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--001D6CB1D0B367ABE050007F0100057B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--001D6CB1D0B367ABE050007F0100057B-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--001D6CB1D0B367ABE050007F0100057B-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--001D6CB1D0B367ABE050007F0100057B-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--001D6CB1D0B367ABE050007F0100057B-->  <COLUMNNAME><![CDATA[M_Lc_Distribution_Alg_ID]]></COLUMNNAME>
 <!--001D6CB1D0B367ABE050007F0100057B-->  <AD_TABLE_ID><![CDATA[BAFE429F04854EBEBD63A450DD714C89]]></AD_TABLE_ID>
@@ -220846,6 +220851,7 @@
 <!--00568254CB2F8733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB2F8733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB2F8733E050007F01000513-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--00568254CB2F8733E050007F01000513-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--00568254CB2F8733E050007F01000513-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--00568254CB2F8733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Landedcost_ID]]></COLUMNNAME>
 <!--00568254CB2F8733E050007F01000513-->  <AD_TABLE_ID><![CDATA[082F967CDF7245EB9A150941F326C45C]]></AD_TABLE_ID>
@@ -221385,6 +221391,7 @@
 <!--00568254CB5F8733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB5F8733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB5F8733E050007F01000513-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--00568254CB5F8733E050007F01000513-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--00568254CB5F8733E050007F01000513-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--00568254CB5F8733E050007F01000513-->  <COLUMNNAME><![CDATA[M_LC_Cost_ID]]></COLUMNNAME>
 <!--00568254CB5F8733E050007F01000513-->  <AD_TABLE_ID><![CDATA[55A984C314FD4C4FB5E7C32DE36BB07B]]></AD_TABLE_ID>
@@ -221671,6 +221678,7 @@
 <!--00568254CB678733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB678733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB678733E050007F01000513-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--00568254CB678733E050007F01000513-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--00568254CB678733E050007F01000513-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--00568254CB678733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Landedcost_ID]]></COLUMNNAME>
 <!--00568254CB678733E050007F01000513-->  <AD_TABLE_ID><![CDATA[55A984C314FD4C4FB5E7C32DE36BB07B]]></AD_TABLE_ID>
@@ -221740,6 +221748,7 @@
 <!--00568254CB698733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB698733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB698733E050007F01000513-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--00568254CB698733E050007F01000513-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--00568254CB698733E050007F01000513-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--00568254CB698733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Lc_Type_ID]]></COLUMNNAME>
 <!--00568254CB698733E050007F01000513-->  <AD_TABLE_ID><![CDATA[55A984C314FD4C4FB5E7C32DE36BB07B]]></AD_TABLE_ID>
@@ -221809,6 +221818,7 @@
 <!--00568254CB6C8733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB6C8733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB6C8733E050007F01000513-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--00568254CB6C8733E050007F01000513-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--00568254CB6C8733E050007F01000513-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--00568254CB6C8733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Lc_Distribution_Alg_ID]]></COLUMNNAME>
 <!--00568254CB6C8733E050007F01000513-->  <AD_TABLE_ID><![CDATA[55A984C314FD4C4FB5E7C32DE36BB07B]]></AD_TABLE_ID>
@@ -221915,6 +221925,7 @@
 <!--00568254CB898733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB898733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB898733E050007F01000513-->  <NAME><![CDATA[Landed Cost Receipt]]></NAME>
+<!--00568254CB898733E050007F01000513-->  <DESCRIPTION><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></DESCRIPTION>
 <!--00568254CB898733E050007F01000513-->  <HELP><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></HELP>
 <!--00568254CB898733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Lc_Receipt_ID]]></COLUMNNAME>
 <!--00568254CB898733E050007F01000513-->  <AD_TABLE_ID><![CDATA[FC90AED3E5ED45CAB28A1FF2D571FB99]]></AD_TABLE_ID>
@@ -222201,6 +222212,7 @@
 <!--00568254CB918733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CB918733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CB918733E050007F01000513-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--00568254CB918733E050007F01000513-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--00568254CB918733E050007F01000513-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--00568254CB918733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Landedcost_ID]]></COLUMNNAME>
 <!--00568254CB918733E050007F01000513-->  <AD_TABLE_ID><![CDATA[FC90AED3E5ED45CAB28A1FF2D571FB99]]></AD_TABLE_ID>
@@ -222272,6 +222284,7 @@
 <!--005AE3B9D4ED3F7BE050007F010019F4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--005AE3B9D4ED3F7BE050007F010019F4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--005AE3B9D4ED3F7BE050007F010019F4-->  <NAME><![CDATA[Landed Cost Receipt Line Amount]]></NAME>
+<!--005AE3B9D4ED3F7BE050007F010019F4-->  <DESCRIPTION><![CDATA[Identifies the corresponding amount of each Landed Cost Cost assigned to each Receipt Line]]></DESCRIPTION>
 <!--005AE3B9D4ED3F7BE050007F010019F4-->  <HELP><![CDATA[Identifies the corresponding amount of each Landed Cost Cost assigned to each Receipt Line]]></HELP>
 <!--005AE3B9D4ED3F7BE050007F010019F4-->  <COLUMNNAME><![CDATA[M_Lc_Receiptline_Amt_ID]]></COLUMNNAME>
 <!--005AE3B9D4ED3F7BE050007F010019F4-->  <AD_TABLE_ID><![CDATA[4DA32EB3E1A5429197785EC79FF34132]]></AD_TABLE_ID>
@@ -222558,6 +222571,7 @@
 <!--005AE3B9D4F53F7BE050007F010019F4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--005AE3B9D4F53F7BE050007F010019F4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--005AE3B9D4F53F7BE050007F010019F4-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--005AE3B9D4F53F7BE050007F010019F4-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--005AE3B9D4F53F7BE050007F010019F4-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--005AE3B9D4F53F7BE050007F010019F4-->  <COLUMNNAME><![CDATA[M_Lc_Cost_ID]]></COLUMNNAME>
 <!--005AE3B9D4F53F7BE050007F010019F4-->  <AD_TABLE_ID><![CDATA[4DA32EB3E1A5429197785EC79FF34132]]></AD_TABLE_ID>
@@ -222592,6 +222606,7 @@
 <!--005AE3B9D4F63F7BE050007F010019F4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--005AE3B9D4F63F7BE050007F010019F4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--005AE3B9D4F63F7BE050007F010019F4-->  <NAME><![CDATA[Landed Cost Receipt]]></NAME>
+<!--005AE3B9D4F63F7BE050007F010019F4-->  <DESCRIPTION><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></DESCRIPTION>
 <!--005AE3B9D4F63F7BE050007F010019F4-->  <HELP><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></HELP>
 <!--005AE3B9D4F63F7BE050007F010019F4-->  <COLUMNNAME><![CDATA[M_Lc_Receipt_ID]]></COLUMNNAME>
 <!--005AE3B9D4F63F7BE050007F010019F4-->  <AD_TABLE_ID><![CDATA[4DA32EB3E1A5429197785EC79FF34132]]></AD_TABLE_ID>
@@ -222659,6 +222674,7 @@
 <!--0068C9A0550148F494A0E7BDA1F10C8B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0068C9A0550148F494A0E7BDA1F10C8B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0068C9A0550148F494A0E7BDA1F10C8B-->  <NAME><![CDATA[Matched Landed Cost]]></NAME>
+<!--0068C9A0550148F494A0E7BDA1F10C8B-->  <DESCRIPTION><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></DESCRIPTION>
 <!--0068C9A0550148F494A0E7BDA1F10C8B-->  <HELP><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></HELP>
 <!--0068C9A0550148F494A0E7BDA1F10C8B-->  <COLUMNNAME><![CDATA[M_LC_Matched_ID]]></COLUMNNAME>
 <!--0068C9A0550148F494A0E7BDA1F10C8B-->  <AD_TABLE_ID><![CDATA[B2960E2BDCCD4F7599A2433F2681847F]]></AD_TABLE_ID>
@@ -222940,6 +222956,7 @@
 <!--00FC088B51AE944FE050007F01001D28-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00FC088B51AE944FE050007F01001D28-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00FC088B51AE944FE050007F01001D28-->  <NAME><![CDATA[Inventory Type]]></NAME>
+<!--00FC088B51AE944FE050007F01001D28-->  <DESCRIPTION><![CDATA[Defines the type of inventory being performed.]]></DESCRIPTION>
 <!--00FC088B51AE944FE050007F01001D28-->  <HELP><![CDATA[Defines the type of inventory being performed.]]></HELP>
 <!--00FC088B51AE944FE050007F01001D28-->  <COLUMNNAME><![CDATA[Inventory_Type]]></COLUMNNAME>
 <!--00FC088B51AE944FE050007F01001D28-->  <AD_TABLE_ID><![CDATA[321]]></AD_TABLE_ID>
@@ -223045,6 +223062,7 @@
 <!--01A03F0F80DCFD28E050007F01000E56-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--01A03F0F80DCFD28E050007F01000E56-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--01A03F0F80DCFD28E050007F01000E56-->  <NAME><![CDATA[Is Cost Permanent]]></NAME>
+<!--01A03F0F80DCFD28E050007F01000E56-->  <DESCRIPTION><![CDATA[Determines whether the cost is permanently adjusted or not.  ]]></DESCRIPTION>
 <!--01A03F0F80DCFD28E050007F01000E56-->  <HELP><![CDATA[Determines whether the cost is permanently adjusted or not.  ]]></HELP>
 <!--01A03F0F80DCFD28E050007F01000E56-->  <COLUMNNAME><![CDATA[IsCostPermanent]]></COLUMNNAME>
 <!--01A03F0F80DCFD28E050007F01000E56-->  <AD_TABLE_ID><![CDATA[329]]></AD_TABLE_ID>
@@ -223153,6 +223171,7 @@
 <!--01DDF5AB6909DB9EE050007F01002DD8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--01DDF5AB6909DB9EE050007F01002DD8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--01DDF5AB6909DB9EE050007F01002DD8-->  <NAME><![CDATA[Matched Landed Cost]]></NAME>
+<!--01DDF5AB6909DB9EE050007F01002DD8-->  <DESCRIPTION><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></DESCRIPTION>
 <!--01DDF5AB6909DB9EE050007F01002DD8-->  <HELP><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></HELP>
 <!--01DDF5AB6909DB9EE050007F01002DD8-->  <COLUMNNAME><![CDATA[M_Lc_Matched_ID]]></COLUMNNAME>
 <!--01DDF5AB6909DB9EE050007F01002DD8-->  <AD_TABLE_ID><![CDATA[EF0201D90F30499EBFAF53D0FC7452DB]]></AD_TABLE_ID>
@@ -223439,6 +223458,7 @@
 <!--01DDF5AB6911DB9EE050007F01002DD8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--01DDF5AB6911DB9EE050007F01002DD8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--01DDF5AB6911DB9EE050007F01002DD8-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--01DDF5AB6911DB9EE050007F01002DD8-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--01DDF5AB6911DB9EE050007F01002DD8-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--01DDF5AB6911DB9EE050007F01002DD8-->  <COLUMNNAME><![CDATA[M_Lc_Cost_ID]]></COLUMNNAME>
 <!--01DDF5AB6911DB9EE050007F01002DD8-->  <AD_TABLE_ID><![CDATA[EF0201D90F30499EBFAF53D0FC7452DB]]></AD_TABLE_ID>
@@ -226598,6 +226618,9 @@
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <NAME><![CDATA[Fix Backdated Transactions]]></NAME>
+<!--0DCB49039F4541E8907BAE1588D7385F-->  <DESCRIPTION><![CDATA[Fix Backdated Transactions process]]></DESCRIPTION>
+<!--0DCB49039F4541E8907BAE1588D7385F-->  <HELP><![CDATA[Process that recalculates costs of backdated transactions until the given date. 
+Run process from Costing Rules window.]]></HELP>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <COLUMNNAME><![CDATA[Backdatedtrxsfixedprocess]]></COLUMNNAME>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <AD_TABLE_ID><![CDATA[3CF4E9CC4AD94D63BE9DF1822E5B4239]]></AD_TABLE_ID>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
@@ -226613,7 +226636,6 @@
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <AD_ELEMENT_ID><![CDATA[FF64EAFEF0974E47A41D944E72285A57]]></AD_ELEMENT_ID>
-<!--0DCB49039F4541E8907BAE1588D7385F-->  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
@@ -226625,6 +226647,7 @@
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
 <!--0DCB49039F4541E8907BAE1588D7385F-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--0DCB49039F4541E8907BAE1588D7385F-->  <EM_OBUIAPP_PROCESS_ID><![CDATA[5D335DD61A264A6FAD881E159ADA9F5A]]></EM_OBUIAPP_PROCESS_ID>
 <!--0DCB49039F4541E8907BAE1588D7385F--></AD_COLUMN>
 
 <!--0E018D6C892D4CF39458C13715AE0670--><AD_COLUMN>
@@ -240282,6 +240305,8 @@
 <!--480CC1DA0E0F432CACE9360D07842B65-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--480CC1DA0E0F432CACE9360D07842B65-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--480CC1DA0E0F432CACE9360D07842B65-->  <NAME><![CDATA[Backdated Transactions Fixed]]></NAME>
+<!--480CC1DA0E0F432CACE9360D07842B65-->  <DESCRIPTION><![CDATA[If checked Fix Backdated Transactions has been executed for the Costing Rule.]]></DESCRIPTION>
+<!--480CC1DA0E0F432CACE9360D07842B65-->  <HELP><![CDATA[If checked Fix Backdated Transactions has been executed for the Costing Rule.]]></HELP>
 <!--480CC1DA0E0F432CACE9360D07842B65-->  <COLUMNNAME><![CDATA[Backdatedtrxsfixed]]></COLUMNNAME>
 <!--480CC1DA0E0F432CACE9360D07842B65-->  <AD_TABLE_ID><![CDATA[3CF4E9CC4AD94D63BE9DF1822E5B4239]]></AD_TABLE_ID>
 <!--480CC1DA0E0F432CACE9360D07842B65-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
@@ -287014,6 +287039,41 @@
 <!--8412930246D8472BA11E4B067115CD48-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--8412930246D8472BA11E4B067115CD48--></AD_COLUMN>
 
+<!--842AB447B9D1488EA42F3DACA71934F3--><AD_COLUMN>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_COLUMN_ID><![CDATA[842AB447B9D1488EA42F3DACA71934F3]]></AD_COLUMN_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <NAME><![CDATA[Fixbackdatedfrom]]></NAME>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <DESCRIPTION><![CDATA[Starting date in the costing rule to fix backdated transactions]]></DESCRIPTION>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <HELP><![CDATA[Starting date in the costing rule to fix backdated transactions]]></HELP>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <COLUMNNAME><![CDATA[Fixbackdatedfrom]]></COLUMNNAME>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_TABLE_ID><![CDATA[3CF4E9CC4AD94D63BE9DF1822E5B4239]]></AD_TABLE_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_REFERENCE_ID><![CDATA[15]]></AD_REFERENCE_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <FIELDLENGTH><![CDATA[19]]></FIELDLENGTH>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <SEQNO><![CDATA[200]]></SEQNO>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_ELEMENT_ID><![CDATA[DD118282B81E4345A62EAE0C0D6E42BF]]></AD_ELEMENT_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <POSITION><![CDATA[20]]></POSITION>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--842AB447B9D1488EA42F3DACA71934F3-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--842AB447B9D1488EA42F3DACA71934F3--></AD_COLUMN>
+
 <!--844699F72F51447CA44FD379C71C7A7B--><AD_COLUMN>
 <!--844699F72F51447CA44FD379C71C7A7B-->  <AD_COLUMN_ID><![CDATA[844699F72F51447CA44FD379C71C7A7B]]></AD_COLUMN_ID>
 <!--844699F72F51447CA44FD379C71C7A7B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -311763,6 +311823,7 @@
 <!--B76E77628810492197DFA15D9869402C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--B76E77628810492197DFA15D9869402C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--B76E77628810492197DFA15D9869402C-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--B76E77628810492197DFA15D9869402C-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--B76E77628810492197DFA15D9869402C-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--B76E77628810492197DFA15D9869402C-->  <COLUMNNAME><![CDATA[M_LC_Cost_ID]]></COLUMNNAME>
 <!--B76E77628810492197DFA15D9869402C-->  <AD_TABLE_ID><![CDATA[B2960E2BDCCD4F7599A2433F2681847F]]></AD_TABLE_ID>
@@ -335316,6 +335377,7 @@
 <!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <COLUMNNAME><![CDATA[typename]]></COLUMNNAME>
 <!--F1F9E8BCFBE14552B182ED3617EE5F88-->  <AD_TABLE_ID><![CDATA[B2960E2BDCCD4F7599A2433F2681847F]]></AD_TABLE_ID>
--- a/src-db/database/sourcedata/AD_DATASET.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_DATASET.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -41,7 +41,7 @@
 <!--10C9DA9D9A6345DC9080E0102492FF1B-->  <EXPORT><![CDATA[N]]></EXPORT>
 <!--10C9DA9D9A6345DC9080E0102492FF1B-->  <ACCESSLEVEL><![CDATA[3]]></ACCESSLEVEL>
 <!--10C9DA9D9A6345DC9080E0102492FF1B-->  <EXPORTALLOWED><![CDATA[Y]]></EXPORTALLOWED>
-<!--10C9DA9D9A6345DC9080E0102492FF1B-->  <CHECKSUM><![CDATA[326439515171429510307770529080436734287]]></CHECKSUM>
+<!--10C9DA9D9A6345DC9080E0102492FF1B-->  <CHECKSUM><![CDATA[277704682303762953793065576817558259530]]></CHECKSUM>
 <!--10C9DA9D9A6345DC9080E0102492FF1B--></AD_DATASET>
 
 <!--4F7351B72C1E40E8AF23B8C49C386339--><AD_DATASET>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -20603,6 +20603,7 @@
 <!--000AC0F629015A1FE050007F010018C3-->  <COLUMNNAME><![CDATA[IsUnitCost]]></COLUMNNAME>
 <!--000AC0F629015A1FE050007F010018C3-->  <NAME><![CDATA[Unit Cost]]></NAME>
 <!--000AC0F629015A1FE050007F010018C3-->  <PRINTNAME><![CDATA[Unit Cost]]></PRINTNAME>
+<!--000AC0F629015A1FE050007F010018C3-->  <DESCRIPTION><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></DESCRIPTION>
 <!--000AC0F629015A1FE050007F010018C3-->  <HELP><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></HELP>
 <!--000AC0F629015A1FE050007F010018C3-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--000AC0F629015A1FE050007F010018C3-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20616,6 +20617,7 @@
 <!--001D6CB1D0B467ABE050007F0100057B-->  <COLUMNNAME><![CDATA[M_Lc_Type_ID]]></COLUMNNAME>
 <!--001D6CB1D0B467ABE050007F0100057B-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
 <!--001D6CB1D0B467ABE050007F0100057B-->  <PRINTNAME><![CDATA[Landed Cost Type]]></PRINTNAME>
+<!--001D6CB1D0B467ABE050007F0100057B-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--001D6CB1D0B467ABE050007F0100057B-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--001D6CB1D0B467ABE050007F0100057B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--001D6CB1D0B467ABE050007F0100057B-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20629,6 +20631,7 @@
 <!--001D6CBF9C75E9C4E050007F01000559-->  <COLUMNNAME><![CDATA[M_Lc_Distribution_Alg_ID]]></COLUMNNAME>
 <!--001D6CBF9C75E9C4E050007F01000559-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
 <!--001D6CBF9C75E9C4E050007F01000559-->  <PRINTNAME><![CDATA[Landed Cost Distribution Algorithm]]></PRINTNAME>
+<!--001D6CBF9C75E9C4E050007F01000559-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--001D6CBF9C75E9C4E050007F01000559-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--001D6CBF9C75E9C4E050007F01000559-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--001D6CBF9C75E9C4E050007F01000559-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20642,6 +20645,7 @@
 <!--0056819E5113679FE050007F01000569-->  <COLUMNNAME><![CDATA[M_LC_Cost_ID]]></COLUMNNAME>
 <!--0056819E5113679FE050007F01000569-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
 <!--0056819E5113679FE050007F01000569-->  <PRINTNAME><![CDATA[Landed Cost Cost]]></PRINTNAME>
+<!--0056819E5113679FE050007F01000569-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--0056819E5113679FE050007F01000569-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--0056819E5113679FE050007F01000569-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--0056819E5113679FE050007F01000569-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20655,6 +20659,7 @@
 <!--0056819E5126679FE050007F01000569-->  <COLUMNNAME><![CDATA[M_Lc_Receipt_ID]]></COLUMNNAME>
 <!--0056819E5126679FE050007F01000569-->  <NAME><![CDATA[Landed Cost Receipt]]></NAME>
 <!--0056819E5126679FE050007F01000569-->  <PRINTNAME><![CDATA[Landed Cost Receipt Line]]></PRINTNAME>
+<!--0056819E5126679FE050007F01000569-->  <DESCRIPTION><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></DESCRIPTION>
 <!--0056819E5126679FE050007F01000569-->  <HELP><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></HELP>
 <!--0056819E5126679FE050007F01000569-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--0056819E5126679FE050007F01000569-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20668,6 +20673,7 @@
 <!--00568254CB598733E050007F01000513-->  <COLUMNNAME><![CDATA[M_Landedcost_ID]]></COLUMNNAME>
 <!--00568254CB598733E050007F01000513-->  <NAME><![CDATA[Landed Cost]]></NAME>
 <!--00568254CB598733E050007F01000513-->  <PRINTNAME><![CDATA[Landed Cost]]></PRINTNAME>
+<!--00568254CB598733E050007F01000513-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--00568254CB598733E050007F01000513-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--00568254CB598733E050007F01000513-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--00568254CB598733E050007F01000513-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20681,6 +20687,7 @@
 <!--005AE3B9D4E73F7BE050007F010019F4-->  <COLUMNNAME><![CDATA[M_Lc_Receiptline_Amt_ID]]></COLUMNNAME>
 <!--005AE3B9D4E73F7BE050007F010019F4-->  <NAME><![CDATA[Landed Cost Receipt Line Amount]]></NAME>
 <!--005AE3B9D4E73F7BE050007F010019F4-->  <PRINTNAME><![CDATA[Landed Cost Receipt Line Amount]]></PRINTNAME>
+<!--005AE3B9D4E73F7BE050007F010019F4-->  <DESCRIPTION><![CDATA[Identifies the corresponding amount of each Landed Cost Cost assigned to each Receipt Line]]></DESCRIPTION>
 <!--005AE3B9D4E73F7BE050007F010019F4-->  <HELP><![CDATA[Identifies the corresponding amount of each Landed Cost Cost assigned to each Receipt Line]]></HELP>
 <!--005AE3B9D4E73F7BE050007F010019F4-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--005AE3B9D4E73F7BE050007F010019F4-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20694,6 +20701,7 @@
 <!--00FC088B51CB944FE050007F01001D28-->  <COLUMNNAME><![CDATA[Inventory_Type]]></COLUMNNAME>
 <!--00FC088B51CB944FE050007F01001D28-->  <NAME><![CDATA[Inventory Type]]></NAME>
 <!--00FC088B51CB944FE050007F01001D28-->  <PRINTNAME><![CDATA[Inventory Type]]></PRINTNAME>
+<!--00FC088B51CB944FE050007F01001D28-->  <DESCRIPTION><![CDATA[Defines the type of inventory being performed.]]></DESCRIPTION>
 <!--00FC088B51CB944FE050007F01001D28-->  <HELP><![CDATA[Defines the type of inventory being performed.]]></HELP>
 <!--00FC088B51CB944FE050007F01001D28-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--00FC088B51CB944FE050007F01001D28-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20734,6 +20742,7 @@
 <!--01A04D782909E4AAE050007F01000F57-->  <COLUMNNAME><![CDATA[IsCostPermanent]]></COLUMNNAME>
 <!--01A04D782909E4AAE050007F01000F57-->  <NAME><![CDATA[Is Cost Permanent]]></NAME>
 <!--01A04D782909E4AAE050007F01000F57-->  <PRINTNAME><![CDATA[Is Cost Permanent]]></PRINTNAME>
+<!--01A04D782909E4AAE050007F01000F57-->  <DESCRIPTION><![CDATA[Determines whether the cost is permanently adjusted or not.  ]]></DESCRIPTION>
 <!--01A04D782909E4AAE050007F01000F57-->  <HELP><![CDATA[Determines whether the cost is permanently adjusted or not.  ]]></HELP>
 <!--01A04D782909E4AAE050007F01000F57-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--01A04D782909E4AAE050007F01000F57-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -20788,6 +20797,7 @@
 <!--01DDF5AB692DDB9EE050007F01002DD8-->  <COLUMNNAME><![CDATA[M_Lc_Matched_ID]]></COLUMNNAME>
 <!--01DDF5AB692DDB9EE050007F01002DD8-->  <NAME><![CDATA[Matched Landed Cost]]></NAME>
 <!--01DDF5AB692DDB9EE050007F01002DD8-->  <PRINTNAME><![CDATA[Matched Landed Cost]]></PRINTNAME>
+<!--01DDF5AB692DDB9EE050007F01002DD8-->  <DESCRIPTION><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></DESCRIPTION>
 <!--01DDF5AB692DDB9EE050007F01002DD8-->  <HELP><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></HELP>
 <!--01DDF5AB692DDB9EE050007F01002DD8-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--01DDF5AB692DDB9EE050007F01002DD8-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
@@ -32496,6 +32506,20 @@
 <!--DBB02A64470D4093A2534F0DFC8BF855-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--DBB02A64470D4093A2534F0DFC8BF855--></AD_ELEMENT>
 
+<!--DD118282B81E4345A62EAE0C0D6E42BF--><AD_ELEMENT>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <AD_ELEMENT_ID><![CDATA[DD118282B81E4345A62EAE0C0D6E42BF]]></AD_ELEMENT_ID>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <COLUMNNAME><![CDATA[fixbackdatedfrom]]></COLUMNNAME>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <NAME><![CDATA[Fix Backdated From]]></NAME>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <PRINTNAME><![CDATA[Fix Backdated From]]></PRINTNAME>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <DESCRIPTION><![CDATA[Starting date in the costing rule to fix backdated transactions]]></DESCRIPTION>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <HELP><![CDATA[Starting date in the costing rule to fix backdated transactions]]></HELP>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DD118282B81E4345A62EAE0C0D6E42BF-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--DD118282B81E4345A62EAE0C0D6E42BF--></AD_ELEMENT>
+
 <!--DD64C1EFFA364FE7E040007F01002A49--><AD_ELEMENT>
 <!--DD64C1EFFA364FE7E040007F01002A49-->  <AD_ELEMENT_ID><![CDATA[DD64C1EFFA364FE7E040007F01002A49]]></AD_ELEMENT_ID>
 <!--DD64C1EFFA364FE7E040007F01002A49-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -32823,6 +32847,8 @@
 <!--E5584E0B72E84511AD1B246A26F4C993-->  <COLUMNNAME><![CDATA[Backdatedtrxsfixed]]></COLUMNNAME>
 <!--E5584E0B72E84511AD1B246A26F4C993-->  <NAME><![CDATA[Backdated Transactions Fixed]]></NAME>
 <!--E5584E0B72E84511AD1B246A26F4C993-->  <PRINTNAME><![CDATA[Backdated Transactions Fixed]]></PRINTNAME>
+<!--E5584E0B72E84511AD1B246A26F4C993-->  <DESCRIPTION><![CDATA[If checked Fix Backdated Transactions has been executed for the Costing Rule.]]></DESCRIPTION>
+<!--E5584E0B72E84511AD1B246A26F4C993-->  <HELP><![CDATA[If checked Fix Backdated Transactions has been executed for the Costing Rule.]]></HELP>
 <!--E5584E0B72E84511AD1B246A26F4C993-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--E5584E0B72E84511AD1B246A26F4C993-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--E5584E0B72E84511AD1B246A26F4C993--></AD_ELEMENT>
@@ -33526,6 +33552,9 @@
 <!--FF64EAFEF0974E47A41D944E72285A57-->  <COLUMNNAME><![CDATA[Backdatedtrxsfixedprocess]]></COLUMNNAME>
 <!--FF64EAFEF0974E47A41D944E72285A57-->  <NAME><![CDATA[Fix Backdated Transactions]]></NAME>
 <!--FF64EAFEF0974E47A41D944E72285A57-->  <PRINTNAME><![CDATA[Fix Backdated Transactions]]></PRINTNAME>
+<!--FF64EAFEF0974E47A41D944E72285A57-->  <DESCRIPTION><![CDATA[Fix Backdated Transactions process]]></DESCRIPTION>
+<!--FF64EAFEF0974E47A41D944E72285A57-->  <HELP><![CDATA[Process that recalculates costs of backdated transactions until the given date. 
+Run process from Costing Rules window.]]></HELP>
 <!--FF64EAFEF0974E47A41D944E72285A57-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--FF64EAFEF0974E47A41D944E72285A57-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--FF64EAFEF0974E47A41D944E72285A57--></AD_ELEMENT>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -174841,6 +174841,7 @@
 <!--000ABA1F8DE8A5E5E050007F01001F38-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--000ABA1F8DE8A5E5E050007F01001F38-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--000ABA1F8DE8A5E5E050007F01001F38-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--000ABA1F8DE8A5E5E050007F01001F38-->  <DESCRIPTION><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></DESCRIPTION>
 <!--000ABA1F8DE8A5E5E050007F01001F38-->  <HELP><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></HELP>
 <!--000ABA1F8DE8A5E5E050007F01001F38-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--000ABA1F8DE8A5E5E050007F01001F38-->  <AD_TAB_ID><![CDATA[06DCB72BB6D24F82BCDA5FFF8EA0425C]]></AD_TAB_ID>
@@ -174928,6 +174929,7 @@
 <!--001D6CB1D0C367ABE050007F0100057B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--001D6CB1D0C367ABE050007F0100057B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--001D6CB1D0C367ABE050007F0100057B-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--001D6CB1D0C367ABE050007F0100057B-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--001D6CB1D0C367ABE050007F0100057B-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--001D6CB1D0C367ABE050007F0100057B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--001D6CB1D0C367ABE050007F0100057B-->  <AD_TAB_ID><![CDATA[5EE59CF00EF846DD953BB27BBF44E696]]></AD_TAB_ID>
@@ -175096,6 +175098,7 @@
 <!--001D6CB1D0C967ABE050007F0100057B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--001D6CB1D0C967ABE050007F0100057B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--001D6CB1D0C967ABE050007F0100057B-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--001D6CB1D0C967ABE050007F0100057B-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--001D6CB1D0C967ABE050007F0100057B-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--001D6CB1D0C967ABE050007F0100057B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--001D6CB1D0C967ABE050007F0100057B-->  <AD_TAB_ID><![CDATA[5EE59CF00EF846DD953BB27BBF44E696]]></AD_TAB_ID>
@@ -175123,6 +175126,7 @@
 <!--001E8EB8687A4C1BE050007F01000E3E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--001E8EB8687A4C1BE050007F01000E3E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--001E8EB8687A4C1BE050007F01000E3E-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--001E8EB8687A4C1BE050007F01000E3E-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--001E8EB8687A4C1BE050007F01000E3E-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--001E8EB8687A4C1BE050007F01000E3E-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--001E8EB8687A4C1BE050007F01000E3E-->  <AD_TAB_ID><![CDATA[0F39553D7C61492B8204FDD46E744FD0]]></AD_TAB_ID>
@@ -175373,6 +175377,7 @@
 <!--0056819E5147679FE050007F01000569-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0056819E5147679FE050007F01000569-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0056819E5147679FE050007F01000569-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--0056819E5147679FE050007F01000569-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--0056819E5147679FE050007F01000569-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--0056819E5147679FE050007F01000569-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--0056819E5147679FE050007F01000569-->  <AD_TAB_ID><![CDATA[F25CBC61CDD64F5E8A6FDC41C6E23C96]]></AD_TAB_ID>
@@ -175678,6 +175683,7 @@
 <!--0056819E5164679FE050007F01000569-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0056819E5164679FE050007F01000569-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0056819E5164679FE050007F01000569-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--0056819E5164679FE050007F01000569-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--0056819E5164679FE050007F01000569-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--0056819E5164679FE050007F01000569-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--0056819E5164679FE050007F01000569-->  <AD_TAB_ID><![CDATA[1C05058D61AC4B69A7E550F32F9F2873]]></AD_TAB_ID>
@@ -175789,6 +175795,7 @@
 <!--0056819E5168679FE050007F01000569-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0056819E5168679FE050007F01000569-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0056819E5168679FE050007F01000569-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--0056819E5168679FE050007F01000569-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--0056819E5168679FE050007F01000569-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--0056819E5168679FE050007F01000569-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--0056819E5168679FE050007F01000569-->  <AD_TAB_ID><![CDATA[1C05058D61AC4B69A7E550F32F9F2873]]></AD_TAB_ID>
@@ -175844,6 +175851,7 @@
 <!--0056819E516A679FE050007F01000569-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0056819E516A679FE050007F01000569-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0056819E516A679FE050007F01000569-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--0056819E516A679FE050007F01000569-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--0056819E516A679FE050007F01000569-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--0056819E516A679FE050007F01000569-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--0056819E516A679FE050007F01000569-->  <AD_TAB_ID><![CDATA[1C05058D61AC4B69A7E550F32F9F2873]]></AD_TAB_ID>
@@ -175925,6 +175933,7 @@
 <!--0056819E516D679FE050007F01000569-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0056819E516D679FE050007F01000569-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0056819E516D679FE050007F01000569-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--0056819E516D679FE050007F01000569-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--0056819E516D679FE050007F01000569-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--0056819E516D679FE050007F01000569-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--0056819E516D679FE050007F01000569-->  <AD_TAB_ID><![CDATA[1C05058D61AC4B69A7E550F32F9F2873]]></AD_TAB_ID>
@@ -176008,6 +176017,7 @@
 <!--005681FC737EF221E050007F01000565-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--005681FC737EF221E050007F01000565-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--005681FC737EF221E050007F01000565-->  <NAME><![CDATA[Landed Cost Receipt]]></NAME>
+<!--005681FC737EF221E050007F01000565-->  <DESCRIPTION><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></DESCRIPTION>
 <!--005681FC737EF221E050007F01000565-->  <HELP><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></HELP>
 <!--005681FC737EF221E050007F01000565-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--005681FC737EF221E050007F01000565-->  <AD_TAB_ID><![CDATA[C0B6D4F225994C7C83CCFC6EF3822A4A]]></AD_TAB_ID>
@@ -176119,6 +176129,7 @@
 <!--005681FC7382F221E050007F01000565-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--005681FC7382F221E050007F01000565-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--005681FC7382F221E050007F01000565-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--005681FC7382F221E050007F01000565-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--005681FC7382F221E050007F01000565-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--005681FC7382F221E050007F01000565-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--005681FC7382F221E050007F01000565-->  <AD_TAB_ID><![CDATA[C0B6D4F225994C7C83CCFC6EF3822A4A]]></AD_TAB_ID>
@@ -176174,6 +176185,7 @@
 <!--00568254CC008733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CC008733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CC008733E050007F01000513-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--00568254CC008733E050007F01000513-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--00568254CC008733E050007F01000513-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--00568254CC008733E050007F01000513-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--00568254CC008733E050007F01000513-->  <AD_TAB_ID><![CDATA[0F76B56EB2874C729ABE1665D5853E9D]]></AD_TAB_ID>
@@ -176285,6 +176297,7 @@
 <!--00568254CC048733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CC048733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CC048733E050007F01000513-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--00568254CC048733E050007F01000513-->  <DESCRIPTION><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></DESCRIPTION>
 <!--00568254CC048733E050007F01000513-->  <HELP><![CDATA[Document that relates Landed Costs like Freights or Custom Taxes to Receipts]]></HELP>
 <!--00568254CC048733E050007F01000513-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--00568254CC048733E050007F01000513-->  <AD_TAB_ID><![CDATA[0F76B56EB2874C729ABE1665D5853E9D]]></AD_TAB_ID>
@@ -176340,6 +176353,7 @@
 <!--00568254CC068733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CC068733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CC068733E050007F01000513-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--00568254CC068733E050007F01000513-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--00568254CC068733E050007F01000513-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--00568254CC068733E050007F01000513-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--00568254CC068733E050007F01000513-->  <AD_TAB_ID><![CDATA[0F76B56EB2874C729ABE1665D5853E9D]]></AD_TAB_ID>
@@ -176393,6 +176407,7 @@
 <!--00568254CC098733E050007F01000513-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00568254CC098733E050007F01000513-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00568254CC098733E050007F01000513-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--00568254CC098733E050007F01000513-->  <DESCRIPTION><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></DESCRIPTION>
 <!--00568254CC098733E050007F01000513-->  <HELP><![CDATA[Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.]]></HELP>
 <!--00568254CC098733E050007F01000513-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--00568254CC098733E050007F01000513-->  <AD_TAB_ID><![CDATA[0F76B56EB2874C729ABE1665D5853E9D]]></AD_TAB_ID>
@@ -176504,6 +176519,7 @@
 <!--007F8762B85BF72DE050007F010019DF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--007F8762B85BF72DE050007F010019DF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--007F8762B85BF72DE050007F010019DF-->  <NAME><![CDATA[Landed Cost Receipt Line Amount]]></NAME>
+<!--007F8762B85BF72DE050007F010019DF-->  <DESCRIPTION><![CDATA[Identifies the corresponding amount of each Landed Cost Cost assigned to each Receipt Line]]></DESCRIPTION>
 <!--007F8762B85BF72DE050007F010019DF-->  <HELP><![CDATA[Identifies the corresponding amount of each Landed Cost Cost assigned to each Receipt Line]]></HELP>
 <!--007F8762B85BF72DE050007F010019DF-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--007F8762B85BF72DE050007F010019DF-->  <AD_TAB_ID><![CDATA[CCFB20B3268346B99A2390B8989BCDAA]]></AD_TAB_ID>
@@ -176613,6 +176629,7 @@
 <!--007F8762B85FF72DE050007F010019DF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--007F8762B85FF72DE050007F010019DF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--007F8762B85FF72DE050007F010019DF-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--007F8762B85FF72DE050007F010019DF-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--007F8762B85FF72DE050007F010019DF-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--007F8762B85FF72DE050007F010019DF-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--007F8762B85FF72DE050007F010019DF-->  <AD_TAB_ID><![CDATA[CCFB20B3268346B99A2390B8989BCDAA]]></AD_TAB_ID>
@@ -176640,6 +176657,7 @@
 <!--007F8762B860F72DE050007F010019DF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--007F8762B860F72DE050007F010019DF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--007F8762B860F72DE050007F010019DF-->  <NAME><![CDATA[Landed Cost Receipt]]></NAME>
+<!--007F8762B860F72DE050007F010019DF-->  <DESCRIPTION><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></DESCRIPTION>
 <!--007F8762B860F72DE050007F010019DF-->  <HELP><![CDATA[Identifies each Receipt assigned to the Landed Cost Document with the corresponding amount.]]></HELP>
 <!--007F8762B860F72DE050007F010019DF-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--007F8762B860F72DE050007F010019DF-->  <AD_TAB_ID><![CDATA[CCFB20B3268346B99A2390B8989BCDAA]]></AD_TAB_ID>
@@ -176863,6 +176881,7 @@
 <!--00FC088B51D1944FE050007F01001D28-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--00FC088B51D1944FE050007F01001D28-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--00FC088B51D1944FE050007F01001D28-->  <NAME><![CDATA[Inventory Type]]></NAME>
+<!--00FC088B51D1944FE050007F01001D28-->  <DESCRIPTION><![CDATA[Defines the type of inventory being performed.]]></DESCRIPTION>
 <!--00FC088B51D1944FE050007F01001D28-->  <HELP><![CDATA[Defines the type of inventory being performed.]]></HELP>
 <!--00FC088B51D1944FE050007F01001D28-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--00FC088B51D1944FE050007F01001D28-->  <AD_TAB_ID><![CDATA[255]]></AD_TAB_ID>
@@ -177408,6 +177427,7 @@
 <!--01DDBBC269396A52E050007F010028A2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--01DDBBC269396A52E050007F010028A2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--01DDBBC269396A52E050007F010028A2-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--01DDBBC269396A52E050007F010028A2-->  <DESCRIPTION><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></DESCRIPTION>
 <!--01DDBBC269396A52E050007F010028A2-->  <HELP><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></HELP>
 <!--01DDBBC269396A52E050007F010028A2-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--01DDBBC269396A52E050007F010028A2-->  <AD_TAB_ID><![CDATA[FED91FEB2A664C138C225C63E65598FC]]></AD_TAB_ID>
@@ -177518,6 +177538,7 @@
 <!--01DDF5D9D6150071E050007F01002DDC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--01DDF5D9D6150071E050007F01002DDC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--01DDF5D9D6150071E050007F01002DDC-->  <NAME><![CDATA[Matched Landed Cost]]></NAME>
+<!--01DDF5D9D6150071E050007F01002DDC-->  <DESCRIPTION><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></DESCRIPTION>
 <!--01DDF5D9D6150071E050007F01002DDC-->  <HELP><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></HELP>
 <!--01DDF5D9D6150071E050007F01002DDC-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--01DDF5D9D6150071E050007F01002DDC-->  <AD_TAB_ID><![CDATA[89A2764B004B4D95B09C9F4C1CB56BE5]]></AD_TAB_ID>
@@ -177629,6 +177650,7 @@
 <!--01DDF5D9D6190071E050007F01002DDC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--01DDF5D9D6190071E050007F01002DDC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--01DDF5D9D6190071E050007F01002DDC-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--01DDF5D9D6190071E050007F01002DDC-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--01DDF5D9D6190071E050007F01002DDC-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--01DDF5D9D6190071E050007F01002DDC-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--01DDF5D9D6190071E050007F01002DDC-->  <AD_TAB_ID><![CDATA[89A2764B004B4D95B09C9F4C1CB56BE5]]></AD_TAB_ID>
@@ -177822,6 +177844,7 @@
 <!--0203C2BF22342AE9E050007F01002C80-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0203C2BF22342AE9E050007F01002C80-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0203C2BF22342AE9E050007F01002C80-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--0203C2BF22342AE9E050007F01002C80-->  <DESCRIPTION><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></DESCRIPTION>
 <!--0203C2BF22342AE9E050007F01002C80-->  <HELP><![CDATA[Defines a type of Landed Cost Amount that can be assigned to a Receipt]]></HELP>
 <!--0203C2BF22342AE9E050007F01002C80-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--0203C2BF22342AE9E050007F01002C80-->  <AD_TAB_ID><![CDATA[217EB72E1AA44DD5955AF03386A48660]]></AD_TAB_ID>
@@ -178165,6 +178188,7 @@
 <!--021714D8BFEB5F25E050007F0100173E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--021714D8BFEB5F25E050007F0100173E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--021714D8BFEB5F25E050007F0100173E-->  <NAME><![CDATA[Matched Landed Cost]]></NAME>
+<!--021714D8BFEB5F25E050007F0100173E-->  <DESCRIPTION><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></DESCRIPTION>
 <!--021714D8BFEB5F25E050007F0100173E-->  <HELP><![CDATA[Determines an amount of Landed Cost that it is matched with a final document.]]></HELP>
 <!--021714D8BFEB5F25E050007F0100173E-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--021714D8BFEB5F25E050007F0100173E-->  <AD_TAB_ID><![CDATA[217EB72E1AA44DD5955AF03386A48660]]></AD_TAB_ID>
@@ -178192,6 +178216,7 @@
 <!--021714D8BFEC5F25E050007F0100173E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--021714D8BFEC5F25E050007F0100173E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--021714D8BFEC5F25E050007F0100173E-->  <NAME><![CDATA[Landed Cost Cost]]></NAME>
+<!--021714D8BFEC5F25E050007F0100173E-->  <DESCRIPTION><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></DESCRIPTION>
 <!--021714D8BFEC5F25E050007F0100173E-->  <HELP><![CDATA[Each Landed Cost amount to be included in the Landed Cost document.]]></HELP>
 <!--021714D8BFEC5F25E050007F0100173E-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--021714D8BFEC5F25E050007F0100173E-->  <AD_TAB_ID><![CDATA[217EB72E1AA44DD5955AF03386A48660]]></AD_TAB_ID>
@@ -197294,6 +197319,34 @@
 <!--395D996B2EF6451BBBD304D4233BFC36-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--395D996B2EF6451BBBD304D4233BFC36--></AD_FIELD>
 
+<!--39932E6D9F234DE7BE28C602E43BD91D--><AD_FIELD>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <AD_FIELD_ID><![CDATA[39932E6D9F234DE7BE28C602E43BD91D]]></AD_FIELD_ID>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <NAME><![CDATA[Fix Backdated From]]></NAME>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <DESCRIPTION><![CDATA[Starting date in the costing rule to fix backdated transactions]]></DESCRIPTION>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <HELP><![CDATA[Starting date in the costing rule to fix backdated transactions]]></HELP>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <AD_TAB_ID><![CDATA[6868B706DA8340158DE353A6C252A564]]></AD_TAB_ID>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <AD_COLUMN_ID><![CDATA[842AB447B9D1488EA42F3DACA71934F3]]></AD_COLUMN_ID>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <DISPLAYLENGTH><![CDATA[19]]></DISPLAYLENGTH>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--39932E6D9F234DE7BE28C602E43BD91D-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--39932E6D9F234DE7BE28C602E43BD91D--></AD_FIELD>
+
 <!--399AA34247854B78BD027C52C3811127--><AD_FIELD>
 <!--399AA34247854B78BD027C52C3811127-->  <AD_FIELD_ID><![CDATA[399AA34247854B78BD027C52C3811127]]></AD_FIELD_ID>
 <!--399AA34247854B78BD027C52C3811127-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -233109,6 +233162,9 @@
 <!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <NAME><![CDATA[Fix Backdated Transactions]]></NAME>
+<!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <DESCRIPTION><![CDATA[Fix Backdated Transactions process]]></DESCRIPTION>
+<!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <HELP><![CDATA[Process that recalculates costs of backdated transactions until the given date. 
+Run process from Costing Rules window.]]></HELP>
 <!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <AD_TAB_ID><![CDATA[6868B706DA8340158DE353A6C252A564]]></AD_TAB_ID>
 <!--7EA7829A9B8442B28AA7D433ABE8B1B9-->  <AD_COLUMN_ID><![CDATA[0DCB49039F4541E8907BAE1588D7385F]]></AD_COLUMN_ID>
@@ -239468,6 +239524,7 @@
 <!--864A85BF3E634C6BB0388DB96E857BAC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--864A85BF3E634C6BB0388DB96E857BAC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--864A85BF3E634C6BB0388DB96E857BAC-->  <NAME><![CDATA[Is Cost Permanent]]></NAME>
+<!--864A85BF3E634C6BB0388DB96E857BAC-->  <DESCRIPTION><![CDATA[Determines whether the cost is permanently adjusted or not.  ]]></DESCRIPTION>
 <!--864A85BF3E634C6BB0388DB96E857BAC-->  <HELP><![CDATA[Determines whether the cost is permanently adjusted or not.  ]]></HELP>
 <!--864A85BF3E634C6BB0388DB96E857BAC-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--864A85BF3E634C6BB0388DB96E857BAC-->  <AD_TAB_ID><![CDATA[289]]></AD_TAB_ID>
@@ -294432,6 +294489,8 @@
 <!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <NAME><![CDATA[Backdated Transactions Fixed]]></NAME>
+<!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <DESCRIPTION><![CDATA[If checked Fix Backdated Transactions has been executed for the Costing Rule.]]></DESCRIPTION>
+<!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <HELP><![CDATA[If checked Fix Backdated Transactions has been executed for the Costing Rule.]]></HELP>
 <!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <AD_TAB_ID><![CDATA[6868B706DA8340158DE353A6C252A564]]></AD_TAB_ID>
 <!--FAA9ED0D2AEA444F83D09DF2FE479785-->  <AD_COLUMN_ID><![CDATA[480CC1DA0E0F432CACE9360D07842B65]]></AD_COLUMN_ID>
--- a/src-db/database/sourcedata/AD_MENU.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_MENU.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -4630,6 +4630,7 @@
 <!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <DESCRIPTION><![CDATA[Master window where available algorithms are defined.]]></DESCRIPTION>
 <!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
 <!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <ACTION><![CDATA[W]]></ACTION>
 <!--1A99A1553A0F4EF1AF5EB20F69238C2E-->  <AD_WINDOW_ID><![CDATA[12B062B1031A40EC8067D353B31967EB]]></AD_WINDOW_ID>
@@ -4754,7 +4755,7 @@
 <!--369F385A56D4448191BCCDB6ABD900A1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--369F385A56D4448191BCCDB6ABD900A1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--369F385A56D4448191BCCDB6ABD900A1-->  <NAME><![CDATA[Inventory Amount Update]]></NAME>
-<!--369F385A56D4448191BCCDB6ABD900A1-->  <DESCRIPTION><![CDATA[Inventory Amount Update]]></DESCRIPTION>
+<!--369F385A56D4448191BCCDB6ABD900A1-->  <DESCRIPTION><![CDATA[Inventory Amount Update window genereate closing and opening inventories, generate a cost adjustment and set all transactions prior to the reference date as permanently adjusted]]></DESCRIPTION>
 <!--369F385A56D4448191BCCDB6ABD900A1-->  <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
 <!--369F385A56D4448191BCCDB6ABD900A1-->  <ACTION><![CDATA[W]]></ACTION>
 <!--369F385A56D4448191BCCDB6ABD900A1-->  <AD_WINDOW_ID><![CDATA[E7754848A0314B018B37C1428ECB4D21]]></AD_WINDOW_ID>
@@ -4917,6 +4918,7 @@
 <!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <DESCRIPTION><![CDATA[Defines the different types or concepts of the Landed Costs that are assigned to the Receipts.]]></DESCRIPTION>
 <!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
 <!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <ACTION><![CDATA[W]]></ACTION>
 <!--70EA2A01CB2444FC9F2139FCEB9BA7D7-->  <AD_WINDOW_ID><![CDATA[944C49CE80BE4F71B9917BD680A052A8]]></AD_WINDOW_ID>
@@ -5192,6 +5194,7 @@
 <!--D0EB635DAB004B16B636122FEA516898-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--D0EB635DAB004B16B636122FEA516898-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--D0EB635DAB004B16B636122FEA516898-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--D0EB635DAB004B16B636122FEA516898-->  <DESCRIPTION><![CDATA[Landed cost window allows to create, edit and process a landed cost]]></DESCRIPTION>
 <!--D0EB635DAB004B16B636122FEA516898-->  <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
 <!--D0EB635DAB004B16B636122FEA516898-->  <ACTION><![CDATA[W]]></ACTION>
 <!--D0EB635DAB004B16B636122FEA516898-->  <AD_WINDOW_ID><![CDATA[D1B11CBC0FEF4CA0B44D3BECEBA219BC]]></AD_WINDOW_ID>
@@ -5216,6 +5219,7 @@
 <!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <NAME><![CDATA[Cost Adjustment]]></NAME>
+<!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <DESCRIPTION><![CDATA[Window where the Cost Adjustment generated by any of the adjustment processes can be reviewed.]]></DESCRIPTION>
 <!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
 <!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <ACTION><![CDATA[W]]></ACTION>
 <!--D3B15512AB244A9D88AAF4E63C42CEC6-->  <AD_WINDOW_ID><![CDATA[1688A758BDA04C88A5C1D370EB979C53]]></AD_WINDOW_ID>
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -16595,6 +16595,18 @@
 <!--15CDE4BE875A46608CEB541331D2CFE7-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--15CDE4BE875A46608CEB541331D2CFE7--></AD_MESSAGE>
 
+<!--1629773A7EFE4F988B7CDDE2A62F9906--><AD_MESSAGE>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <AD_MESSAGE_ID><![CDATA[1629773A7EFE4F988B7CDDE2A62F9906]]></AD_MESSAGE_ID>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <VALUE><![CDATA[COST_LINE]]></VALUE>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <MSGTEXT><![CDATA[tab Cost - line ]]></MSGTEXT>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1629773A7EFE4F988B7CDDE2A62F9906-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--1629773A7EFE4F988B7CDDE2A62F9906--></AD_MESSAGE>
+
 <!--162CE9D031904006B69A7C40B5C1E55E--><AD_MESSAGE>
 <!--162CE9D031904006B69A7C40B5C1E55E-->  <AD_MESSAGE_ID><![CDATA[162CE9D031904006B69A7C40B5C1E55E]]></AD_MESSAGE_ID>
 <!--162CE9D031904006B69A7C40B5C1E55E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -16788,6 +16800,18 @@
 <!--1860E10DED5C486D8CF33B7C8104448E-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--1860E10DED5C486D8CF33B7C8104448E--></AD_MESSAGE>
 
+<!--18F0B23619F44731884096AD6388624E--><AD_MESSAGE>
+<!--18F0B23619F44731884096AD6388624E-->  <AD_MESSAGE_ID><![CDATA[18F0B23619F44731884096AD6388624E]]></AD_MESSAGE_ID>
+<!--18F0B23619F44731884096AD6388624E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--18F0B23619F44731884096AD6388624E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--18F0B23619F44731884096AD6388624E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--18F0B23619F44731884096AD6388624E-->  <VALUE><![CDATA[LCNotAccounting]]></VALUE>
+<!--18F0B23619F44731884096AD6388624E-->  <MSGTEXT><![CDATA[DocCostAdjustment - Error: landed cost should not generate accounting]]></MSGTEXT>
+<!--18F0B23619F44731884096AD6388624E-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--18F0B23619F44731884096AD6388624E-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--18F0B23619F44731884096AD6388624E-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--18F0B23619F44731884096AD6388624E--></AD_MESSAGE>
+
 <!--19600C7CBF5942CFAD8F3B72EDAFC13F--><AD_MESSAGE>
 <!--19600C7CBF5942CFAD8F3B72EDAFC13F-->  <AD_MESSAGE_ID><![CDATA[19600C7CBF5942CFAD8F3B72EDAFC13F]]></AD_MESSAGE_ID>
 <!--19600C7CBF5942CFAD8F3B72EDAFC13F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -3527,18 +3527,6 @@
 <!--488B251D70EA4B8784E748836042CD66-->  <NAME><![CDATA[CheckCleanCache]]></NAME>
 <!--488B251D70EA4B8784E748836042CD66--></AD_MODEL_OBJECT>
 
-<!--49238BDADB8A4BDFA5443CFFFDD4511B--><AD_MODEL_OBJECT>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <AD_MODEL_OBJECT_ID><![CDATA[49238BDADB8A4BDFA5443CFFFDD4511B]]></AD_MODEL_OBJECT_ID>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <ACTION><![CDATA[P]]></ACTION>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <CLASSNAME><![CDATA[org.openbravo.costing.FixBackdatedTransactionsProcess]]></CLASSNAME>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
-<!--49238BDADB8A4BDFA5443CFFFDD4511B--></AD_MODEL_OBJECT>
-
 <!--4DA7FE3E877447F0AD9342E627ADB8D5--><AD_MODEL_OBJECT>
 <!--4DA7FE3E877447F0AD9342E627ADB8D5-->  <AD_MODEL_OBJECT_ID><![CDATA[4DA7FE3E877447F0AD9342E627ADB8D5]]></AD_MODEL_OBJECT_ID>
 <!--4DA7FE3E877447F0AD9342E627ADB8D5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_PROCESS.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_PROCESS.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -6902,27 +6902,6 @@
 <!--E5BE98DCF4514A18B571F21183B397DD-->  <IS_EXPLICIT_ACCESS><![CDATA[N]]></IS_EXPLICIT_ACCESS>
 <!--E5BE98DCF4514A18B571F21183B397DD--></AD_PROCESS>
 
-<!--EA3890E849EB443687900D71AFF3784A--><AD_PROCESS>
-<!--EA3890E849EB443687900D71AFF3784A-->  <AD_PROCESS_ID><![CDATA[EA3890E849EB443687900D71AFF3784A]]></AD_PROCESS_ID>
-<!--EA3890E849EB443687900D71AFF3784A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--EA3890E849EB443687900D71AFF3784A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--EA3890E849EB443687900D71AFF3784A-->  <VALUE><![CDATA[FixBackdatedTrx]]></VALUE>
-<!--EA3890E849EB443687900D71AFF3784A-->  <NAME><![CDATA[Fix Backdated Transactions]]></NAME>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ACCESSLEVEL><![CDATA[3]]></ACCESSLEVEL>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISREPORT><![CDATA[N]]></ISREPORT>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISJASPER><![CDATA[N]]></ISJASPER>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISEXTERNALSERVICE><![CDATA[N]]></ISEXTERNALSERVICE>
-<!--EA3890E849EB443687900D71AFF3784A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--EA3890E849EB443687900D71AFF3784A-->  <UIPATTERN><![CDATA[S]]></UIPATTERN>
-<!--EA3890E849EB443687900D71AFF3784A-->  <ISADVANCEDFEATURE><![CDATA[N]]></ISADVANCEDFEATURE>
-<!--EA3890E849EB443687900D71AFF3784A-->  <PREVENTCONCURRENT><![CDATA[N]]></PREVENTCONCURRENT>
-<!--EA3890E849EB443687900D71AFF3784A-->  <IS_EXPLICIT_ACCESS><![CDATA[N]]></IS_EXPLICIT_ACCESS>
-<!--EA3890E849EB443687900D71AFF3784A--></AD_PROCESS>
-
 <!--EFDBF909811544DAAE4E876AA781E5DC--><AD_PROCESS>
 <!--EFDBF909811544DAAE4E876AA781E5DC-->  <AD_PROCESS_ID><![CDATA[EFDBF909811544DAAE4E876AA781E5DC]]></AD_PROCESS_ID>
 <!--EFDBF909811544DAAE4E876AA781E5DC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TAB.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_TAB.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -13255,6 +13255,7 @@
 <!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <NAME><![CDATA[Line]]></NAME>
+<!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <DESCRIPTION><![CDATA[Each transaction requiring adjustment.]]></DESCRIPTION>
 <!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <HELP><![CDATA[Each transaction requiring adjustment.]]></HELP>
 <!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <AD_TABLE_ID><![CDATA[34E79323CEC847C2A9ED2C8430AC73D1]]></AD_TABLE_ID>
 <!--06DCB72BB6D24F82BCDA5FFF8EA0425C-->  <AD_WINDOW_ID><![CDATA[1688A758BDA04C88A5C1D370EB979C53]]></AD_WINDOW_ID>
@@ -13317,6 +13318,8 @@
 <!--0F39553D7C61492B8204FDD46E744FD0-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--0F39553D7C61492B8204FDD46E744FD0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--0F39553D7C61492B8204FDD46E744FD0-->  <NAME><![CDATA[Header]]></NAME>
+<!--0F39553D7C61492B8204FDD46E744FD0-->  <DESCRIPTION><![CDATA[Master window where available algorithms are defined.]]></DESCRIPTION>
+<!--0F39553D7C61492B8204FDD46E744FD0-->  <HELP><![CDATA[Master window where available algorithms are defined.]]></HELP>
 <!--0F39553D7C61492B8204FDD46E744FD0-->  <AD_TABLE_ID><![CDATA[61F6EE14CE4A484D857536AF192E6BED]]></AD_TABLE_ID>
 <!--0F39553D7C61492B8204FDD46E744FD0-->  <AD_WINDOW_ID><![CDATA[12B062B1031A40EC8067D353B31967EB]]></AD_WINDOW_ID>
 <!--0F39553D7C61492B8204FDD46E744FD0-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -14604,6 +14607,7 @@
 <!--45A6D51BFBB74C079AC559A4240A296D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--45A6D51BFBB74C079AC559A4240A296D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--45A6D51BFBB74C079AC559A4240A296D-->  <NAME><![CDATA[Header]]></NAME>
+<!--45A6D51BFBB74C079AC559A4240A296D-->  <DESCRIPTION><![CDATA[Each Cost Adjustment generated. ]]></DESCRIPTION>
 <!--45A6D51BFBB74C079AC559A4240A296D-->  <HELP><![CDATA[Each Cost Adjustment generated. ]]></HELP>
 <!--45A6D51BFBB74C079AC559A4240A296D-->  <AD_TABLE_ID><![CDATA[D022B92163074E5E82449C8E0B5AFDF6]]></AD_TABLE_ID>
 <!--45A6D51BFBB74C079AC559A4240A296D-->  <AD_WINDOW_ID><![CDATA[1688A758BDA04C88A5C1D370EB979C53]]></AD_WINDOW_ID>
@@ -15206,6 +15210,8 @@
 <!--5EE59CF00EF846DD953BB27BBF44E696-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--5EE59CF00EF846DD953BB27BBF44E696-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--5EE59CF00EF846DD953BB27BBF44E696-->  <NAME><![CDATA[Header]]></NAME>
+<!--5EE59CF00EF846DD953BB27BBF44E696-->  <DESCRIPTION><![CDATA[Defines the different types or concepts of the Landed Costs that are assigned to the Receipts.]]></DESCRIPTION>
+<!--5EE59CF00EF846DD953BB27BBF44E696-->  <HELP><![CDATA[Defines the different types or concepts of the Landed Costs that are assigned to the Receipts.]]></HELP>
 <!--5EE59CF00EF846DD953BB27BBF44E696-->  <AD_TABLE_ID><![CDATA[BAFE429F04854EBEBD63A450DD714C89]]></AD_TABLE_ID>
 <!--5EE59CF00EF846DD953BB27BBF44E696-->  <AD_WINDOW_ID><![CDATA[944C49CE80BE4F71B9917BD680A052A8]]></AD_WINDOW_ID>
 <!--5EE59CF00EF846DD953BB27BBF44E696-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -18666,6 +18672,7 @@
 <!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <NAME><![CDATA[Accounting]]></NAME>
+<!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <DESCRIPTION><![CDATA[Accounting information related to the cost adjustment]]></DESCRIPTION>
 <!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <HELP><![CDATA[Accounting information related to the cost adjustment]]></HELP>
 <!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <AD_TABLE_ID><![CDATA[270]]></AD_TABLE_ID>
 <!--EE01CF71A3D741E8B2B7204ADCBBF7A8-->  <AD_WINDOW_ID><![CDATA[1688A758BDA04C88A5C1D370EB979C53]]></AD_WINDOW_ID>
@@ -18758,6 +18765,8 @@
 <!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <NAME><![CDATA[Header]]></NAME>
+<!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <DESCRIPTION><![CDATA[Landed cost window allows to create, edit and process a landed cost]]></DESCRIPTION>
+<!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <HELP><![CDATA[Landed cost window allows to create, edit and process a landed cost]]></HELP>
 <!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <AD_TABLE_ID><![CDATA[082F967CDF7245EB9A150941F326C45C]]></AD_TABLE_ID>
 <!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <AD_WINDOW_ID><![CDATA[D1B11CBC0FEF4CA0B44D3BECEBA219BC]]></AD_WINDOW_ID>
 <!--F25CBC61CDD64F5E8A6FDC41C6E23C96-->  <SEQNO><![CDATA[10]]></SEQNO>
--- a/src-db/database/sourcedata/AD_WINDOW.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/AD_WINDOW.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -2672,6 +2672,7 @@
 <!--12B062B1031A40EC8067D353B31967EB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--12B062B1031A40EC8067D353B31967EB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--12B062B1031A40EC8067D353B31967EB-->  <NAME><![CDATA[Landed Cost Distribution Algorithm]]></NAME>
+<!--12B062B1031A40EC8067D353B31967EB-->  <DESCRIPTION><![CDATA[Master window where available algorithms are defined.]]></DESCRIPTION>
 <!--12B062B1031A40EC8067D353B31967EB-->  <HELP><![CDATA[Master window where available algorithms are defined.]]></HELP>
 <!--12B062B1031A40EC8067D353B31967EB-->  <WINDOWTYPE><![CDATA[M]]></WINDOWTYPE>
 <!--12B062B1031A40EC8067D353B31967EB-->  <ISSOTRX><![CDATA[Y]]></ISSOTRX>
@@ -2688,6 +2689,7 @@
 <!--1688A758BDA04C88A5C1D370EB979C53-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--1688A758BDA04C88A5C1D370EB979C53-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--1688A758BDA04C88A5C1D370EB979C53-->  <NAME><![CDATA[Cost Adjustment]]></NAME>
+<!--1688A758BDA04C88A5C1D370EB979C53-->  <DESCRIPTION><![CDATA[Window where the Cost Adjustment generated by any of the adjustment processes can be reviewed.]]></DESCRIPTION>
 <!--1688A758BDA04C88A5C1D370EB979C53-->  <HELP><![CDATA[Window where the Cost Adjustment generated by any of the adjustment processes can be reviewed.]]></HELP>
 <!--1688A758BDA04C88A5C1D370EB979C53-->  <WINDOWTYPE><![CDATA[T]]></WINDOWTYPE>
 <!--1688A758BDA04C88A5C1D370EB979C53-->  <ISSOTRX><![CDATA[Y]]></ISSOTRX>
@@ -3073,6 +3075,7 @@
 <!--944C49CE80BE4F71B9917BD680A052A8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--944C49CE80BE4F71B9917BD680A052A8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--944C49CE80BE4F71B9917BD680A052A8-->  <NAME><![CDATA[Landed Cost Type]]></NAME>
+<!--944C49CE80BE4F71B9917BD680A052A8-->  <DESCRIPTION><![CDATA[Defines the different types or concepts of the Landed Costs that are assigned to the Receipts.]]></DESCRIPTION>
 <!--944C49CE80BE4F71B9917BD680A052A8-->  <HELP><![CDATA[Defines the different types or concepts of the Landed Costs that are assigned to the Receipts.]]></HELP>
 <!--944C49CE80BE4F71B9917BD680A052A8-->  <WINDOWTYPE><![CDATA[M]]></WINDOWTYPE>
 <!--944C49CE80BE4F71B9917BD680A052A8-->  <ISSOTRX><![CDATA[Y]]></ISSOTRX>
@@ -3297,6 +3300,8 @@
 <!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <NAME><![CDATA[Landed Cost]]></NAME>
+<!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <DESCRIPTION><![CDATA[Landed cost window allows to create, edit and process a landed cost]]></DESCRIPTION>
+<!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <HELP><![CDATA[Landed cost window allows to create, edit and process a landed cost]]></HELP>
 <!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <WINDOWTYPE><![CDATA[M]]></WINDOWTYPE>
 <!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <ISSOTRX><![CDATA[N]]></ISSOTRX>
 <!--D1B11CBC0FEF4CA0B44D3BECEBA219BC-->  <PROCESSING><![CDATA[N]]></PROCESSING>
@@ -3412,8 +3417,12 @@
 <!--E7754848A0314B018B37C1428ECB4D21-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--E7754848A0314B018B37C1428ECB4D21-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--E7754848A0314B018B37C1428ECB4D21-->  <NAME><![CDATA[Inventory Amount Update]]></NAME>
-<!--E7754848A0314B018B37C1428ECB4D21-->  <DESCRIPTION><![CDATA[Inventory Amount Update]]></DESCRIPTION>
-<!--E7754848A0314B018B37C1428ECB4D21-->  <HELP><![CDATA[Inventory Amount Update]]></HELP>
+<!--E7754848A0314B018B37C1428ECB4D21-->  <DESCRIPTION><![CDATA[Inventory Amount Update window genereate closing and opening inventories, generate a cost adjustment and set all transactions prior to the reference date as permanently adjusted]]></DESCRIPTION>
+<!--E7754848A0314B018B37C1428ECB4D21-->  <HELP><![CDATA[Generates 2 closing/opening inventories.
+Closing inventory cost is the inventory amount on that moment. The costing background should be disabled during this process to avoid being it calculated as usual.
+Opening inventory cost is the desired amount (average).
+Generates a Cost Adjustment Document so the cost is adjusted to the reference date in case this is a different date than the current one.
+Sets all transactions prior to the reference date as permanently adjusted]]></HELP>
 <!--E7754848A0314B018B37C1428ECB4D21-->  <WINDOWTYPE><![CDATA[M]]></WINDOWTYPE>
 <!--E7754848A0314B018B37C1428ECB4D21-->  <ISSOTRX><![CDATA[Y]]></ISSOTRX>
 <!--E7754848A0314B018B37C1428ECB4D21-->  <PROCESSING><![CDATA[N]]></PROCESSING>
--- a/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -103,6 +103,7 @@
 <!--439E00644F0647B397201C0C099D60E4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--439E00644F0647B397201C0C099D60E4-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--439E00644F0647B397201C0C099D60E4-->  <NAME><![CDATA[Unit Cost]]></NAME>
+<!--439E00644F0647B397201C0C099D60E4-->  <DESCRIPTION><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></DESCRIPTION>
 <!--439E00644F0647B397201C0C099D60E4-->  <HELP><![CDATA[When checked the cost amount is considered part of the unit cost of the transaction or a cost added like freight costs or insurance costs.]]></HELP>
 <!--439E00644F0647B397201C0C099D60E4-->  <SEQNO><![CDATA[40]]></SEQNO>
 <!--439E00644F0647B397201C0C099D60E4-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
@@ -389,6 +390,7 @@
 <!--78D383D70F52476C9E1CF557D2F76E24-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--78D383D70F52476C9E1CF557D2F76E24-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--78D383D70F52476C9E1CF557D2F76E24-->  <NAME><![CDATA[Incremental]]></NAME>
+<!--78D383D70F52476C9E1CF557D2F76E24-->  <DESCRIPTION><![CDATA[When this flag is checked the amount entered in the cost field is added to the current cost of the transaction.]]></DESCRIPTION>
 <!--78D383D70F52476C9E1CF557D2F76E24-->  <HELP><![CDATA[When this flag is checked the amount entered in the cost field is added to the current cost of the transaction.]]></HELP>
 <!--78D383D70F52476C9E1CF557D2F76E24-->  <SEQNO><![CDATA[30]]></SEQNO>
 <!--78D383D70F52476C9E1CF557D2F76E24-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
@@ -430,6 +432,30 @@
 <!--7ADC57778917472EA9B7A433197B47BF-->  <DISPLAYTITLE><![CDATA[N]]></DISPLAYTITLE>
 <!--7ADC57778917472EA9B7A433197B47BF--></OBUIAPP_PARAMETER>
 
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D--><OBUIAPP_PARAMETER>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <OBUIAPP_PARAMETER_ID><![CDATA[7C60256F8A0647CDA8FD3ED65D11BE8D]]></OBUIAPP_PARAMETER_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <NAME><![CDATA[Fix Backdated From]]></NAME>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <DESCRIPTION><![CDATA[Starting date in the costing rule to fix backdated transactions]]></DESCRIPTION>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <HELP><![CDATA[Starting date in the costing rule to fix backdated transactions]]></HELP>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <AD_REFERENCE_ID><![CDATA[15]]></AD_REFERENCE_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <COLUMNNAME><![CDATA[fixbackdatedfrom]]></COLUMNNAME>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <AD_ELEMENT_ID><![CDATA[DD118282B81E4345A62EAE0C0D6E42BF]]></AD_ELEMENT_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <OBUIAPP_PROCESS_ID><![CDATA[5D335DD61A264A6FAD881E159ADA9F5A]]></OBUIAPP_PROCESS_ID>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <DISPLAYEDROWS><![CDATA[5]]></DISPLAYEDROWS>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D-->  <DISPLAYTITLE><![CDATA[Y]]></DISPLAYTITLE>
+<!--7C60256F8A0647CDA8FD3ED65D11BE8D--></OBUIAPP_PARAMETER>
+
 <!--945CA3C7FAA1484EBABA9229DCA1C217--><OBUIAPP_PARAMETER>
 <!--945CA3C7FAA1484EBABA9229DCA1C217-->  <OBUIAPP_PARAMETER_ID><![CDATA[945CA3C7FAA1484EBABA9229DCA1C217]]></OBUIAPP_PARAMETER_ID>
 <!--945CA3C7FAA1484EBABA9229DCA1C217-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Thu Oct 16 17:06:50 2014 +0200
@@ -90,6 +90,28 @@
 <!--4AD70293357245AB96E59C2CDB43A35D-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
 <!--4AD70293357245AB96E59C2CDB43A35D--></OBUIAPP_PROCESS>
 
+<!--5D335DD61A264A6FAD881E159ADA9F5A--><OBUIAPP_PROCESS>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <OBUIAPP_PROCESS_ID><![CDATA[5D335DD61A264A6FAD881E159ADA9F5A]]></OBUIAPP_PROCESS_ID>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <VALUE><![CDATA[FixBackdatedTrx]]></VALUE>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <NAME><![CDATA[Fix Backdated Transactions]]></NAME>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <DESCRIPTION><![CDATA[Fix Backdated Transactions process]]></DESCRIPTION>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <HELP><![CDATA[Process that recalculates costs of backdated transactions until the given date. 
+Run process from Costing Rules window.
+]]></HELP>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <ACCESSLEVEL><![CDATA[7]]></ACCESSLEVEL>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <CLASSNAME><![CDATA[org.openbravo.costing.FixBackdatedTransactionsProcess]]></CLASSNAME>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <UIPATTERN><![CDATA[OBUIAPP_PickAndExecute]]></UIPATTERN>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <ISMULTIRECORD><![CDATA[N]]></ISMULTIRECORD>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <IS_EXPLICIT_ACCESS><![CDATA[N]]></IS_EXPLICIT_ACCESS>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <ISGRIDLEGACY><![CDATA[N]]></ISGRIDLEGACY>
+<!--5D335DD61A264A6FAD881E159ADA9F5A-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
+<!--5D335DD61A264A6FAD881E159ADA9F5A--></OBUIAPP_PROCESS>
+
 <!--5E9F9D7EECC24E4FBB2C60840FF613BE--><OBUIAPP_PROCESS>
 <!--5E9F9D7EECC24E4FBB2C60840FF613BE-->  <OBUIAPP_PROCESS_ID><![CDATA[5E9F9D7EECC24E4FBB2C60840FF613BE]]></OBUIAPP_PROCESS_ID>
 <!--5E9F9D7EECC24E4FBB2C60840FF613BE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -223,6 +245,12 @@
 <!--726D2F8961314B4C9E9D3E4121C75CD0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--726D2F8961314B4C9E9D3E4121C75CD0-->  <VALUE><![CDATA[InventoryAmountUpdate]]></VALUE>
 <!--726D2F8961314B4C9E9D3E4121C75CD0-->  <NAME><![CDATA[Inventory Amount Update]]></NAME>
+<!--726D2F8961314B4C9E9D3E4121C75CD0-->  <DESCRIPTION><![CDATA[Generates 2 closing/opening inventories and generates a cost adjustment document]]></DESCRIPTION>
+<!--726D2F8961314B4C9E9D3E4121C75CD0-->  <HELP><![CDATA[Generates 2 closing/opening inventories.
+Closing inventory cost is the inventory amount on that moment. The costing background should be disabled during this process to avoid being it calculated as usual.
+Opening inventory cost is the desired amount (average).
+Generates a Cost Adjustment Document so the cost is adjusted to the reference date in case this is a different date than the current one.
+Sets all transactions prior to the reference date as permanently adjusted.]]></HELP>
 <!--726D2F8961314B4C9E9D3E4121C75CD0-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
 <!--726D2F8961314B4C9E9D3E4121C75CD0-->  <CLASSNAME><![CDATA[org.openbravo.costing.InventoryAmountUpdateProcess]]></CLASSNAME>
 <!--726D2F8961314B4C9E9D3E4121C75CD0-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
@@ -426,6 +454,8 @@
 <!--D395B727675C45C98320F8A40E0768E7-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--D395B727675C45C98320F8A40E0768E7-->  <VALUE><![CDATA[ManualCostAdj]]></VALUE>
 <!--D395B727675C45C98320F8A40E0768E7-->  <NAME><![CDATA[Manual Cost Adjustment]]></NAME>
+<!--D395B727675C45C98320F8A40E0768E7-->  <DESCRIPTION><![CDATA[Manual Cost Adjustment process: Generates a cost adjustment document. and adds a line for the given transaction.]]></DESCRIPTION>
+<!--D395B727675C45C98320F8A40E0768E7-->  <HELP><![CDATA[Manual Cost Adjustment process: Generates a cost adjustment document. and adds a line for the given transaction.]]></HELP>
 <!--D395B727675C45C98320F8A40E0768E7-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
 <!--D395B727675C45C98320F8A40E0768E7-->  <CLASSNAME><![CDATA[org.openbravo.costing.ManualCostAdjustmentProcessHandler]]></CLASSNAME>
 <!--D395B727675C45C98320F8A40E0768E7-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
--- a/src-test/src/org/openbravo/test/AllAntTaskTests.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-test/src/org/openbravo/test/AllAntTaskTests.java	Thu Oct 16 17:06:50 2014 +0200
@@ -149,9 +149,8 @@
     ClassicSelectorTest.class,
 
     // Accounting
-    RecordID2Test.class,
+   RecordID2Test.class })
 
-    // Costing
-    TestCosting.class })
+
 public class AllAntTaskTests {
-}
\ No newline at end of file
+}
--- a/src-util/modulescript/src/org/openbravo/modulescript/CreateCostAdjustmentAcctConf.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/CreateCostAdjustmentAcctConf.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  *************************************************************************
@@ -34,10 +34,6 @@
   @Override
   // Inserting:
   // 1) accounting schema tables for existing tables that are missing
-  // 2) Period control for newly added DocBaseTypes
-  // 3) Table access for Transactions
-  // 4) update Table for Document Types (ARR accounts receivables recept, APP accounts payable
-  // payments)
   public void execute() {
     try {
       ConnectionProvider cp = getConnectionProvider();
--- a/src-util/modulescript/src/org/openbravo/modulescript/CreateCostAdjustmentAcctConf_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/CreateCostAdjustmentAcctConf_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -1,11 +1,21 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!--
- ************************************************************************************
- * Copyright (C) 2010-2011 Openbravo S.L.U.
- * Licensed under the Openbravo Commercial License version 1.0
- * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
- * or in the legal folder of this module distribution.
- ************************************************************************************
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (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):  ______________________________________.
+ *************************************************************************
 -->
 <SqlClass name="CreateCostAdjustmentAcctConfData" package="org.openbravo.modulescript">
    <SqlClassComment></SqlClassComment>
--- a/src-util/modulescript/src/org/openbravo/modulescript/CreateLandedCostAcctConf.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/CreateLandedCostAcctConf.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  *************************************************************************
@@ -34,10 +34,6 @@
   @Override
   // Inserting:
   // 1) accounting schema tables for existing tables that are missing
-  // 2) Period control for newly added DocBaseTypes
-  // 3) Table access for Transactions
-  // 4) update Table for Document Types (ARR accounts receivables recept, APP accounts payable
-  // payments)
   public void execute() {
     try {
       ConnectionProvider cp = getConnectionProvider();
--- a/src-util/modulescript/src/org/openbravo/modulescript/CreateLandedCostAcctConf_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/CreateLandedCostAcctConf_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -1,11 +1,21 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!--
- ************************************************************************************
- * Copyright (C) 2010-2011 Openbravo S.L.U.
- * Licensed under the Openbravo Commercial License version 1.0
- * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
- * or in the legal folder of this module distribution.
- ************************************************************************************
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (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):  ______________________________________.
+ *************************************************************************
 -->
 <SqlClass name="CreateLandedCostAcctConfData" package="org.openbravo.modulescript">
    <SqlClassComment></SqlClassComment>
--- a/src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2012 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -12,7 +12,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2012 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src-util/modulescript/src/org/openbravo/modulescript/UpdateCostingRuleDateTo.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/UpdateCostingRuleDateTo.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2013 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src-util/modulescript/src/org/openbravo/modulescript/UpdateCostingRuleDateTo_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src-util/modulescript/src/org/openbravo/modulescript/UpdateCostingRuleDateTo_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -12,7 +12,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2013 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  *************************************************************************
--- a/src/org/openbravo/common/inserters/LCMatchFromInvoiceInserter.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/common/inserters/LCMatchFromInvoiceInserter.java	Thu Oct 16 17:06:50 2014 +0200
@@ -40,8 +40,7 @@
     String strWhereClause = " (il is null or il.id = :invlineid) ";
     queryNamedParameters.put("invlineid", strInvoiceLineID);
 
-    final String strInvoiceLineId = requestParameters.get("@InvoiceLine.id@");
-    InvoiceLine invLine = OBDal.getInstance().get(InvoiceLine.class, strInvoiceLineId);
+    InvoiceLine invLine = OBDal.getInstance().get(InvoiceLine.class, strInvoiceLineID);
     if (invLine.getProduct() != null) {
       strWhereClause += " and lct." + LandedCostType.PROPERTY_PRODUCT + ".id = :product ";
       queryNamedParameters.put("product", invLine.getProduct().getId());
--- a/src/org/openbravo/costing/AverageAlgorithm.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/AverageAlgorithm.java	Thu Oct 16 17:06:50 2014 +0200
@@ -98,6 +98,7 @@
   /**
    * Closing inventories cost is calculated with the current stock balance.
    */
+  @Override
   protected BigDecimal getInventoryClosingCost() {
     BigDecimal cost = CostAdjustmentUtils.getValuedStockOnMovementDateByAttrAndLocator(
         transaction.getProduct(), costOrg, transaction.getMovementDate(), costDimensions,
@@ -140,8 +141,6 @@
       }
     }
     Costing cost = OBProvider.getInstance().get(Costing.class);
-    // TODO: Review this
-    // cost.setNewOBObject(true);
     cost.setCost(newCost);
     cost.setCurrency(costCurrency);
     cost.setStartingDate(transaction.getTransactionProcessDate());
@@ -276,6 +275,9 @@
     }
   }
 
+  /**
+   * Return true if the transaction type should be modify the average
+   */
   protected static boolean modifiesAverage(TrxType trxType) {
     switch (trxType) {
     case Receipt:
--- a/src/org/openbravo/costing/AverageCostAdjustment.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/AverageCostAdjustment.java	Thu Oct 16 17:06:50 2014 +0200
@@ -20,6 +20,7 @@
 
 import java.math.BigDecimal;
 import java.math.RoundingMode;
+import java.util.Calendar;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -85,7 +86,6 @@
       if (costAdjLine.isSource() && !costAdjLine.isRelatedTransactionAdjusted()
           && !costAdjLine.getId().equals(strCostAdjLineId)) {
         searchRelatedTransactionCosts(costAdjLine);
-        // OBDal.getInstance().refresh(costAdjLine);
       }
 
       costAdjLine.setRelatedTransactionAdjusted(Boolean.TRUE);
@@ -181,7 +181,6 @@
         for (CostAdjustmentLine existingCAL : existingAdjLines) {
           if (existingCAL.isSource() && !existingCAL.isRelatedTransactionAdjusted()) {
             searchRelatedTransactionCosts(existingCAL);
-            // OBDal.getInstance().refresh(costAdjLine);
           }
           if (existingCAL.getTransactionCostList().isEmpty()
               && !existingCAL.isRelatedTransactionAdjusted()) {
@@ -307,8 +306,6 @@
         currentCosting.setEndingDate(newDate);
         OBDal.getInstance().save(currentCosting);
         Costing newCosting = OBProvider.getInstance().get(Costing.class);
-        // TODO: Review this
-        // newCosting.setNewOBObject(true);
         newCosting.setCost(cost);
         newCosting.setCurrency((Currency) OBDal.getInstance().getProxy(Currency.ENTITY_NAME,
             strCurrentCurId));
@@ -400,69 +397,86 @@
     Warehouse warehouse = (Warehouse) costDimensions.get(CostDimension.Warehouse);
     MaterialTransaction trx = getTransaction();
 
-    StringBuffer where = new StringBuffer();
-    where.append(" as trx");
-    where.append("\n join trx." + Product.PROPERTY_ORGANIZATION + " as org");
-    where.append("\n join trx." + Product.PROPERTY_STORAGEBIN + " as loc");
-    where.append("\n , " + org.openbravo.model.ad.domain.List.ENTITY_NAME + " as trxtype");
-    where.append("\n where trxtype." + CostAdjustmentUtils.propADListReference + ".id = :refid");
-    where.append("  and trxtype." + CostAdjustmentUtils.propADListValue + " = trx."
+    StringBuffer wh = new StringBuffer();
+    wh.append(" as trx");
+    wh.append("\n join trx." + Product.PROPERTY_ORGANIZATION + " as org");
+    wh.append("\n join trx." + Product.PROPERTY_STORAGEBIN + " as loc");
+    wh.append("\n , " + org.openbravo.model.ad.domain.List.ENTITY_NAME + " as trxtype");
+    wh.append("\n where trxtype." + CostAdjustmentUtils.propADListReference + ".id = :refid");
+    wh.append("  and trxtype." + CostAdjustmentUtils.propADListValue + " = trx."
         + MaterialTransaction.PROPERTY_MOVEMENTTYPE);
 
-    where.append("  and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
-    where.append("  and trx." + MaterialTransaction.PROPERTY_PRODUCT + " = :product");
+    wh.append("  and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
+    wh.append("  and trx." + MaterialTransaction.PROPERTY_PRODUCT + " = :product");
     // Consider only transactions with movement date equal or later than the movement date of the
     // adjusted transaction. But for transactions with the same movement date only those with a
     // transaction date after the process date of the adjusted transaction.
-    if (areBackdatedTrxFixed) {
-      where.append("  and (");
-      where.append("   trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " > :mvtdate");
-      where.append("   or (");
-      where.append("    trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " = :mvtdate");
-    }
+    wh.append(" and (");
+    wh.append("  (trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :fixbdt");
+    wh.append("  and (");
+    wh.append("   trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " > :trxdate");
+    wh.append("   or (");
+    wh.append("    trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " = :trxdate");
+    wh.append("    and (");
+    wh.append("     trxtype." + CostAdjustmentUtils.propADListPriority + " > :trxtypeprio");
+    wh.append("     or (");
+    wh.append("      trxtype." + CostAdjustmentUtils.propADListPriority + " = :trxtypeprio");
+    wh.append("      and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " <= :trxqty");
+    wh.append("  ))))");
+    wh.append("  and trx.id != :trxid");
+
+    wh.append(" ) or (");
+
+    wh.append("  trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " >= :fixbdt");
+    wh.append("  and (");
+    wh.append("   trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " > :mvtdate");
+    wh.append("   or (");
+    wh.append("    trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " = :mvtdate");
     // If there are more than one trx on the same trx process date filter out those types with less
     // priority and / or higher quantity.
-    where.append(" and (");
-    where.append("  trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " > :trxdate");
-    where.append("  or (");
-    where.append("   trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " = :trxdate");
-    where.append("   and (");
-    where.append("    trxtype." + CostAdjustmentUtils.propADListPriority + " > :trxtypeprio");
-    where.append("    or (");
-    where.append("     trxtype." + CostAdjustmentUtils.propADListPriority + " = :trxtypeprio");
-    where.append("     and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " <= :trxqty");
-    where.append(" ))))");
-    where.append(" and trx.id != :trxid");
-
-    if (areBackdatedTrxFixed) {
-      where.append("  ))");
-    }
-    where.append("  and org.id in (:orgs)");
+    wh.append("    and (");
+    wh.append("     trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " > :trxdate");
+    wh.append("     or (");
+    wh.append("      trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " = :trxdate");
+    wh.append("      and (");
+    wh.append("       trxtype." + CostAdjustmentUtils.propADListPriority + " > :trxtypeprio");
+    wh.append("       or (");
+    wh.append("        trxtype." + CostAdjustmentUtils.propADListPriority + " = :trxtypeprio");
+    wh.append("        and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " <= :trxqty");
+    wh.append("    ))))");
+    wh.append("    and trx.id != :trxid");
+    wh.append(" ))))");
+    wh.append("  and org.id in (:orgs)");
     if (warehouse != null) {
-      where.append("  and loc." + Locator.PROPERTY_WAREHOUSE + " = :warehouse");
+      wh.append("  and loc." + Locator.PROPERTY_WAREHOUSE + " = :warehouse");
     }
     if (costingRule.getEndingDate() != null) {
-      where.append("  and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-          + " <= :enddate");
+      wh.append("  and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " <= :enddate");
     }
-    where.append("  and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-        + " > :startdate ");
-    where.append("\n order by ");
+    wh.append("  and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " > :startdate ");
+    wh.append("\n order by ");
     if (areBackdatedTrxFixed) {
-      where.append(" trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + ", ");
+      // CASE WHEN trx.trxprocessdate < :fixfrom THEN 1-1-1900
+      // ELSE trx.movmenetdate END
+      wh.append(" trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + ", ");
     }
-    where.append(" trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE);
-    where.append(" , trxtype." + CostAdjustmentUtils.propADListPriority);
-    where.append(" , trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " desc");
+    wh.append(" trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE);
+    wh.append(" , trxtype." + CostAdjustmentUtils.propADListPriority);
+    wh.append(" , trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " desc");
 
     OBQuery<MaterialTransaction> trxQry = OBDal.getInstance().createQuery(
-        MaterialTransaction.class, where.toString());
+        MaterialTransaction.class, wh.toString());
     trxQry.setFilterOnReadableOrganization(false);
     trxQry.setFilterOnReadableClients(false);
     trxQry.setNamedParameter("refid", CostAdjustmentUtils.MovementTypeRefID);
     trxQry.setNamedParameter("product", trx.getProduct());
-    if (areBackdatedTrxFixed) {
-      trxQry.setNamedParameter("mvtdate", trx.getMovementDate());
+    trxQry.setNamedParameter("mvtdate", trx.getMovementDate());
+    if (costingRule.isBackdatedTransactionsFixed()) {
+      trxQry.setNamedParameter("fixbdt", costingRule.getFixbackdatedfrom());
+    } else {
+      Calendar cal = Calendar.getInstance();
+      cal.set(9999, 12, 31);
+      trxQry.setNamedParameter("fixbdt", cal.getTime());
     }
     trxQry.setNamedParameter("trxtypeprio",
         CostAdjustmentUtils.getTrxTypePrio(trx.getMovementType()));
@@ -494,10 +508,12 @@
   @Override
   protected void calculateNegativeStockCorrectionAdjustmentAmount(CostAdjustmentLine costAdjLine) {
     MaterialTransaction basetrx = costAdjLine.getInventoryTransaction();
+    boolean areBaseTrxBackdatedFixed = getCostingRule().isBackdatedTransactionsFixed()
+        && !getCostingRule().getFixbackdatedfrom().before(basetrx.getTransactionProcessDate());
     BigDecimal currentStock = CostAdjustmentUtils.getStockOnTransactionDate(getCostOrg(), basetrx,
-        getCostDimensions(), isManufacturingProduct, areBackdatedTrxFixed);
+        getCostDimensions(), isManufacturingProduct, areBaseTrxBackdatedFixed);
     BigDecimal currentValueAmt = CostAdjustmentUtils.getValuedStockOnTransactionDate(getCostOrg(),
-        basetrx, getCostDimensions(), isManufacturingProduct, areBackdatedTrxFixed,
+        basetrx, getCostDimensions(), isManufacturingProduct, areBaseTrxBackdatedFixed,
         getCostCurrency());
     int precission = getCostCurrency().getCostingPrecision().intValue();
 
@@ -611,9 +627,7 @@
     where.append("   and c." + Costing.PROPERTY_ENDINGDATE + " = :endDate");
 
     where.append(" order by ");
-    if (areBackdatedTrxFixed) {
-      where.append(" trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " desc, ");
-    }
+    where.append(" trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " desc, ");
     where.append(" trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " desc");
 
     OBQuery<Costing> qryCosting = OBDal.getInstance().createQuery(Costing.class, where.toString());
--- a/src/org/openbravo/costing/CancelCostAdjustment.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CancelCostAdjustment.java	Thu Oct 16 17:06:50 2014 +0200
@@ -44,9 +44,9 @@
 import org.slf4j.LoggerFactory;
 
 public class CancelCostAdjustment extends BaseActionHandler {
-  private static Logger log = LoggerFactory.getLogger(CancelCostAdjustment.class);
-  final static String strCategoryCostAdj = "CAD";
-  final static String strTableCostAdj = "M_CostAdjustment";
+  private static final Logger log = LoggerFactory.getLogger(CancelCostAdjustment.class);
+  private static final String strCategoryCostAdj = "CAD";
+  private static final String strTableCostAdj = "M_CostAdjustment";
 
   @Override
   protected JSONObject execute(Map<String, Object> parameters, String data) {
@@ -86,8 +86,6 @@
         strCategoryCostAdj);
     final String docNo = FIN_Utility.getDocumentNo(docType, strTableCostAdj);
     costAdjustmentCancel.setDocumentNo(docNo);
-    // TODO: review setNewOBObject
-    // costAdjustmentCancel.setNewOBObject(true);
     costAdjustmentCancel.setUpdated(new Date());
     costAdjustmentCancel.setUpdatedBy(OBContext.getOBContext().getUser());
     costAdjustmentCancel.setCreationDate(new Date());
@@ -114,8 +112,6 @@
       while (scrollLines.next()) {
         final CostAdjustmentLine lineOrig = (CostAdjustmentLine) scrollLines.get()[0];
         CostAdjustmentLine lineCancel = (CostAdjustmentLine) DalUtil.copy(lineOrig, false);
-        // TODO: review setNewOBObject
-        // lineCancel.setNewOBObject(true);
         lineCancel.setUpdated(new Date());
         lineCancel.setUpdatedBy(OBContext.getOBContext().getUser());
         lineCancel.setCreationDate(new Date());
--- a/src/org/openbravo/costing/CostAdjustmentProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostAdjustmentProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -79,19 +79,10 @@
       message.put("severity", "success");
       message.put("title", "");
       message.put("text", OBMessageUtils.messageBD("Success"));
-      long t1 = System.currentTimeMillis();
       doChecks(costAdjustment.getId(), message);
-      long t2 = System.currentTimeMillis();
-      log.debug("Checks done: time {}", t2 - t1);
       initializeLines(costAdjustment);
-      long t3 = System.currentTimeMillis();
-      log.debug("Lines initialized: time {}", t3 - t2);
       calculateAdjustmentAmount(costAdjustment.getId());
-      long t4 = System.currentTimeMillis();
-      log.debug("Adjustments done: time {}", t4 - t3);
       doPostProcessChecks(costAdjustment.getId(), message);
-      long t5 = System.currentTimeMillis();
-      log.debug("Post Process checks: time {} - total time {}", t5 - t4, t5 - t1);
 
       costAdjustment = OBDal.getInstance().get(CostAdjustment.class, costAdjustment.getId());
       costAdjustment.setProcessed(true);
--- a/src/org/openbravo/costing/CostAdjustmentUtils.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostAdjustmentUtils.java	Thu Oct 16 17:06:50 2014 +0200
@@ -20,6 +20,7 @@
 
 import java.math.BigDecimal;
 import java.math.RoundingMode;
+import java.util.Calendar;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -47,6 +48,7 @@
 import org.openbravo.model.common.plm.Product;
 import org.openbravo.model.materialmgmt.cost.CostAdjustment;
 import org.openbravo.model.materialmgmt.cost.CostAdjustmentLine;
+import org.openbravo.model.materialmgmt.cost.CostingRule;
 import org.openbravo.model.materialmgmt.cost.TransactionCost;
 import org.openbravo.model.materialmgmt.transaction.MaterialTransaction;
 import org.openbravo.model.materialmgmt.transaction.ShipmentInOut;
@@ -82,8 +84,6 @@
     final String docNo = FIN_Utility.getDocumentNo(docType, strTableCostAdj);
 
     CostAdjustment costAdjustment = OBProvider.getInstance().get(CostAdjustment.class);
-    // TODO: review setNewOBObject
-    // costAdjustment.setNewOBObject(true);
     costAdjustment.setOrganization(org);
     costAdjustment.setDocumentType(docType);
     costAdjustment.setDocumentNo(docNo);
@@ -117,8 +117,6 @@
       Date accountingDate) {
     Long stdPrecission = transaction.getCurrency().getStandardPrecision();
     CostAdjustmentLine costAdjustmentLine = OBProvider.getInstance().get(CostAdjustmentLine.class);
-    // TODO: review setNewOBObject
-    // costAdjustmentLine.setNewOBObject(true);
     costAdjustmentLine.setOrganization(costAdjustmentHeader.getOrganization());
     costAdjustmentLine.setCostAdjustment(costAdjustmentHeader);
     if (costAdjusted == null) {
@@ -222,7 +220,6 @@
 
   public static BigDecimal getTrxCost(MaterialTransaction trx, boolean justUnitCost,
       Currency currency) {
-    // log4j.debug("Get Transaction Cost");
     if (!trx.isCostCalculated()) {
       // Transaction hasn't been calculated yet.
       log4j.error("  *** No cost found for transaction {} with id {}", trx.getIdentifier(),
@@ -262,39 +259,39 @@
     select.append(" from " + MaterialTransaction.ENTITY_NAME + " as trx");
     select.append("   join trx." + MaterialTransaction.PROPERTY_STORAGEBIN + " as locator");
     select.append(" where trx." + MaterialTransaction.PROPERTY_PRODUCT + ".id = :product");
+    subSelect.append("select min(trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + ")");
+    subSelect.append(" from " + MaterialTransaction.ENTITY_NAME + " as trx");
+    subSelect.append("   join trx." + MaterialTransaction.PROPERTY_STORAGEBIN + " as locator");
+    subSelect.append(" where trx." + MaterialTransaction.PROPERTY_PRODUCT + ".id = :product");
+    subSelect.append(" and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " > :date");
+    // Include only transactions that have its cost calculated
+    subSelect.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
+    if (costDimensions.get(CostDimension.Warehouse) != null) {
+      subSelect.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
+    }
+    subSelect.append("   and trx." + MaterialTransaction.PROPERTY_ORGANIZATION + ".id in (:orgs)");
+
+    Query trxsubQry = OBDal.getInstance().getSession().createQuery(subSelect.toString());
+    trxsubQry.setParameter("date", date);
+    trxsubQry.setParameter("product", product.getId());
+    if (costDimensions.get(CostDimension.Warehouse) != null) {
+      trxsubQry.setParameter("warehouse", costDimensions.get(CostDimension.Warehouse).getId());
+    }
+    trxsubQry.setParameterList("orgs", orgs);
+    Date backdatedTrxFrom = null;
     if (backdatedTransactionsFixed) {
+      CostingRule costRule = CostingUtils.getCostDimensionRule(org, date);
+      backdatedTrxFrom = costRule.getFixbackdatedfrom();
+    }
+
+    Object trxprocessDate = trxsubQry.uniqueResult();
+    if (trxprocessDate != null
+        && (!backdatedTransactionsFixed || ((Date) trxprocessDate).before(backdatedTrxFrom))) {
+      date = (Date) trxprocessDate;
+      select.append("   and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
+          + " < :date");
+    } else {
       select.append("   and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " <= :date");
-    } else {
-      subSelect.append("select min(trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-          + ")");
-      subSelect.append(" from " + MaterialTransaction.ENTITY_NAME + " as trx");
-      subSelect.append("   join trx." + MaterialTransaction.PROPERTY_STORAGEBIN + " as locator");
-      subSelect.append(" where trx." + MaterialTransaction.PROPERTY_PRODUCT + ".id = :product");
-      subSelect.append(" and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " > :date");
-      // Include only transactions that have its cost calculated
-      subSelect.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
-      if (costDimensions.get(CostDimension.Warehouse) != null) {
-        subSelect.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
-      }
-      subSelect
-          .append("   and trx." + MaterialTransaction.PROPERTY_ORGANIZATION + ".id in (:orgs)");
-
-      Query trxsubQry = OBDal.getInstance().getSession().createQuery(subSelect.toString());
-      trxsubQry.setParameter("date", date);
-      trxsubQry.setParameter("product", product.getId());
-      if (costDimensions.get(CostDimension.Warehouse) != null) {
-        trxsubQry.setParameter("warehouse", costDimensions.get(CostDimension.Warehouse).getId());
-      }
-      trxsubQry.setParameterList("orgs", orgs);
-
-      Object trxprocessDate = trxsubQry.uniqueResult();
-      if (trxprocessDate != null) {
-        date = (Date) trxprocessDate;
-        select.append("   and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-            + " < :date");
-      } else {
-        select.append("   and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " <= :date");
-      }
     }
 
     // Include only transactions that have its cost calculated
@@ -347,28 +344,47 @@
     select.append("   and trx." + MaterialTransaction.PROPERTY_PRODUCT + " = :product");
     // Include only transactions that have its cost calculated. Should be all.
     select.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
-    if (areBackdatedTrxFixed) {
-      select.append("  and (");
-      select.append("   trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " < :mvtdate");
-      select.append("   or (");
-      select.append("    trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " = :mvtdate");
-    }
+
+    select.append("  and ( ");
+    select.append("  ( trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :fixbdt");
+    select.append("   and  (");
     // If there are more than one trx on the same trx process date filter out those types with less
     // priority and / or higher quantity.
-    select.append(" and (");
-    select.append("  trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :trxdate");
-    select.append("  or (");
-    select.append("   trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " = :trxdate");
-    select.append("   and (");
-    select.append("    trxtype." + propADListPriority + " < :trxtypeprio");
+    select.append("    trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :trxdate");
     select.append("    or (");
-    select.append("     trxtype." + propADListPriority + " = :trxtypeprio");
-    select.append("     and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " >= :trxqty");
-    select.append(" ))))");
+    select
+        .append("     trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " = :trxdate");
+    select.append("     and (");
+    select.append("      trxtype." + propADListPriority + " < :trxtypeprio");
+    select.append("      or (");
+    select.append("       trxtype." + propADListPriority + " = :trxtypeprio");
+    select
+        .append("       and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " >= :trxqty");
+    select.append("   ))))");
 
-    if (areBackdatedTrxFixed) {
-      select.append("  ))");
-    }
+    select.append(" ) or (");
+
+    select.append("  trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " >= :fixbdt");
+    select.append("  and (");
+    select.append("   trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " < :mvtdate");
+    select.append("   or (");
+    select.append("    trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " = :mvtdate");
+    // If there are more than one trx on the same trx process date filter out those types with less
+    // priority and / or higher quantity.
+    select.append("    and (");
+    select
+        .append("     trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :trxdate");
+    select.append("     or (");
+    select.append("      trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
+        + " = :trxdate");
+    select.append("      and (");
+    select.append("       trxtype." + propADListPriority + " < :trxtypeprio");
+    select.append("       or (");
+    select.append("        trxtype." + propADListPriority + " = :trxtypeprio");
+    select.append("        and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY
+        + " >= :trxqty");
+    select.append("    )))");
+    select.append("  )))))");
     if (costDimensions.get(CostDimension.Warehouse) != null) {
       select.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
     }
@@ -376,12 +392,20 @@
     Query trxQry = OBDal.getInstance().getSession().createQuery(select.toString());
     trxQry.setParameter("refid", MovementTypeRefID);
     trxQry.setParameter("product", trx.getProduct());
-    if (areBackdatedTrxFixed) {
-      trxQry.setParameter("mvtdate", trx.getMovementDate());
-    }
+    trxQry.setParameter("mvtdate", trx.getMovementDate());
     trxQry.setParameter("trxdate", trx.getTransactionProcessDate());
     trxQry.setParameter("trxtypeprio", getTrxTypePrio(trx.getMovementType()));
     trxQry.setParameter("trxqty", trx.getMovementQuantity());
+    CostingRule costingRule = CostingUtils.getCostDimensionRule(costorg,
+        trx.getTransactionProcessDate());
+    if (costingRule.isBackdatedTransactionsFixed()) {
+      trxQry.setParameter("fixbdt", costingRule.getFixbackdatedfrom());
+    } else {
+      Calendar cal = Calendar.getInstance();
+      cal.set(9999, 12, 31);
+      trxQry.setParameter("fixbdt", cal.getTime());
+    }
+
     if (costDimensions.get(CostDimension.Warehouse) != null) {
       trxQry.setParameter("warehouse", costDimensions.get(CostDimension.Warehouse).getId());
     }
@@ -446,38 +470,39 @@
     select.append(" where trx." + MaterialTransaction.PROPERTY_PRODUCT + " = :product");
     // Include only transactions that have its cost calculated
     select.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
+    subSelect.append("select min(trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + ")");
+    subSelect.append(" from " + MaterialTransaction.ENTITY_NAME + " as trx");
+    subSelect.append("   join trx." + MaterialTransaction.PROPERTY_STORAGEBIN + " as locator");
+    subSelect.append(" where trx." + MaterialTransaction.PROPERTY_PRODUCT + ".id = :product");
+    subSelect.append(" and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " > :date");
+    // Include only transactions that have its cost calculated
+    subSelect.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
+    if (costDimensions.get(CostDimension.Warehouse) != null) {
+      subSelect.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
+    }
+    subSelect.append("   and trx." + MaterialTransaction.PROPERTY_ORGANIZATION + ".id in (:orgs)");
+
+    Query trxsubQry = OBDal.getInstance().getSession().createQuery(subSelect.toString());
+    trxsubQry.setParameter("date", date);
+    trxsubQry.setParameter("product", product.getId());
+    if (costDimensions.get(CostDimension.Warehouse) != null) {
+      trxsubQry.setParameter("warehouse", costDimensions.get(CostDimension.Warehouse).getId());
+    }
+    trxsubQry.setParameterList("orgs", orgs);
+    Date backdatedTrxFrom = null;
     if (backdatedTransactionsFixed) {
+      CostingRule costRule = CostingUtils.getCostDimensionRule(org, date);
+      backdatedTrxFrom = costRule.getFixbackdatedfrom();
+    }
+
+    Object trxprocessDate = trxsubQry.uniqueResult();
+    if (trxprocessDate != null
+        && (!backdatedTransactionsFixed || ((Date) trxprocessDate).before(backdatedTrxFrom))) {
+      date = (Date) trxprocessDate;
+      select.append("   and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
+          + " < :date");
+    } else {
       select.append("   and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " <= :date");
-    } else {
-      subSelect.append("select min(trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-          + ")");
-      subSelect.append(" from " + MaterialTransaction.ENTITY_NAME + " as trx");
-      subSelect.append("   join trx." + MaterialTransaction.PROPERTY_STORAGEBIN + " as locator");
-      subSelect.append(" where trx." + MaterialTransaction.PROPERTY_PRODUCT + ".id = :product");
-      subSelect.append(" and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " > :date");
-      // Include only transactions that have its cost calculated
-      subSelect.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
-      if (costDimensions.get(CostDimension.Warehouse) != null) {
-        subSelect.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
-      }
-      subSelect
-          .append("   and trx." + MaterialTransaction.PROPERTY_ORGANIZATION + ".id in (:orgs)");
-
-      Query trxsubQry = OBDal.getInstance().getSession().createQuery(subSelect.toString());
-      trxsubQry.setParameter("date", date);
-      trxsubQry.setParameter("product", product.getId());
-      if (costDimensions.get(CostDimension.Warehouse) != null) {
-        trxsubQry.setParameter("warehouse", costDimensions.get(CostDimension.Warehouse).getId());
-      }
-      trxsubQry.setParameterList("orgs", orgs);
-      Object trxprocessDate = trxsubQry.uniqueResult();
-      if (trxprocessDate != null) {
-        date = (Date) trxprocessDate;
-        select.append("   and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-            + " < :date");
-      } else {
-        select.append("   and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " <= :date");
-      }
     }
     if (costDimensions.get(CostDimension.Warehouse) != null) {
       select.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
@@ -564,12 +589,9 @@
     select.append("  and trx." + MaterialTransaction.PROPERTY_PRODUCT + " = :product");
     // Include only transactions that have its cost calculated
     select.append("   and trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
-    if (areBackdatedTrxFixed) {
-      select.append("  and (");
-      select.append("   trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " < :mvtdate");
-      select.append("   or (");
-      select.append("    trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " = :mvtdate");
-    }
+
+    select.append("  and ( ");
+    select.append("   ( trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :fixbdt");
     // If there are more than one trx on the same trx process date filter out those types with less
     // priority and / or higher quantity.
     select.append(" and (");
@@ -583,9 +605,25 @@
     select.append("     and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " >= :trxqty");
     select.append(" ))))");
 
-    if (areBackdatedTrxFixed) {
-      select.append("  ))");
-    }
+    select.append(" ) or (");
+
+    select.append("   trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " < :mvtdate");
+    select.append("   or (");
+    select.append("    trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " = :mvtdate");
+    // If there are more than one trx on the same trx process date filter out those types with less
+    // priority and / or higher quantity.
+    select.append(" and (");
+    select.append("  trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " < :trxdate");
+    select.append("  or (");
+    select.append("   trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " = :trxdate");
+    select.append("   and (");
+    select.append("    trxtype." + propADListPriority + " < :trxtypeprio");
+    select.append("    or (");
+    select.append("     trxtype." + propADListPriority + " = :trxtypeprio");
+    select.append("     and trx." + MaterialTransaction.PROPERTY_MOVEMENTQUANTITY + " >= :trxqty");
+    select.append("  ))))");
+    select.append(" )))");
+
     if (costDimensions.get(CostDimension.Warehouse) != null) {
       select.append("  and locator." + Locator.PROPERTY_WAREHOUSE + ".id = :warehouse");
     }
@@ -597,15 +635,25 @@
     Query trxQry = OBDal.getInstance().getSession().createQuery(select.toString());
     trxQry.setParameter("refid", MovementTypeRefID);
     trxQry.setParameter("product", trx.getProduct());
-    if (areBackdatedTrxFixed) {
-      trxQry.setParameter("mvtdate", trx.getMovementDate());
-    }
+
+    trxQry.setParameter("mvtdate", trx.getMovementDate());
+
     trxQry.setParameter("trxdate", trx.getTransactionProcessDate());
     if (costDimensions.get(CostDimension.Warehouse) != null) {
       trxQry.setParameter("warehouse", costDimensions.get(CostDimension.Warehouse).getId());
     }
     trxQry.setParameter("trxtypeprio", getTrxTypePrio(trx.getMovementType()));
     trxQry.setParameter("trxqty", trx.getMovementQuantity());
+    CostingRule costingRule = CostingUtils.getCostDimensionRule(costorg,
+        trx.getTransactionProcessDate());
+    if (costingRule.isBackdatedTransactionsFixed()) {
+      trxQry.setParameter("fixbdt", costingRule.getFixbackdatedfrom());
+    } else {
+      Calendar cal = Calendar.getInstance();
+      cal.set(9999, 12, 31);
+      trxQry.setParameter("fixbdt", cal.getTime());
+    }
+
     trxQry.setParameterList("orgs", orgs);
     @SuppressWarnings("unchecked")
     List<Object[]> o = trxQry.list();
--- a/src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingAlgorithmAdjustmentImp.java	Thu Oct 16 17:06:50 2014 +0200
@@ -58,7 +58,7 @@
 
 @ApplicationScoped
 public abstract class CostingAlgorithmAdjustmentImp {
-  protected static Logger log4j = LoggerFactory.getLogger(CostingAlgorithmAdjustmentImp.class);
+  private static final Logger log4j = LoggerFactory.getLogger(CostingAlgorithmAdjustmentImp.class);
   protected String strCostAdjLineId;
   protected String strCostAdjId;
   protected String strTransactionId;
@@ -98,7 +98,8 @@
     strCostingRuleId = costingRule.getId();
     startingDate = costingRule.getStartingDate();
     strClientId = costingRule.getClient().getId();
-    areBackdatedTrxFixed = costingRule.isBackdatedTransactionsFixed();
+    areBackdatedTrxFixed = costingRule.isBackdatedTransactionsFixed()
+        && !transaction.getTransactionProcessDate().before(costingRule.getFixbackdatedfrom());
 
     HashMap<CostDimension, BaseOBObject> costDimensions = CostingUtils.getEmptyDimensions();
     // Production products cannot be calculated by warehouse dimension.
@@ -193,6 +194,17 @@
     }
   }
 
+  /**
+   * Inserts a new cost adjustment line
+   * 
+   * @param trx
+   *          Material transaction
+   * @param adjustmentamt
+   *          Adjustment amount
+   * @param _parentLine
+   *          Cost Adjustment Line
+   * 
+   */
   protected CostAdjustmentLine insertCostAdjustmentLine(MaterialTransaction trx,
       BigDecimal adjustmentamt, CostAdjustmentLine _parentLine) {
     Date dateAcct = trx.getMovementDate();
@@ -522,7 +534,7 @@
     BigDecimal trxCalculatedCost = CostAdjustmentUtils.getTrxCost(trx, true, getCostCurrency());
     BigDecimal trxExpectedCost = CostAdjustmentUtils.getValuedStockOnMovementDateByAttrAndLocator(
         trx.getProduct(), getCostOrg(), trx.getMovementDate(), getCostDimensions(),
-        trx.getStorageBin(), trx.getAttributeSetValue(), getCostCurrency(), areBackdatedTrxFixed);
+        trx.getStorageBin(), trx.getAttributeSetValue(), getCostCurrency(), true);
 
     return trxExpectedCost.subtract(trxCalculatedCost);
   }
--- a/src/org/openbravo/costing/CostingBackground.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingBackground.java	Thu Oct 16 17:06:50 2014 +0200
@@ -177,7 +177,6 @@
     where.append("   and p." + Product.PROPERTY_STOCKED + " = true");
     where.append("   and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE + " <= :now");
     where.append("   and trx." + MaterialTransaction.PROPERTY_ORGANIZATION + ".id in (:orgs)");
-    // TODO: Check order for backdated transactions ??
     where.append(" order by trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE);
     where.append("   , trx." + MaterialTransaction.PROPERTY_MOVEMENTLINE);
     // This makes M- to go before M+. In Oracle it must go with desc as if not, M+ would go before
@@ -221,7 +220,6 @@
         MaterialTransaction.class, where.toString());
     trxQry.setFilterOnReadableOrganization(false);
     trxQry.setNamedParameter("orgs", orgsWithRule);
-    trxQry.setFetchSize(10);
 
     return trxQry.scroll(ScrollMode.FORWARD_ONLY);
   }
@@ -239,7 +237,6 @@
         MaterialTransaction.class, where.toString());
     trxQry.setFilterOnReadableOrganization(false);
     trxQry.setNamedParameter("orgs", orgsWithRule);
-    trxQry.setFetchSize(100);
 
     return trxQry.scroll(ScrollMode.FORWARD_ONLY);
   }
--- a/src/org/openbravo/costing/CostingMigrationProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingMigrationProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -165,8 +165,6 @@
       Client client0 = OBDal.getInstance().get(Client.class, "0");
 
       legacyCostAvailableAlert = OBProvider.getInstance().get(AlertRule.class);
-      // TODO: Review this
-      legacyCostAvailableAlert.setNewOBObject(true);
       legacyCostAvailableAlert.setClient(client0);
       legacyCostAvailableAlert.setOrganization(org0);
       legacyCostAvailableAlert.setName(alertRuleName);
@@ -831,8 +829,6 @@
 
   private CostingRule createCostingRule(Organization org) {
     CostingRule rule = OBProvider.getInstance().get(CostingRule.class);
-    // TODO: Review this
-    rule.setNewOBObject(true);
     rule.setClient(org.getClient());
     rule.setOrganization(org);
     rule.setCostingAlgorithm(getAverageAlgorithm());
@@ -894,8 +890,6 @@
     Client client0 = OBDal.getInstance().get(Client.class, "0");
 
     Preference newPref = OBProvider.getInstance().get(Preference.class);
-    // TODO: Review this
-    newPref.setNewOBObject(true);
     newPref.setClient(client0);
     newPref.setOrganization(org0);
     newPref.setPropertyList(false);
--- a/src/org/openbravo/costing/CostingRuleProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingRuleProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -251,8 +251,6 @@
         MaterialTransaction trx = (MaterialTransaction) trxs.get(0);
 
         TransactionCost transactionCost = OBProvider.getInstance().get(TransactionCost.class);
-        // TODO: Review this
-        // transactionCost.setNewOBObject(true);
         transactionCost.setInventoryTransaction(trx);
         transactionCost.setCostDate(trx.getTransactionProcessDate());
         transactionCost.setClient(trx.getClient());
@@ -410,8 +408,6 @@
     String clientId = (String) DalUtil.getId(rule.getClient());
     String orgId = (String) DalUtil.getId(rule.getOrganization());
     CostingRuleInit cri = OBProvider.getInstance().get(CostingRuleInit.class);
-    // TODO:Review this. Why onjectr is not saved??
-    // cri.setNewOBObject(true);
     cri.setClient((Client) OBDal.getInstance().getProxy(Client.ENTITY_NAME, clientId));
     cri.setOrganization((Organization) OBDal.getInstance()
         .getProxy(Organization.ENTITY_NAME, orgId));
@@ -456,8 +452,6 @@
       BigDecimal qtyBook, BigDecimal orderQtyCount, BigDecimal orderQtyBook, Long lineNo,
       InventoryCountLine relatedInventoryLine) {
     InventoryCountLine icl = OBProvider.getInstance().get(InventoryCountLine.class);
-    // TODO: Review this. Why object is not saved
-    // icl.setNewOBObject(true);
     icl.setClient(inventory.getClient());
     icl.setOrganization(inventory.getOrganization());
     icl.setPhysInventory(inventory);
@@ -505,8 +499,6 @@
           // Insert transaction cost record big ZERO cost.
           cur = trx.getClient().getCurrency();
           TransactionCost transactionCost = OBProvider.getInstance().get(TransactionCost.class);
-          // TODO: Review this. Object not saved??
-          // transactionCost.setNewOBObject(true);
           transactionCost.setInventoryTransaction(trx);
           transactionCost.setCostDate(trx.getTransactionProcessDate());
           transactionCost.setClient(trx.getClient());
--- a/src/org/openbravo/costing/CostingServer.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingServer.java	Thu Oct 16 17:06:50 2014 +0200
@@ -185,8 +185,6 @@
             final String docNo = FIN_Utility.getDocumentNo(docType, strTableLandedCost);
 
             landedCost = OBProvider.getInstance().get(LandedCost.class);
-            // TODO: Review this
-            // landedCost.setNewOBObject(true);
             landedCost.setReferenceDate(new Date());
             landedCost.setDocumentType(docType);
             landedCost.setDocumentNo(docNo);
@@ -403,8 +401,6 @@
 
   private void createTransactionCost() {
     TransactionCost transactionCost = OBProvider.getInstance().get(TransactionCost.class);
-    // TODO:Review this
-    // transactionCost.setNewOBObject(true);
     transactionCost.setInventoryTransaction(transaction);
     transactionCost.setOrganization(transaction.getOrganization());
     transactionCost.setCost(trxCost);
--- a/src/org/openbravo/costing/CostingStatus.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingStatus.java	Thu Oct 16 17:06:50 2014 +0200
@@ -83,8 +83,6 @@
     OBContext.setAdminMode(false);
     try {
       Preference migratedPreference = OBProvider.getInstance().get(Preference.class);
-      // TODO: Review this
-      // migratedPreference.setNewOBObject(true);
       migratedPreference.setAttribute("Cost_Eng_Ins_Migrated");
       migratedPreference.setSearchKey("Y");
       migratedPreference.setClient(OBDal.getInstance().get(Client.class, "0"));
--- a/src/org/openbravo/costing/CostingUtils.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/CostingUtils.java	Thu Oct 16 17:06:50 2014 +0200
@@ -65,7 +65,7 @@
 import org.openbravo.service.db.DalConnectionProvider;
 
 public class CostingUtils {
-  protected static Logger log4j = Logger.getLogger(CostingUtils.class);
+  private static Logger log4j = Logger.getLogger(CostingUtils.class);
 
   /**
    * Calls {@link #getTransactionCost(MaterialTransaction, Date, boolean, Currency)} setting the
--- a/src/org/openbravo/costing/FixBackdatedTransactionsProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/FixBackdatedTransactionsProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -18,7 +18,9 @@
  */
 package org.openbravo.costing;
 
+import java.text.ParseException;
 import java.util.Date;
+import java.util.Map;
 import java.util.Set;
 
 import org.codehaus.jettison.json.JSONException;
@@ -27,6 +29,7 @@
 import org.hibernate.ScrollMode;
 import org.hibernate.ScrollableResults;
 import org.openbravo.base.exception.OBException;
+import org.openbravo.client.application.process.BaseProcessActionHandler;
 import org.openbravo.dal.core.OBContext;
 import org.openbravo.dal.security.OrganizationStructureProvider;
 import org.openbravo.dal.service.OBDal;
@@ -37,107 +40,136 @@
 import org.openbravo.model.materialmgmt.cost.CostAdjustmentLine;
 import org.openbravo.model.materialmgmt.cost.CostingRule;
 import org.openbravo.model.materialmgmt.transaction.MaterialTransaction;
-import org.openbravo.scheduling.Process;
-import org.openbravo.scheduling.ProcessBundle;
 import org.openbravo.scheduling.ProcessLogger;
 import org.openbravo.service.db.DbUtility;
+import org.openbravo.service.json.JsonUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class FixBackdatedTransactionsProcess implements Process {
+public class FixBackdatedTransactionsProcess extends BaseProcessActionHandler {
   private ProcessLogger logger;
   private static final Logger log4j = LoggerFactory
       .getLogger(FixBackdatedTransactionsProcess.class);
   private static CostAdjustment costAdjHeader = null;
 
   @Override
-  public void execute(ProcessBundle bundle) throws Exception {
+  protected JSONObject doExecute(Map<String, Object> parameters, String content) {
     costAdjHeader = null;
-    logger = bundle.getLogger();
+    JSONObject jsonResponse = new JSONObject();
+
     OBError msg = new OBError();
-    final String ruleId = (String) bundle.getParams().get("M_Costing_Rule_ID");
-    CostingRule rule = OBDal.getInstance().get(CostingRule.class, ruleId);
-    rule.setBackdatedTransactionsFixed(Boolean.TRUE);
-    OBDal.getInstance().save(rule);
+    JSONObject jsonRequest;
+    try {
+      jsonRequest = new JSONObject(content);
+      JSONObject jsonparams = jsonRequest.getJSONObject("_params");
+      final String ruleId = jsonRequest.getString("M_Costing_Rule_ID");
+      Date fixbackdatedfrom = null;
+      CostingRule rule = OBDal.getInstance().get(CostingRule.class, ruleId);
+      rule.setBackdatedTransactionsFixed(Boolean.TRUE);
+      OBDal.getInstance().save(rule);
 
-    try {
-      OBContext.setAdminMode(false);
-      OrganizationStructureProvider osp = OBContext.getOBContext()
-          .getOrganizationStructureProvider(rule.getClient().getId());
-      final Set<String> childOrgs = osp.getChildTree(rule.getOrganization().getId(), true);
+      if (jsonparams.has("fixbackdatedfrom")) {
+        try {
+          fixbackdatedfrom = JsonUtils.createDateFormat().parse(
+              jsonparams.getString("fixbackdatedfrom"));
+        } catch (ParseException ignore) {
+        }
+      } else {
+        fixbackdatedfrom = rule.getStartingDate();
+      }
+      rule.setFixbackdatedfrom(fixbackdatedfrom);
+      try {
+        OBContext.setAdminMode(false);
+        OrganizationStructureProvider osp = OBContext.getOBContext()
+            .getOrganizationStructureProvider(rule.getClient().getId());
+        final Set<String> childOrgs = osp.getChildTree(rule.getOrganization().getId(), true);
 
-      // TODO: Discuss filter by date when there are periods closed.
-      ScrollableResults transactions = getTransactions(childOrgs, rule.getStartingDate(),
-          rule.getEndingDate());
-      int i = 0;
-      try {
-        while (transactions.next()) {
-          MaterialTransaction trx = (MaterialTransaction) transactions.get()[0];
-          if (CostAdjustmentUtils.isNeededBackdatedCostAdjustment(trx,
-              rule.isWarehouseDimension(), rule.getStartingDate())) {
-            createCostAdjustmenHeader(rule.getOrganization());
-            CostAdjustmentLine cal = CostAdjustmentUtils.insertCostAdjustmentLine(trx,
-                costAdjHeader, null, Boolean.TRUE, trx.getMovementDate());
-            cal.setBackdatedTrx(Boolean.TRUE);
-            OBDal.getInstance().save(cal);
-            i++;
-            OBDal.getInstance().flush();
-            if ((i % 100) == 0) {
-              OBDal.getInstance().getSession().clear();
-              // Reload rule after clear session.
-              rule = OBDal.getInstance().get(CostingRule.class, ruleId);
+        ScrollableResults transactions = getTransactions(childOrgs, fixbackdatedfrom,
+            rule.getEndingDate());
+        int i = 0;
+        try {
+          while (transactions.next()) {
+            MaterialTransaction trx = (MaterialTransaction) transactions.get()[0];
+            if (CostAdjustmentUtils.isNeededBackdatedCostAdjustment(trx,
+                rule.isWarehouseDimension(), rule.getStartingDate())) {
+              createCostAdjustmenHeader(rule.getOrganization());
+              CostAdjustmentLine cal = CostAdjustmentUtils.insertCostAdjustmentLine(trx,
+                  costAdjHeader, null, Boolean.TRUE, trx.getMovementDate());
+              cal.setBackdatedTrx(Boolean.TRUE);
+              OBDal.getInstance().save(cal);
+              i++;
+              OBDal.getInstance().flush();
+              if ((i % 100) == 0) {
+                OBDal.getInstance().getSession().clear();
+                // Reload rule after clear session.
+                rule = OBDal.getInstance().get(CostingRule.class, ruleId);
+              }
             }
           }
-        }
-      } finally {
-        transactions.close();
-      }
-
-    } catch (final Exception e) {
-      OBDal.getInstance().rollbackAndClose();
-      String message = DbUtility.getUnderlyingSQLException(e).getMessage();
-      logger.log(message);
-      log4j.error(message, e);
-      msg.setType("Error");
-      msg.setTitle(OBMessageUtils.messageBD("Error"));
-      msg.setMessage(message);
-      bundle.setResult(msg);
-      return;
-    } finally {
-      OBContext.restorePreviousMode();
-    }
-
-    if (costAdjHeader != null) {
-      try {
-        JSONObject message = CostAdjustmentProcess.doProcessCostAdjustment(costAdjHeader);
-
-        if (message.get("severity") != "success") {
-          throw new OBException(OBMessageUtils.parseTranslation("@ErrorProcessingCostAdj@") + ": "
-              + costAdjHeader.getDocumentNo() + " - " + message.getString("text"));
+        } finally {
+          transactions.close();
         }
 
-        msg.setType((String) message.get("severity"));
-        msg.setTitle((String) message.get("title"));
-        msg.setMessage((String) message.get("text"));
-      } catch (JSONException e) {
-        throw new OBException(OBMessageUtils.parseTranslation("@ErrorProcessingCostAdj@"));
-      } catch (Exception e) {
+      } catch (final Exception e) {
         OBDal.getInstance().rollbackAndClose();
         String message = DbUtility.getUnderlyingSQLException(e).getMessage();
         logger.log(message);
         log4j.error(message, e);
-        msg.setType("Error");
-        msg.setTitle(OBMessageUtils.messageBD("Error"));
-        msg.setMessage(message);
-        bundle.setResult(msg);
-        return;
+
+        JSONObject errorMessage = new JSONObject();
+        errorMessage.put("severity", "error");
+        errorMessage.put("text", e.getMessage());
+        jsonResponse.put("message", message);
+        return jsonResponse;
+
+      } finally {
+        OBContext.restorePreviousMode();
       }
-    } else {
-      msg.setType("Success");
-      msg.setTitle(OBMessageUtils.messageBD("Success"));
+
+      if (costAdjHeader != null) {
+        try {
+          JSONObject message = CostAdjustmentProcess.doProcessCostAdjustment(costAdjHeader);
+
+          if (message.get("severity") != "success") {
+            throw new OBException(OBMessageUtils.parseTranslation("@ErrorProcessingCostAdj@")
+                + ": " + costAdjHeader.getDocumentNo() + " - " + message.getString("text"));
+          }
+
+          msg.setType((String) message.get("severity"));
+          msg.setTitle((String) message.get("title"));
+          msg.setMessage((String) message.get("text"));
+        } catch (JSONException e) {
+          throw new OBException(OBMessageUtils.parseTranslation("@ErrorProcessingCostAdj@"));
+        } catch (Exception e) {
+          OBDal.getInstance().rollbackAndClose();
+          String message = DbUtility.getUnderlyingSQLException(e).getMessage();
+          logger.log(message);
+          log4j.error(message, e);
+          JSONObject errorMessage = new JSONObject();
+
+          errorMessage.put("severity", "error");
+          errorMessage.put("text", e.getMessage());
+          jsonResponse.put("message", message);
+          return jsonResponse;
+
+        }
+      } else {
+        msg.setType("Success");
+        msg.setMessage(OBMessageUtils.messageBD("Success"));
+      }
+
+      JSONObject errorMessage = new JSONObject();
+
+      errorMessage.put("severity", "success");
+      errorMessage.put("text", msg.getMessage());
+      jsonResponse.put("message", errorMessage);
+
+    } catch (JSONException e2) {
+
+      e2.printStackTrace();
     }
+    return jsonResponse;
 
-    bundle.setResult(msg);
   }
 
   private ScrollableResults getTransactions(Set<String> childOrgs, Date startDate, Date endDate) {
@@ -171,4 +203,5 @@
       costAdjHeader = CostAdjustmentUtils.insertCostAdjustmentHeader(org, "BDT");
     }
   }
+
 }
--- a/src/org/openbravo/costing/InventoryAmountUpdateProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/InventoryAmountUpdateProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -61,7 +61,7 @@
 import org.slf4j.LoggerFactory;
 
 public class InventoryAmountUpdateProcess extends BaseActionHandler {
-  private static Logger log = LoggerFactory.getLogger(InventoryAmountUpdateProcess.class);
+  private static final Logger log = LoggerFactory.getLogger(InventoryAmountUpdateProcess.class);
 
   @Override
   protected JSONObject execute(Map<String, Object> parameters, String data) {
@@ -112,6 +112,7 @@
         OBDal.getInstance().flush();
 
         try {
+          // to ensure that the closed inventory is created before opening inventory
           Thread.sleep(2000);
         } catch (InterruptedException e) {
           log.error("Error waiting between processing close an open inventories", e);
@@ -139,11 +140,6 @@
           invLines.close();
         }
 
-        // // Process closing physical inventories.
-        // for (InvAmtUpdLnInventories inv : line.getInventoryAmountUpdateLineInventoriesList()) {
-        // new InventoryCountProcess().processInventory(inv.getInitInventory(), false);
-        // }
-
       } finally {
         scrollLines.close();
       }
@@ -339,8 +335,6 @@
     String clientId = (String) DalUtil.getId(invLine.getClient());
     String orgId = (String) DalUtil.getId(invLine.getOrganization());
     InvAmtUpdLnInventories inv = OBProvider.getInstance().get(InvAmtUpdLnInventories.class);
-    // TODO: Review this
-    // inv.setNewOBObject(true);
     inv.setClient((Client) OBDal.getInstance().getProxy(Client.ENTITY_NAME, clientId));
     inv.setOrganization((Organization) OBDal.getInstance()
         .getProxy(Organization.ENTITY_NAME, orgId));
@@ -385,8 +379,6 @@
       BigDecimal qtyBook, BigDecimal orderQtyCount, BigDecimal orderQtyBook, Long lineNo,
       InventoryCountLine relatedInventoryLine, BigDecimal cost) {
     InventoryCountLine icl = OBProvider.getInstance().get(InventoryCountLine.class);
-    // TODO: Review this
-    // icl.setNewOBObject(true);
     icl.setClient(inventory.getClient());
     icl.setOrganization(inventory.getOrganization());
     icl.setPhysInventory(inventory);
--- a/src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java	Thu Oct 16 17:06:50 2014 +0200
@@ -40,7 +40,7 @@
 import org.slf4j.LoggerFactory;
 
 public class LCCostMatchFromInvoiceHandler extends BaseProcessActionHandler {
-  final private static Logger log = LoggerFactory.getLogger(LCCostMatchFromInvoiceHandler.class);
+  private static final Logger log = LoggerFactory.getLogger(LCCostMatchFromInvoiceHandler.class);
 
   @Override
   protected JSONObject doExecute(Map<String, Object> parameters, String content) {
@@ -104,8 +104,6 @@
       if (strLCMatchedId.isEmpty()) {
         // Create new match record
         match = OBProvider.getInstance().get(LCMatched.class);
-        // TODO: Review this
-        // match.setNewOBObject(true);
         match.setOrganization(lcc.getOrganization());
         match.setLandedCostCost(lcc);
         match.setInvoiceLine(il);
--- a/src/org/openbravo/costing/LCMatchingProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/LCMatchingProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -167,7 +167,6 @@
       BigDecimal amt = (BigDecimal) receiptAmt[0];
       ShipmentInOutLine receiptLine = OBDal.getInstance().get(ShipmentInOutLine.class,
           (String) receiptAmt[1]);
-      // MaterialTransaction receiptLine = (MaterialTransaction) record[1];
       MaterialTransaction trx = receiptLine.getMaterialMgmtMaterialTransactionList().get(0);
       CostAdjustmentLine cal = CostAdjustmentUtils.insertCostAdjustmentLine(trx, ca, amt, true,
           referenceDate);
--- a/src/org/openbravo/costing/LandedCostDistributionAlgorithm.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/LandedCostDistributionAlgorithm.java	Thu Oct 16 17:06:50 2014 +0200
@@ -32,7 +32,7 @@
 import org.slf4j.LoggerFactory;
 
 public abstract class LandedCostDistributionAlgorithm {
-  private static Logger log = LoggerFactory.getLogger(LandedCostDistributionAlgorithm.class);
+  private static final Logger log = LoggerFactory.getLogger(LandedCostDistributionAlgorithm.class);
 
   public abstract void distributeAmount(LandedCostCost lcCost, boolean isMatchingAdjustment);
 
--- a/src/org/openbravo/costing/LandedCostDistributionByAmount.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/LandedCostDistributionByAmount.java	Thu Oct 16 17:06:50 2014 +0200
@@ -109,8 +109,6 @@
       LCReceipt lcrl = (LCReceipt) OBDal.getInstance().getProxy(LCReceipt.ENTITY_NAME,
           (String) receiptCosts.get()[0]);
       LCReceiptLineAmt lcrla = OBProvider.getInstance().get(LCReceiptLineAmt.class);
-      // TODO: Review this
-      // lcrla.setNewOBObject(true);
       lcrla.setLandedCostCost((LandedCostCost) OBDal.getInstance().getProxy(
           LandedCostCost.ENTITY_NAME, lcCost.getId()));
       lcrla.setLandedCostReceipt(lcrl);
--- a/src/org/openbravo/costing/LandedCostProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/LandedCostProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -259,8 +259,6 @@
 
   private void matchCostWithInvoiceLine(LandedCostCost lcc) {
     LCMatched lcm = OBProvider.getInstance().get(LCMatched.class);
-    // TODO: Review this
-    // lcm.setNewOBObject(true);
     lcm.setOrganization(lcc.getOrganization());
     lcm.setLandedCostCost(lcc);
     lcm.setAmount(lcc.getAmount());
--- a/src/org/openbravo/costing/PriceDifferenceByDateProcess.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/PriceDifferenceByDateProcess.java	Thu Oct 16 17:06:50 2014 +0200
@@ -20,7 +20,9 @@
 
 import java.util.Date;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.Map;
+import java.util.Set;
 
 import javax.servlet.ServletException;
 
@@ -41,7 +43,7 @@
 import org.slf4j.LoggerFactory;
 
 public class PriceDifferenceByDateProcess extends BaseProcessActionHandler {
-  final static private Logger log = LoggerFactory.getLogger(PriceDifferenceByDateProcess.class);
+  private static final Logger log = LoggerFactory.getLogger(PriceDifferenceByDateProcess.class);
 
   @Override
   protected JSONObject doExecute(Map<String, Object> parameters, String content) {
@@ -55,7 +57,7 @@
       JSONArray productIds = params.getJSONArray("M_Product_ID");
       String mvdate = params.getString("movementdate");
       String orgId = params.getString("ad_org_id");
-
+      productIds.toString();
       Date movementdate = JsonUtils.createDateFormat().parse(mvdate);
       doChecks(orgId, movementdate);
 
@@ -66,25 +68,28 @@
           + " FROM  ProcurementReceiptInvoiceMatch mpo"
           + " WHERE trx.isCostCalculated = 'Y' and mpo.goodsShipmentLine.id = trx.goodsShipmentLine.id  "
           + " AND trx.movementDate >= :date and trx.organization.id in (:orgIds))";
-      for (int i = 0; i < productIds.length(); i++) {
-        final String strProductId = productIds.getString(i);
-        if (i == 0) {
-          strUpdate += " AND (product.id = '" + strProductId + "' ";
-        } else {
-          strUpdate += " OR product.id = '" + strProductId + "' ";
-        }
-        if (i == productIds.length() - 1) {
-          strUpdate += ")";
-        }
+
+      if (productIds.length() > 0) {
+        strUpdate = strUpdate.concat(" AND product.id IN :productIds ");
       }
 
+      Set<String> products = new HashSet<String>();
+      for (int i = 0; i < productIds.length(); i++) {
+        products.add(productIds.getString(i));
+      }
       Query update = OBDal.getInstance().getSession().createQuery(strUpdate);
+
+      if (productIds.length() > 0) {
+        update.setParameterList("productIds", products);
+      }
       update.setParameterList("orgIds",
           new OrganizationStructureProvider().getChildTree(orgId, true));
       update.setDate("date", movementdate);
 
       int updated = update.executeUpdate();
 
+      PriceDifferenceProcess.processPriceDifference(null, null);
+
       Map<String, String> map = new HashMap<String, String>();
       map.put("trxsNumber", Integer.toString(updated));
 
--- a/src/org/openbravo/costing/ReactivateLandedCost.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/ReactivateLandedCost.java	Thu Oct 16 17:06:50 2014 +0200
@@ -39,7 +39,7 @@
 import org.slf4j.LoggerFactory;
 
 public class ReactivateLandedCost extends BaseActionHandler {
-  private static Logger log = LoggerFactory.getLogger(ReactivateLandedCost.class);
+  private static final Logger log = LoggerFactory.getLogger(ReactivateLandedCost.class);
   final String strCategoryLandedCost = "LDC";
   final String strTableLandedCost = "M_LandedCost";
 
@@ -151,7 +151,8 @@
       if ("Y".equals(lcc.getPosted())) {
         String errorMsg = OBMessageUtils.messageBD("DocumentPosted");
         log.error("Document Posted");
-        throw new OBException(errorMsg + ": tab Cost - line " + lcc.getLineNo());
+        throw new OBException(errorMsg + ": " + OBMessageUtils.messageBD("COST_LINE")
+            + lcc.getLineNo());
       }
     }
   }
--- a/src/org/openbravo/costing/StandardCostAdjustment.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/costing/StandardCostAdjustment.java	Thu Oct 16 17:06:50 2014 +0200
@@ -26,7 +26,6 @@
 
 import org.hibernate.ScrollMode;
 import org.hibernate.ScrollableResults;
-import org.openbravo.base.session.OBPropertiesProvider;
 import org.openbravo.base.structure.BaseOBObject;
 import org.openbravo.client.kernel.ComponentProvider;
 import org.openbravo.costing.CostingAlgorithm.CostDimension;
@@ -124,9 +123,10 @@
 
     StringBuffer where = new StringBuffer();
     where.append(" as trx");
-    where.append(" join trx." + Product.PROPERTY_ORGANIZATION + " as org");
-    where.append(" join trx." + Product.PROPERTY_STORAGEBIN + " as loc");
-    where.append(" where trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
+    where.append("\n join trx." + Product.PROPERTY_ORGANIZATION + " as org");
+    where.append("\n join trx." + Product.PROPERTY_STORAGEBIN + " as loc");
+
+    where.append("\n where trx." + MaterialTransaction.PROPERTY_ISCOSTCALCULATED + " = true");
     where.append("  and trx." + MaterialTransaction.PROPERTY_PRODUCT + " = :product");
     where.append("  and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " >= :mvtdate");
     where.append("  and trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE + " <= :enddate");
@@ -135,19 +135,8 @@
       where.append("  and loc." + Locator.PROPERTY_WAREHOUSE + " = :warehouse");
     }
     where.append("  and trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE
-        + " > :startdate ))");
+        + " > :startdate");
 
-    where.append(" order by trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE);
-    where.append("   , trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE);
-    where.append("   , trx." + MaterialTransaction.PROPERTY_MOVEMENTLINE);
-    // This makes M- to go before M+. In Oracle it must go with desc as if not, M+ would go before
-    // M-.
-    if (OBPropertiesProvider.getInstance().getOpenbravoProperties().getProperty("bbdd.rdbms")
-        .equalsIgnoreCase("oracle")) {
-      where.append("   , trx." + MaterialTransaction.PROPERTY_MOVEMENTTYPE + " desc ");
-    } else {
-      where.append("   , trx." + MaterialTransaction.PROPERTY_MOVEMENTTYPE);
-    }
     OBQuery<MaterialTransaction> trxQry = OBDal.getInstance().createQuery(
         MaterialTransaction.class, where.toString());
     trxQry.setFilterOnReadableOrganization(false);
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_AmtUnitCost.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_AmtUnitCost.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -80,8 +80,8 @@
       }
       currentValuedStock = CostAdjustmentUtils.getValuedStockOnMovementDate(product, organization,
           referenceDate, costDimensions, currency, costRule.isBackdatedTransactionsFixed());
-      currentStock = CostAdjustmentUtils.getStockOnMovementDate(product, organization, referenceDate,
-          costDimensions, costRule.isBackdatedTransactionsFixed());
+      currentStock = CostAdjustmentUtils.getStockOnMovementDate(product, organization,
+          referenceDate, costDimensions, costRule.isBackdatedTransactionsFixed());
       info.addResult("inpcurInventoryAmount", currentValuedStock);
       info.addResult("inponhandqty", currentStock);
       info.addResult(
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_LandedCost_InvoiceLine.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_LandedCost_InvoiceLine.java	Thu Oct 16 17:06:50 2014 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2009-2014 Openbravo SLU 
+ * All portions are Copyright (C) 2014 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment.java	Thu Oct 16 17:06:50 2014 +0200
@@ -24,10 +24,12 @@
 
 import javax.servlet.ServletException;
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.log4j.Logger;
 import org.openbravo.base.secureApp.VariablesSecureApp;
 import org.openbravo.data.FieldProvider;
 import org.openbravo.database.ConnectionProvider;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.openbravo.erpCommon.utility.SequenceIdData;
 
 public class DocCostAdjustment extends AcctServer {
@@ -52,8 +54,8 @@
     super(AD_Client_ID, AD_Org_ID, connectionProvider);
   }
 
-  public void loadObjectFieldProvider(ConnectionProvider conn, @SuppressWarnings("hiding")
-  String AD_Client_ID, String Id) throws ServletException {
+  public void loadObjectFieldProvider(ConnectionProvider conn,
+      @SuppressWarnings("hiding") String AD_Client_ID, String Id) throws ServletException {
     setObjectFieldProvider(DocCostAdjustmentData.selectRegistro(conn, AD_Client_ID, Id));
   }
 
@@ -65,7 +67,6 @@
   public boolean loadDocumentDetails(FieldProvider[] data, ConnectionProvider conn) {
     C_Currency_ID = NO_CURRENCY;
 
-    // TODO: SACAR CURRENCY
     DocumentType = AcctServer.DOCTYPE_CostAdjustment;
     log4jDocCostAdjustment.debug("loadDocumentDetails - C_Currency_ID : " + C_Currency_ID);
     DateDoc = data[0].getField("DateTrx");
@@ -146,15 +147,15 @@
     // Select specific definition
     String strClassname = AcctServerData
         .selectTemplateDoc(conn, as.m_C_AcctSchema_ID, DocumentType);
-    if (strClassname.equals(""))
+    if (StringUtils.isEmpty(strClassname)) {
       strClassname = AcctServerData.selectTemplate(conn, as.m_C_AcctSchema_ID, AD_Table_ID);
-    if (!strClassname.equals("")) {
+    } else {
       try {
         DocCostAdjustmentTemplate newTemplate = (DocCostAdjustmentTemplate) Class.forName(
             strClassname).newInstance();
         return newTemplate.createFact(this, as, conn, con, vars);
       } catch (Exception e) {
-        log4j.error("Error while creating new instance for DocCostAdjustmentTemplate - " + e);
+        log4j.error("Error while creating new instance for DocCostAdjustmentTemplate - ", e);
       }
     }
     C_Currency_ID = as.getC_Currency_ID();
@@ -182,9 +183,9 @@
 
         if (line.isTransactionNegative()) {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         } else {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         }
         fact.createLine(line, p.getAccount(ProductInfo.ACCTTYPE_P_Cogs, as, conn),
@@ -196,13 +197,12 @@
       } else if (transactionType.equals(DocLine_CostAdjustment.TRXTYPE_RECEIPT)) {
         Account acct = null;
         // Inventory Asset DR
-        if (line.getIsSource() && line.getSourceProcess().equals("PDC")) { // Price Diff
-                                                                           // Correction
+        if (line.getIsSource() && ("PDC").equals(line.getSourceProcess())) { // Price Diff
+          // Correction
           // Invoice Price Variance CR
           acct = p.getAccount(ProductInfo.ACCTTYPE_P_IPV, as, conn);
-        } else if (line.getIsSource() && line.getSourceProcess().equals("LC")) {
-          throw new IllegalStateException(
-              "DocCostAdjustment - Error: landed cost should not generate accounting");
+        } else if (line.getIsSource() && ("LC").equals(line.getSourceProcess())) {
+          throw new IllegalStateException(OBMessageUtils.messageBD("LCNotAccounting"));
         } else {
           // Product Exp CR
           acct = getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as,
@@ -211,11 +211,11 @@
         log4jDocCostAdjustment.debug("********** DocCostAdjustment - factAcct - account - "
             + p.getAccount(ProductInfo.ACCTTYPE_P_Expense, as, conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(line, acct, line.m_C_Currency_ID, amtDebit, amtCredit, Fact_Acct_Group_ID,
             nextSeqNo(SeqNo), DocumentType, line.m_DateAcct, null, conn);
@@ -229,11 +229,11 @@
             + getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as, line.getWarehouseId(),
                 conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(
             line,
@@ -251,11 +251,11 @@
             + getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as, line.getWarehouseId(),
                 conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(line, p.getAccount(ProductInfo.ACCTTYPE_P_Asset, as, conn),
             line.m_C_Currency_ID, amtDebit, amtCredit, Fact_Acct_Group_ID, nextSeqNo(SeqNo),
@@ -274,11 +274,11 @@
             + getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as, line.getWarehouseId(),
                 conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(
             line,
@@ -289,7 +289,6 @@
             line.m_C_Currency_ID, amtCredit, amtDebit, Fact_Acct_Group_ID, nextSeqNo(SeqNo),
             DocumentType, line.m_DateAcct, null, conn);
       } else if (transactionType.equals(DocLine_CostAdjustment.TRXTYPE_INTERNALCONSUMPTION)) {
-        // TODO: review if the accounting generated by internalconsumption is similar
         // Inventory Asset DR
         // Inventory Adjustment CR
         M_Warehouse_ID = line.getWarehouseId();
@@ -297,11 +296,11 @@
             + getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as, line.getWarehouseId(),
                 conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(line, p.getAccount(ProductInfo.ACCTTYPE_P_Asset, as, conn),
             line.m_C_Currency_ID, amtDebit, amtCredit, Fact_Acct_Group_ID, nextSeqNo(SeqNo),
@@ -320,11 +319,11 @@
             + getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as, line.getWarehouseId(),
                 conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(
             line,
@@ -343,11 +342,11 @@
             + getAccountByWarehouse(AcctServer.ACCTTYPE_InvDifferences, as, line.getWarehouseId(),
                 conn).C_ValidCombination_ID);
         if (line.isTransactionNegative()) {
-          amtDebit = amount.toString();
+          amtDebit = amount.toPlainString();
           amtCredit = "";
         } else {
           amtDebit = "";
-          amtCredit = amount.toString();
+          amtCredit = amount.toPlainString();
         }
         fact.createLine(
             line,
@@ -448,9 +447,6 @@
           + ", Record=" + Record_ID);
       return null;
     }
-    // if (log4j.isDebugEnabled())
-    // log4j.debug("AcctServer - *******************************getAccount 4");
-    // Return Account
     Account acct = null;
     try {
       acct = Account.getAccount(conn, Account_ID);
@@ -475,7 +471,7 @@
     for (int i = 0; local_p_lines != null && i < local_p_lines.length; i++) {
       DocLine_CostAdjustment line = (DocLine_CostAdjustment) local_p_lines[i];
       BigDecimal amount = new BigDecimal(line.getAmount());
-      if (amount.compareTo(BigDecimal.ZERO) != 0) {
+      if (amount.signum() != 0) {
         isGeneratedAccounting = true;
       }
     }
@@ -491,15 +487,11 @@
     AcctServerData[] data = null;
     try {
       if (AcctType.equals(ACCTTYPE_NotInvoicedReceipts)) {
-        if (log4j.isDebugEnabled())
-          log4j.debug("AcctServer - getAccount - ACCTYPE_NotInvoicedReceipts - C_BPartner_ID - "
-              + C_BPartner_ID);
         data = AcctServerData.selectNotInvoicedReceiptsAcct(conn, bpId, as.getC_AcctSchema_ID());
       }
 
     } catch (ServletException e) {
-      log4j.warn(e);
-      e.printStackTrace();
+      log4j.warn("SelectNotInvoicedReceiptsAcct" + e);
     }
 
     // Get Acct
@@ -518,8 +510,7 @@
     try {
       acct = Account.getAccount(conn, Account_ID);
     } catch (ServletException e) {
-      log4j.warn(e);
-      e.printStackTrace();
+      log4j.warn("Get Account" + e);
     }
     return acct;
 
--- a/src/org/openbravo/erpCommon/ad_forms/DocCostAdjustmentTemplate.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocCostAdjustmentTemplate.java	Thu Oct 16 17:06:50 2014 +0200
@@ -28,7 +28,7 @@
 
 public abstract class DocCostAdjustmentTemplate {
   private static final long serialVersionUID = 1L;
-  static Logger log4jDocCostAdjustment = Logger.getLogger(DocCostAdjustment.class);
+  private static final Logger log4jDocCostAdjustment = Logger.getLogger(DocCostAdjustment.class);
 
   /**
    * Constructor
@@ -58,7 +58,12 @@
   public abstract Fact createFact(DocCostAdjustment docCostAdjustment, AcctSchema as,
       ConnectionProvider conn, Connection con, VariablesSecureApp vars) throws ServletException;
 
-  public String getServletInfo() {
-    return "Servlet for the accounting";
-  } // end of getServletInfo() method
+  public static Logger getLog4jdoccostadjustment() {
+    return log4jDocCostAdjustment;
+  }
+
+  public static long getSerialversionuid() {
+    return serialVersionUID;
+  }
+
 }
--- a/src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -20,17 +20,7 @@
 
 <SqlClass name="DocCostAdjustmentData" package="org.openbravo.erpCommon.ad_forms">
   <SqlClassComment></SqlClassComment>
-  <SqlMethod name="select" type="preparedStatement" return="multiple">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT '' AS M_COSTADJUSTMENT_ID, '' AS AD_CLIENT_ID, '' AS AD_ORG_ID, '' AS ISACTIVE,
-          '' AS CREATED, '' AS CREATEDBY, '' AS UPDATED, '' AS UPDATEDBY, '' AS DATETRX, '' AS PROCESSING,
-          '' AS PROCESSED, '' AS POSTED, '' AS DATEACCT, '' AS DATEDOC, '' AS C_DOCTYPE_ID
-        FROM DUAL
-      ]]>
-    </Sql>
-  </SqlMethod>
+  
   <SqlMethod name="selectRegistro" type="preparedStatement" return="multiple">
     <SqlMethodComment></SqlMethodComment>
     <Sql>
--- a/src/org/openbravo/erpCommon/ad_forms/DocInternalConsumption.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocInternalConsumption.java	Thu Oct 16 17:06:50 2014 +0200
@@ -23,6 +23,7 @@
 
 import javax.servlet.ServletException;
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.log4j.Logger;
 import org.openbravo.base.secureApp.VariablesSecureApp;
 import org.openbravo.costing.CostingStatus;
@@ -96,7 +97,7 @@
         docLine.loadAttributes(data[i], this);
         log4jDocInternalConsumption.debug("MovementQty = " + data[i].getField("movementqty"));
         BigDecimal MovementQty = new BigDecimal(data[i].getField("movementqty"));
-        docLine.setQty(MovementQty.toString(), conn);
+        docLine.setQty(MovementQty.toPlainString(), conn);
         docLine.m_M_Locator_ID = data[i].getField("mLocatorId");
 
         // Get related M_Transaction_ID
@@ -156,9 +157,9 @@
     // Select specific definition
     String strClassname = AcctServerData
         .selectTemplateDoc(conn, as.m_C_AcctSchema_ID, DocumentType);
-    if (strClassname.equals(""))
+    if (StringUtils.isEmpty(strClassname)) {
       strClassname = AcctServerData.selectTemplate(conn, as.m_C_AcctSchema_ID, AD_Table_ID);
-    if (!strClassname.equals("")) {
+    } else {
       try {
         DocInternalConsumptionTemplate newTemplate = (DocInternalConsumptionTemplate) Class
             .forName(strClassname).newInstance();
@@ -195,7 +196,7 @@
       String costs = line.getProductCosts(DateAcct, as, conn, con);
       log4jDocInternalConsumption.debug("CreateFact - before DR - Costs: " + costs);
       BigDecimal b_Costs = new BigDecimal(costs);
-      String strCosts = b_Costs.toString();
+      String strCosts = b_Costs.toPlainString();
       Account cogsAccount = line.getAccount(ProductInfo.ACCTTYPE_P_Cogs, as, conn);
       Product product = OBDal.getInstance().get(Product.class, line.m_M_Product_ID);
       if (cogsAccount == null) {
--- a/src/org/openbravo/erpCommon/ad_forms/DocInternalConsumptionTemplate.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocInternalConsumptionTemplate.java	Thu Oct 16 17:06:50 2014 +0200
@@ -56,4 +56,11 @@
   public String getServletInfo() {
     return "Servlet for the accounting";
   } // end of getServletInfo() method
+
+  /**
+   * @return the serialVersionUID
+   */
+  public static long getSerialVersionUID() {
+    return serialVersionUID;
+  }
 }
--- a/src/org/openbravo/erpCommon/ad_forms/DocInternalConsumption_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocInternalConsumption_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -1,19 +1,21 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!--
- ******************************************************************************
- * The contents of this file are subject to the   Compiere License  Version 1.1
- * ("License"); You may not use this file except in compliance with the License
- * You may obtain a copy of the License at http://www.compiere.org/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                  Compiere  ERP & CRM  Business Solution
- * The Initial Developer of the Original Code is Jorg Janke  and ComPiere, Inc.
- * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
- * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
- * Contributor(s): Openbravo SLU
- * Contributions are Copyright (C) 2014 Openbravo S.L.U.
- ******************************************************************************
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (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):  ______________________________________.
+ *************************************************************************
 -->
 
 
--- a/src/org/openbravo/erpCommon/ad_forms/DocLCCost.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLCCost.java	Thu Oct 16 17:06:50 2014 +0200
@@ -55,8 +55,8 @@
     super(AD_Client_ID, AD_Org_ID, connectionProvider);
   }
 
-  public void loadObjectFieldProvider(ConnectionProvider conn, @SuppressWarnings("hiding")
-  String AD_Client_ID, String Id) throws ServletException {
+  public void loadObjectFieldProvider(ConnectionProvider conn,
+      @SuppressWarnings("hiding") String AD_Client_ID, String Id) throws ServletException {
     setObjectFieldProvider(DocLCCostData.selectRegistro(conn, AD_Client_ID, Id));
   }
 
@@ -68,7 +68,6 @@
   public boolean loadDocumentDetails(FieldProvider[] data, ConnectionProvider conn) {
     C_Currency_ID = NO_CURRENCY;
 
-    // TODO: SACAR CURRENCY
     DocumentType = AcctServer.DOCTYPE_LandedCostCost;
     log4jDocLCCost.debug("loadDocumentDetails - C_Currency_ID : " + C_Currency_ID);
     DateDoc = data[0].getField("DateTrx");
@@ -243,8 +242,6 @@
 
           DocLine line4 = new DocLine(DocumentType, Record_ID, line.m_TrxLine_ID);
           line4.copyInfo(line);
-
-          // TODO: revisar con EAR si hay que pasar más dimensiones o no
           line4.m_C_BPartner_ID = "";
           line4.m_M_Product_ID = lineRcpt.mProductId;
           line4.m_C_Project_ID = "";
@@ -263,9 +260,6 @@
 
         }
 
-      } else {
-        // if the difference is not adjusted, then no accounting is generated
-        ;
       }
     }
 
--- a/src/org/openbravo/erpCommon/ad_forms/DocLandedCost.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLandedCost.java	Thu Oct 16 17:06:50 2014 +0200
@@ -51,8 +51,8 @@
     super(AD_Client_ID, AD_Org_ID, connectionProvider);
   }
 
-  public void loadObjectFieldProvider(ConnectionProvider conn, @SuppressWarnings("hiding")
-  String AD_Client_ID, String Id) throws ServletException {
+  public void loadObjectFieldProvider(ConnectionProvider conn,
+      @SuppressWarnings("hiding") String AD_Client_ID, String Id) throws ServletException {
     setObjectFieldProvider(DocLandedCostData.selectRegistro(conn, AD_Client_ID, Id));
   }
 
@@ -64,7 +64,6 @@
   public boolean loadDocumentDetails(FieldProvider[] data, ConnectionProvider conn) {
     C_Currency_ID = NO_CURRENCY;
 
-    // TODO: SACAR CURRENCY
     DocumentType = AcctServer.DOCTYPE_LandedCost;
     log4jDocLandedCost.debug("loadDocumentDetails - C_Currency_ID : " + C_Currency_ID);
     DateDoc = data[0].getField("DateTrx");
@@ -165,7 +164,7 @@
     C_Currency_ID = as.getC_Currency_ID();
     // create Fact Header
     Fact fact = new Fact(this, as, Fact.POST_Actual);
-    String Fact_Acct_Group_ID = SequenceIdData.getUUID();
+    String fact_Acct_Group_ID = SequenceIdData.getUUID();
     String amtDebit = "0";
     String amtCredit = "0";
     // Lines
@@ -181,7 +180,7 @@
       amtCredit = amount.toString();
 
       fact.createLine(line, p.getAccount(ProductInfo.ACCTTYPE_P_Asset, as, conn),
-          line.m_C_Currency_ID, amtCredit, amtDebit, Fact_Acct_Group_ID, nextSeqNo(SeqNo),
+          line.m_C_Currency_ID, amtCredit, amtDebit, fact_Acct_Group_ID, nextSeqNo(SeqNo),
           DocumentType, line.m_DateAcct, null, conn);
 
       DocLine line2 = new DocLine(DocumentType, Record_ID, line.m_TrxLine_ID);
@@ -198,7 +197,7 @@
       line2.m_A_Asset_ID = "";
 
       fact.createLine(line2, getLandedCostAccount(line.getLandedCostTypeId(), amount, as, conn),
-          line.m_C_Currency_ID, amtDebit, amtCredit, Fact_Acct_Group_ID, nextSeqNo(SeqNo),
+          line.m_C_Currency_ID, amtDebit, amtCredit, fact_Acct_Group_ID, nextSeqNo(SeqNo),
           DocumentType, line.m_DateAcct, null, conn);
 
     }
--- a/src/org/openbravo/erpCommon/ad_forms/DocLineInternalConsumption_data.xsql	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLineInternalConsumption_data.xsql	Thu Oct 16 17:06:50 2014 +0200
@@ -1,19 +1,21 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!--
- ******************************************************************************
- * The contents of this file are subject to the   Compiere License  Version 1.1
- * ("License"); You may not use this file except in compliance with the License
- * You may obtain a copy of the License at http://www.compiere.org/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                  Compiere  ERP & CRM  Business Solution
- * The Initial Developer of the Original Code is Jorg Janke  and ComPiere, Inc.
- * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
- * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
- * Contributor(s): Openbravo SLU
- * Contributions are Copyright (C) 2014 Openbravo S.L.U.
- ******************************************************************************
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (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):  ______________________________________.
+ *************************************************************************
 -->
 
 
--- a/src/org/openbravo/erpCommon/ad_forms/DocLine_CostAdjustment.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_CostAdjustment.java	Thu Oct 16 17:06:50 2014 +0200
@@ -31,7 +31,8 @@
 import org.openbravo.model.materialmgmt.transaction.MaterialTransaction;
 
 public class DocLine_CostAdjustment extends DocLine {
-  static Logger log4jDocLine_CostAdjustment = Logger.getLogger(DocLine_CostAdjustment.class);
+  private static final Logger log4jDocLine_CostAdjustment = Logger
+      .getLogger(DocLine_CostAdjustment.class);
 
   public DocLine_CostAdjustment(String DocumentType, String TrxHeader_ID, String TrxLine_ID) {
     super(DocumentType, TrxHeader_ID, TrxLine_ID);
--- a/src/org/openbravo/erpCommon/ad_forms/DocLine_LCCost.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_LCCost.java	Thu Oct 16 17:06:50 2014 +0200
@@ -21,7 +21,7 @@
 import org.apache.log4j.Logger;
 
 public class DocLine_LCCost extends DocLine {
-  static Logger log4jDocLine_LCCost = Logger.getLogger(DocLine_LCCost.class);
+  private static final Logger log4jDocLine_LCCost = Logger.getLogger(DocLine_LCCost.class);
 
   public DocLine_LCCost(String DocumentType, String TrxHeader_ID, String TrxLine_ID) {
     super(DocumentType, TrxHeader_ID, TrxLine_ID);
@@ -76,4 +76,8 @@
   public String getServletInfo() {
     return "Servlet for the accounting";
   } // end of getServletInfo() method
+
+  public static Logger getLog4jdoclineLccost() {
+    return log4jDocLine_LCCost;
+  }
 }
--- a/src/org/openbravo/erpCommon/ad_forms/DocLine_LandedCost.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_LandedCost.java	Thu Oct 16 17:06:50 2014 +0200
@@ -21,7 +21,7 @@
 import org.apache.log4j.Logger;
 
 public class DocLine_LandedCost extends DocLine {
-  static Logger log4jDocLine_LandedCost = Logger.getLogger(DocLine_LandedCost.class);
+  private static final Logger log4jDocLine_LandedCost = Logger.getLogger(DocLine_LandedCost.class);
 
   public DocLine_LandedCost(String DocumentType, String TrxHeader_ID, String TrxLine_ID) {
     super(DocumentType, TrxHeader_ID, TrxLine_ID);
@@ -58,4 +58,8 @@
   public String getServletInfo() {
     return "Servlet for the accounting";
   } // end of getServletInfo() method
+
+  public static Logger getLog4jdoclineLandedcost() {
+    return log4jDocLine_LandedCost;
+  }
 }
--- a/src/org/openbravo/erpCommon/utility/DimensionDisplayUtility.java	Wed Oct 15 22:19:16 2014 +0530
+++ b/src/org/openbravo/erpCommon/utility/DimensionDisplayUtility.java	Thu Oct 16 17:06:50 2014 +0200
@@ -81,6 +81,7 @@
   public static final String ARCreditMemo = "ARC";
   public static final String Reconciliation = "REC";
   public static final String ARReceipt = "ARR";
+  public static final String MatInternalConsumption = "MIC";
 
   /** Session variable **/
   public static final String IsAcctDimCentrally = "$IsAcctDimCentrally";