[doubtful debt] Adds processing, posting and accounts
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Thu, 20 Dec 2012 20:23:07 +0100
changeset 19560 e8bbe1ed64da
parent 19559 7c61fc6eae44
child 19561 724e0684566c
[doubtful debt] Adds processing, posting and accounts
modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_DOUBTFUL_DEBT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_DOUBTFUL_DEBT_RUN.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_VAL_RULE.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/DoubtFulDebtPickEditLines.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_DoubtfulDebtProcess.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_DoubtfulDebtRunProcess.java
src-db/database/model/functions/C_ACCTSCHEMA_DEFAULT_COPY.xml
src-db/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml
src-db/database/model/tables/C_BP_GROUP_ACCT.xml
src-db/database/model/tables/FIN_DOUBTFUL_DEBT_RUN.xml
src-db/database/model/views/FIN_DOUBTFUL_DEBT_V.xml
src-db/database/sourcedata/AD_AUXILIARINPUT.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_DIMENSION_MAPPING.xml
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
src-db/database/sourcedata/AD_REF_LIST.xml
src-db/database/sourcedata/AD_TAB.xml
src-db/database/sourcedata/AD_WINDOW.xml
src-db/database/sourcedata/OBUIAPP_PROCESS.xml
src/org/openbravo/common/actionhandler/DoubtFulDebtPickEditLines.java
src/org/openbravo/erpCommon/ad_forms/AcctServer.java
src/org/openbravo/erpCommon/ad_forms/DocDoubtfulDebt.java
src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java
src/org/openbravo/erpCommon/ad_forms/DocLine_FINFinAccTransaction.java
src/org/openbravo/erpCommon/ad_forms/DocLine_FINReconciliation.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_DOUBTFUL_DEBT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+  <database name="MODIFIED TABLE FIN_DOUBTFUL_DEBT">
+    <table name="FIN_DOUBTFUL_DEBT" primaryKey="FIN_DOUBTFUL_DEBT_KEY">
+      <column name="EM_APRM_PROCESS" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
+        <default><![CDATA[P]]></default>
+        <onCreateDefault/>
+      </column>
+    </table>
+  </database>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_DOUBTFUL_DEBT_RUN.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+  <database name="MODIFIED TABLE FIN_DOUBTFUL_DEBT_RUN">
+    <table name="FIN_DOUBTFUL_DEBT_RUN" primaryKey="FIN_DOUBTFUL_DEBT_RUN_KEY">
+      <column name="EM_APRM_PROCESS" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
+        <default><![CDATA[P]]></default>
+        <onCreateDefault/>
+      </column>
+    </table>
+  </database>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -741,6 +741,42 @@
 <!--24F844751D19499CA1215A76C9BC2543-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--24F844751D19499CA1215A76C9BC2543--></AD_COLUMN>
 
+<!--25B321F4031646D2A8163BE1EE41AF34--><AD_COLUMN>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_COLUMN_ID><![CDATA[25B321F4031646D2A8163BE1EE41AF34]]></AD_COLUMN_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <NAME><![CDATA[EM_APRM_Process]]></NAME>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <COLUMNNAME><![CDATA[EM_APRM_Process]]></COLUMNNAME>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_TABLE_ID><![CDATA[4D25087A4BD74E1D9E528CB5491D94DC]]></AD_TABLE_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_REFERENCE_VALUE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_VALUE_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <FIELDLENGTH><![CDATA[60]]></FIELDLENGTH>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <DEFAULTVALUE><![CDATA[P]]></DEFAULTVALUE>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <SEQNO><![CDATA[170]]></SEQNO>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_ELEMENT_ID><![CDATA[4636FFBE88B64C9C990F76457F0D521E]]></AD_ELEMENT_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_PROCESS_ID><![CDATA[017312F51139438A9665775E3B5392A1]]></AD_PROCESS_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <POSITION><![CDATA[17]]></POSITION>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--25B321F4031646D2A8163BE1EE41AF34-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--25B321F4031646D2A8163BE1EE41AF34--></AD_COLUMN>
+
 <!--26E3702BD6F345FB802CD410C12FC6EE--><AD_COLUMN>
 <!--26E3702BD6F345FB802CD410C12FC6EE-->  <AD_COLUMN_ID><![CDATA[26E3702BD6F345FB802CD410C12FC6EE]]></AD_COLUMN_ID>
 <!--26E3702BD6F345FB802CD410C12FC6EE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -1937,6 +1973,42 @@
 <!--528EE4D486444C08A1CE90CAA066BA48-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--528EE4D486444C08A1CE90CAA066BA48--></AD_COLUMN>
 
+<!--562395ACED3B4C2CB4F31FB3F412529A--><AD_COLUMN>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_COLUMN_ID><![CDATA[562395ACED3B4C2CB4F31FB3F412529A]]></AD_COLUMN_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <NAME><![CDATA[EM_APRM_Process]]></NAME>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <COLUMNNAME><![CDATA[EM_APRM_Process]]></COLUMNNAME>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_REFERENCE_VALUE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_VALUE_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <FIELDLENGTH><![CDATA[60]]></FIELDLENGTH>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <DEFAULTVALUE><![CDATA[P]]></DEFAULTVALUE>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <SEQNO><![CDATA[310]]></SEQNO>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_ELEMENT_ID><![CDATA[4636FFBE88B64C9C990F76457F0D521E]]></AD_ELEMENT_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_PROCESS_ID><![CDATA[0BDC2164ED3E48539FCEF4D306F29EFD]]></AD_PROCESS_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <POSITION><![CDATA[28]]></POSITION>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--562395ACED3B4C2CB4F31FB3F412529A-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--562395ACED3B4C2CB4F31FB3F412529A--></AD_COLUMN>
+
 <!--57D5BC1D263243128DCD16E2836AE3E1--><AD_COLUMN>
 <!--57D5BC1D263243128DCD16E2836AE3E1-->  <AD_COLUMN_ID><![CDATA[57D5BC1D263243128DCD16E2836AE3E1]]></AD_COLUMN_ID>
 <!--57D5BC1D263243128DCD16E2836AE3E1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2768,7 +2840,7 @@
 <!--7DC34559B3F2B45BE040007F0100784A-->  <DEFAULTVALUE><![CDATA[P]]></DEFAULTVALUE>
 <!--7DC34559B3F2B45BE040007F0100784A-->  <ISKEY><![CDATA[N]]></ISKEY>
 <!--7DC34559B3F2B45BE040007F0100784A-->  <ISPARENT><![CDATA[N]]></ISPARENT>
-<!--7DC34559B3F2B45BE040007F0100784A-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--7DC34559B3F2B45BE040007F0100784A-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--7DC34559B3F2B45BE040007F0100784A-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
 <!--7DC34559B3F2B45BE040007F0100784A-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--7DC34559B3F2B45BE040007F0100784A-->  <SEQNO><![CDATA[300]]></SEQNO>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -60,6 +60,18 @@
 <!--36C60E53F1274EDA827ED5146A2B13D1-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--36C60E53F1274EDA827ED5146A2B13D1--></AD_ELEMENT>
 
+<!--4636FFBE88B64C9C990F76457F0D521E--><AD_ELEMENT>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <AD_ELEMENT_ID><![CDATA[4636FFBE88B64C9C990F76457F0D521E]]></AD_ELEMENT_ID>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <COLUMNNAME><![CDATA[EM_APRM_Process]]></COLUMNNAME>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <NAME><![CDATA[EM_APRM_Process]]></NAME>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <PRINTNAME><![CDATA[EM_APRM_Process]]></PRINTNAME>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--4636FFBE88B64C9C990F76457F0D521E-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--4636FFBE88B64C9C990F76457F0D521E--></AD_ELEMENT>
+
 <!--4AC57284C5C745EB9087C105222EDF02--><AD_ELEMENT>
 <!--4AC57284C5C745EB9087C105222EDF02-->  <AD_ELEMENT_ID><![CDATA[4AC57284C5C745EB9087C105222EDF02]]></AD_ELEMENT_ID>
 <!--4AC57284C5C745EB9087C105222EDF02-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -5839,6 +5839,32 @@
 <!--7A169944D6C3486EBB925F5C3E5F9830-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--7A169944D6C3486EBB925F5C3E5F9830--></AD_FIELD>
 
+<!--7B9EE74D0F0C4BFB985481ED77F20882--><AD_FIELD>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <AD_FIELD_ID><![CDATA[7B9EE74D0F0C4BFB985481ED77F20882]]></AD_FIELD_ID>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <NAME><![CDATA[Doubtful Debt Process]]></NAME>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <AD_TAB_ID><![CDATA[9D859A2A50F44562AFA21AAF2DF91B8A]]></AD_TAB_ID>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <AD_COLUMN_ID><![CDATA[562395ACED3B4C2CB4F31FB3F412529A]]></AD_COLUMN_ID>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <SEQNO><![CDATA[2080]]></SEQNO>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--7B9EE74D0F0C4BFB985481ED77F20882-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--7B9EE74D0F0C4BFB985481ED77F20882--></AD_FIELD>
+
 <!--7BEE6B79F37842A6B081F6B1A547CB92--><AD_FIELD>
 <!--7BEE6B79F37842A6B081F6B1A547CB92-->  <AD_FIELD_ID><![CDATA[7BEE6B79F37842A6B081F6B1A547CB92]]></AD_FIELD_ID>
 <!--7BEE6B79F37842A6B081F6B1A547CB92-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -6145,6 +6171,32 @@
 <!--7E7E6DA64A48436995F9BFF923374E5D-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--7E7E6DA64A48436995F9BFF923374E5D--></AD_FIELD>
 
+<!--7EC09C1B65C840E0969591E4DBB41C2B--><AD_FIELD>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <AD_FIELD_ID><![CDATA[7EC09C1B65C840E0969591E4DBB41C2B]]></AD_FIELD_ID>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <NAME><![CDATA[Doubtful Debt Run Process]]></NAME>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <AD_TAB_ID><![CDATA[FA66A130BE8B48E88BF4F5A6E2FA0CDD]]></AD_TAB_ID>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <AD_COLUMN_ID><![CDATA[25B321F4031646D2A8163BE1EE41AF34]]></AD_COLUMN_ID>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <SEQNO><![CDATA[120]]></SEQNO>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--7EC09C1B65C840E0969591E4DBB41C2B-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--7EC09C1B65C840E0969591E4DBB41C2B--></AD_FIELD>
+
 <!--7FCAAFE989BDA375E040007F01007F0A--><AD_FIELD>
 <!--7FCAAFE989BDA375E040007F01007F0A-->  <AD_FIELD_ID><![CDATA[7FCAAFE989BDA375E040007F01007F0A]]></AD_FIELD_ID>
 <!--7FCAAFE989BDA375E040007F01007F0A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -48,6 +48,18 @@
 <!--46A3E47C3F414E948988B487A85FC244-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
 <!--46A3E47C3F414E948988B487A85FC244--></AD_MODEL_OBJECT>
 
+<!--668D8470721B430687DFE2F97A75751F--><AD_MODEL_OBJECT>
+<!--668D8470721B430687DFE2F97A75751F-->  <AD_MODEL_OBJECT_ID><![CDATA[668D8470721B430687DFE2F97A75751F]]></AD_MODEL_OBJECT_ID>
+<!--668D8470721B430687DFE2F97A75751F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--668D8470721B430687DFE2F97A75751F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--668D8470721B430687DFE2F97A75751F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--668D8470721B430687DFE2F97A75751F-->  <ACTION><![CDATA[P]]></ACTION>
+<!--668D8470721B430687DFE2F97A75751F-->  <CLASSNAME><![CDATA[org.openbravo.advpaymentmngt.process.FIN_DoubtfulDebtProcess]]></CLASSNAME>
+<!--668D8470721B430687DFE2F97A75751F-->  <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
+<!--668D8470721B430687DFE2F97A75751F-->  <AD_PROCESS_ID><![CDATA[0BDC2164ED3E48539FCEF4D306F29EFD]]></AD_PROCESS_ID>
+<!--668D8470721B430687DFE2F97A75751F-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
+<!--668D8470721B430687DFE2F97A75751F--></AD_MODEL_OBJECT>
+
 <!--733555DE925D4789BF94835D50EEEE14--><AD_MODEL_OBJECT>
 <!--733555DE925D4789BF94835D50EEEE14-->  <AD_MODEL_OBJECT_ID><![CDATA[733555DE925D4789BF94835D50EEEE14]]></AD_MODEL_OBJECT_ID>
 <!--733555DE925D4789BF94835D50EEEE14-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -132,6 +144,18 @@
 <!--AA1C0D6D318943808A75A24F5781AEBF-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
 <!--AA1C0D6D318943808A75A24F5781AEBF--></AD_MODEL_OBJECT>
 
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3--><AD_MODEL_OBJECT>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <AD_MODEL_OBJECT_ID><![CDATA[ACF0CCE03B9648CDB143478B8DD9A8F3]]></AD_MODEL_OBJECT_ID>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <ACTION><![CDATA[P]]></ACTION>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <CLASSNAME><![CDATA[org.openbravo.advpaymentmngt.process.FIN_DoubtfulDebtRunProcess]]></CLASSNAME>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <AD_PROCESS_ID><![CDATA[017312F51139438A9665775E3B5392A1]]></AD_PROCESS_ID>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
+<!--ACF0CCE03B9648CDB143478B8DD9A8F3--></AD_MODEL_OBJECT>
+
 <!--B18447439CAB419395BDA44287722832--><AD_MODEL_OBJECT>
 <!--B18447439CAB419395BDA44287722832-->  <AD_MODEL_OBJECT_ID><![CDATA[B18447439CAB419395BDA44287722832]]></AD_MODEL_OBJECT_ID>
 <!--B18447439CAB419395BDA44287722832-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -1,5 +1,43 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--017312F51139438A9665775E3B5392A1--><AD_PROCESS>
+<!--017312F51139438A9665775E3B5392A1-->  <AD_PROCESS_ID><![CDATA[017312F51139438A9665775E3B5392A1]]></AD_PROCESS_ID>
+<!--017312F51139438A9665775E3B5392A1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--017312F51139438A9665775E3B5392A1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--017312F51139438A9665775E3B5392A1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--017312F51139438A9665775E3B5392A1-->  <VALUE><![CDATA[DoubtfulDebtRunProcess]]></VALUE>
+<!--017312F51139438A9665775E3B5392A1-->  <NAME><![CDATA[Doubtful Debt Run Process]]></NAME>
+<!--017312F51139438A9665775E3B5392A1-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
+<!--017312F51139438A9665775E3B5392A1-->  <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--017312F51139438A9665775E3B5392A1-->  <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--017312F51139438A9665775E3B5392A1-->  <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--017312F51139438A9665775E3B5392A1-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--017312F51139438A9665775E3B5392A1-->  <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--017312F51139438A9665775E3B5392A1-->  <ISEXTERNALSERVICE><![CDATA[N]]></ISEXTERNALSERVICE>
+<!--017312F51139438A9665775E3B5392A1-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--017312F51139438A9665775E3B5392A1-->  <UIPATTERN><![CDATA[S]]></UIPATTERN>
+<!--017312F51139438A9665775E3B5392A1-->  <ISADVANCEDFEATURE><![CDATA[N]]></ISADVANCEDFEATURE>
+<!--017312F51139438A9665775E3B5392A1--></AD_PROCESS>
+
+<!--0BDC2164ED3E48539FCEF4D306F29EFD--><AD_PROCESS>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <AD_PROCESS_ID><![CDATA[0BDC2164ED3E48539FCEF4D306F29EFD]]></AD_PROCESS_ID>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <VALUE><![CDATA[DoubtfulDebtProcess]]></VALUE>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <NAME><![CDATA[Doubtful Debt Process]]></NAME>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISEXTERNALSERVICE><![CDATA[N]]></ISEXTERNALSERVICE>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <UIPATTERN><![CDATA[S]]></UIPATTERN>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD-->  <ISADVANCEDFEATURE><![CDATA[N]]></ISADVANCEDFEATURE>
+<!--0BDC2164ED3E48539FCEF4D306F29EFD--></AD_PROCESS>
+
 <!--12016E2EDE0245B5A36B84CBA144DBDF--><AD_PROCESS>
 <!--12016E2EDE0245B5A36B84CBA144DBDF-->  <AD_PROCESS_ID><![CDATA[12016E2EDE0245B5A36B84CBA144DBDF]]></AD_PROCESS_ID>
 <!--12016E2EDE0245B5A36B84CBA144DBDF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -1,5 +1,26 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--0EA168C17AAC47DA970558D19F69FDDA--><AD_PROCESS_PARA>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_PROCESS_PARA_ID><![CDATA[0EA168C17AAC47DA970558D19F69FDDA]]></AD_PROCESS_PARA_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <NAME><![CDATA[Action]]></NAME>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <DESCRIPTION><![CDATA[A drop down list box indicating the next step to take.]]></DESCRIPTION>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <HELP><![CDATA[The Action field indicates the Action to be performed for this element.]]></HELP>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_PROCESS_ID><![CDATA[017312F51139438A9665775E3B5392A1]]></AD_PROCESS_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_REFERENCE_ID><![CDATA[17]]></AD_REFERENCE_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_REFERENCE_VALUE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_VALUE_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_VAL_RULE_ID><![CDATA[3842B167CA6F44239C3357A721E3BA6A]]></AD_VAL_RULE_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <COLUMNNAME><![CDATA[action]]></COLUMNNAME>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--0EA168C17AAC47DA970558D19F69FDDA-->  <AD_ELEMENT_ID><![CDATA[152]]></AD_ELEMENT_ID>
+<!--0EA168C17AAC47DA970558D19F69FDDA--></AD_PROCESS_PARA>
+
 <!--173E22F30A234210BE895DBB291AE971--><AD_PROCESS_PARA>
 <!--173E22F30A234210BE895DBB291AE971-->  <AD_PROCESS_PARA_ID><![CDATA[173E22F30A234210BE895DBB291AE971]]></AD_PROCESS_PARA_ID>
 <!--173E22F30A234210BE895DBB291AE971-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -81,6 +102,27 @@
 <!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_ELEMENT_ID><![CDATA[208]]></AD_ELEMENT_ID>
 <!--4F5EE1017087464EAD95F3CCA4C5AFA5--></AD_PROCESS_PARA>
 
+<!--64ACDCA34C244598890F737AD48DCEA3--><AD_PROCESS_PARA>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_PROCESS_PARA_ID><![CDATA[64ACDCA34C244598890F737AD48DCEA3]]></AD_PROCESS_PARA_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <NAME><![CDATA[Action]]></NAME>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <DESCRIPTION><![CDATA[A drop down list box indicating the next step to take.]]></DESCRIPTION>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <HELP><![CDATA[The Action field indicates the Action to be performed for this element.]]></HELP>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_PROCESS_ID><![CDATA[0BDC2164ED3E48539FCEF4D306F29EFD]]></AD_PROCESS_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_REFERENCE_ID><![CDATA[17]]></AD_REFERENCE_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_REFERENCE_VALUE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_VALUE_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_VAL_RULE_ID><![CDATA[3842B167CA6F44239C3357A721E3BA6A]]></AD_VAL_RULE_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <COLUMNNAME><![CDATA[action]]></COLUMNNAME>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--64ACDCA34C244598890F737AD48DCEA3-->  <AD_ELEMENT_ID><![CDATA[152]]></AD_ELEMENT_ID>
+<!--64ACDCA34C244598890F737AD48DCEA3--></AD_PROCESS_PARA>
+
 <!--65B5C8CA308F46988BDE3E31BC1D78C8--><AD_PROCESS_PARA>
 <!--65B5C8CA308F46988BDE3E31BC1D78C8-->  <AD_PROCESS_PARA_ID><![CDATA[65B5C8CA308F46988BDE3E31BC1D78C8]]></AD_PROCESS_PARA_ID>
 <!--65B5C8CA308F46988BDE3E31BC1D78C8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -84,6 +84,18 @@
 <!--6932F568D27E47DB861809AD66C15A01-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--6932F568D27E47DB861809AD66C15A01--></AD_REFERENCE>
 
+<!--798239EB069F41A9BA8EE040C63DDBBC--><AD_REFERENCE>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <AD_REFERENCE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_ID>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <NAME><![CDATA[Doubtful Debt Process actions]]></NAME>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <PARENTREFERENCE_ID><![CDATA[17]]></PARENTREFERENCE_ID>
+<!--798239EB069F41A9BA8EE040C63DDBBC-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--798239EB069F41A9BA8EE040C63DDBBC--></AD_REFERENCE>
+
 <!--79FDE7805FC84C2BB251EE57E96C0AEE--><AD_REFERENCE>
 <!--79FDE7805FC84C2BB251EE57E96C0AEE-->  <AD_REFERENCE_ID><![CDATA[79FDE7805FC84C2BB251EE57E96C0AEE]]></AD_REFERENCE_ID>
 <!--79FDE7805FC84C2BB251EE57E96C0AEE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -71,6 +71,30 @@
 <!--5A9398A729924B7EAB9494E722992B55-->  <SEQNO><![CDATA[20]]></SEQNO>
 <!--5A9398A729924B7EAB9494E722992B55--></AD_REF_LIST>
 
+<!--5B87C97B045D4CC8B09F6578A305D826--><AD_REF_LIST>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <AD_REF_LIST_ID><![CDATA[5B87C97B045D4CC8B09F6578A305D826]]></AD_REF_LIST_ID>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <VALUE><![CDATA[R]]></VALUE>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <NAME><![CDATA[Reactivate]]></NAME>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <AD_REFERENCE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_ID>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--5B87C97B045D4CC8B09F6578A305D826-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--5B87C97B045D4CC8B09F6578A305D826--></AD_REF_LIST>
+
+<!--5E71718700A245BB838783695843D2F3--><AD_REF_LIST>
+<!--5E71718700A245BB838783695843D2F3-->  <AD_REF_LIST_ID><![CDATA[5E71718700A245BB838783695843D2F3]]></AD_REF_LIST_ID>
+<!--5E71718700A245BB838783695843D2F3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5E71718700A245BB838783695843D2F3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5E71718700A245BB838783695843D2F3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5E71718700A245BB838783695843D2F3-->  <VALUE><![CDATA[P]]></VALUE>
+<!--5E71718700A245BB838783695843D2F3-->  <NAME><![CDATA[Process]]></NAME>
+<!--5E71718700A245BB838783695843D2F3-->  <AD_REFERENCE_ID><![CDATA[798239EB069F41A9BA8EE040C63DDBBC]]></AD_REFERENCE_ID>
+<!--5E71718700A245BB838783695843D2F3-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--5E71718700A245BB838783695843D2F3-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--5E71718700A245BB838783695843D2F3--></AD_REF_LIST>
+
 <!--668B8E7BEFE24B7FB044D267A8B5E7E1--><AD_REF_LIST>
 <!--668B8E7BEFE24B7FB044D267A8B5E7E1-->  <AD_REF_LIST_ID><![CDATA[668B8E7BEFE24B7FB044D267A8B5E7E1]]></AD_REF_LIST_ID>
 <!--668B8E7BEFE24B7FB044D267A8B5E7E1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_VAL_RULE.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_VAL_RULE.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -22,6 +22,17 @@
 <!--29010995FD39439D97A5C0CE8CE27D70-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--29010995FD39439D97A5C0CE8CE27D70--></AD_VAL_RULE>
 
+<!--3842B167CA6F44239C3357A721E3BA6A--><AD_VAL_RULE>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_VAL_RULE_ID><![CDATA[3842B167CA6F44239C3357A721E3BA6A]]></AD_VAL_RULE_ID>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <NAME><![CDATA[Doubtfull Debt valid actions]]></NAME>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <TYPE><![CDATA[S]]></TYPE>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <CODE><![CDATA[(@EM_APRM_Process@ = 'P' AND AD_Ref_List.value='P') OR (@EM_APRM_Process@ = 'R' AND AD_Ref_List.value = 'R') AND AD_Ref_List.IsActive = 'Y']]></CODE>
+<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--3842B167CA6F44239C3357A721E3BA6A--></AD_VAL_RULE>
+
 <!--4DB5167147F24078A1FD39DC7564B48D--><AD_VAL_RULE>
 <!--4DB5167147F24078A1FD39DC7564B48D-->  <AD_VAL_RULE_ID><![CDATA[4DB5167147F24078A1FD39DC7564B48D]]></AD_VAL_RULE_ID>
 <!--4DB5167147F24078A1FD39DC7564B48D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/DoubtFulDebtPickEditLines.java	Thu Dec 20 20:23:07 2012 +0100
@@ -0,0 +1,221 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SLU 
+ * All portions are Copyright (C) 2012 Openbravo SLU 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+
+package org.openbravo.advpaymentmngt.actionHandler;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.codehaus.jettison.json.JSONArray;
+import org.codehaus.jettison.json.JSONException;
+import org.codehaus.jettison.json.JSONObject;
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
+import org.openbravo.base.provider.OBProvider;
+import org.openbravo.client.application.process.BaseProcessActionHandler;
+import org.openbravo.dal.core.OBContext;
+import org.openbravo.dal.service.OBDal;
+import org.openbravo.dal.service.OBDao;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
+import org.openbravo.model.ad.system.Client;
+import org.openbravo.model.common.currency.Currency;
+import org.openbravo.model.common.enterprise.DocumentType;
+import org.openbravo.model.common.enterprise.Organization;
+import org.openbravo.model.financialmgmt.payment.DoubtfulDebt;
+import org.openbravo.model.financialmgmt.payment.DoubtfulDebtRun;
+import org.openbravo.model.financialmgmt.payment.FIN_PaymentSchedule;
+import org.openbravo.model.financialmgmt.payment.FIN_PaymentScheduleDetail;
+import org.openbravo.service.db.CallStoredProcedure;
+import org.openbravo.service.db.DbUtility;
+
+public class DoubtFulDebtPickEditLines extends BaseProcessActionHandler {
+  private static Logger log = Logger.getLogger(DoubtFulDebtPickEditLines.class);
+
+  @Override
+  protected JSONObject doExecute(Map<String, Object> parameters, String content) {
+    JSONObject jsonRequest = null;
+    JSONObject errorMessage = new JSONObject();
+    try {
+      OBContext.setAdminMode(true);
+      log.debug(jsonRequest);
+      errorMessage.put("severity", "success");
+      errorMessage.put("text", OBMessageUtils.messageBD("Success"));
+      jsonRequest = new JSONObject(content);
+
+      // When the focus is NOT in the tab of the button (i.e. any child tab) and the tab does not
+      // contain any record, the inpfinDoubtfulDebtRunId parameter contains "null" string. Use
+      // FIN_Doubtful_Debt_Run_ID instead because it always contains the id of the selected doubtful
+      // debt run. Issue 20585: https://issues.openbravo.com/view.php?id=20585
+      final String strDoubtFulDebtRunId = jsonRequest.getString("FIN_Doubtful_Debt_Run_ID");
+      final DoubtfulDebtRun doubtfulDebtRun = OBDal.getInstance().get(DoubtfulDebtRun.class,
+          strDoubtFulDebtRunId);
+
+      if (doubtfulDebtRun != null) {
+        List<String> idList = OBDao.getIDListFromOBObject(doubtfulDebtRun.getFINDoubtfulDebtList());
+        errorMessage = createDoubtfulDebt(doubtfulDebtRun, jsonRequest, idList);
+      }
+
+      jsonRequest.put("message", errorMessage);
+
+    } catch (Exception e) {
+      OBDal.getInstance().rollbackAndClose();
+      log.error("DoubtFulDebtPickeditLines error: " + e.getMessage(), e);
+
+      Throwable ex = DbUtility.getUnderlyingSQLException(e);
+      String message = OBMessageUtils.translateError(ex.getMessage()).getMessage();
+      try {
+        errorMessage = new JSONObject();
+        errorMessage.put("severity", "error");
+        errorMessage.put("text", message);
+        jsonRequest.put("message", errorMessage);
+      } catch (JSONException ignore) {
+        ignore.printStackTrace();
+      }
+
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+    return jsonRequest;
+  }
+
+  private JSONObject createDoubtfulDebt(DoubtfulDebtRun doubtfulDebtRun, JSONObject jsonRequest,
+      List<String> idList) throws JSONException {
+    final JSONArray selectedLines = jsonRequest.getJSONArray("_selection");
+    DocumentType documentType = null;
+    Currency currency = null;
+    JSONObject message = new JSONObject();
+    message.put("severity", "success");
+
+    DoubtfulDebt newDoubtfulDebt = null;
+    int cont = 0;
+    for (int i = 0; i < selectedLines.length(); i++) {
+      JSONObject selectedLine = selectedLines.getJSONObject(i);
+
+      BigDecimal amount = new BigDecimal(selectedLine.getString("doubtfulDebtAmount"));
+
+      if (amount.compareTo(BigDecimal.ZERO) != 0) {
+        String strDebtdId = selectedLine.getString("fINDoubtfulDebt");
+        String strPaymentSchedule = selectedLine.getString("id");
+        String strCurrency = selectedLine.getString("currency");
+        FIN_PaymentSchedule paymentSchedule = (FIN_PaymentSchedule) OBDal.getInstance().getProxy(
+            FIN_PaymentSchedule.ENTITY_NAME, strPaymentSchedule);
+        boolean notExistsDebtLine = idList.contains(strDebtdId);
+        if (notExistsDebtLine) {
+          newDoubtfulDebt = OBDal.getInstance().get(DoubtfulDebt.class, strDebtdId);
+          idList.remove(strDebtdId);
+        } else {
+          newDoubtfulDebt = OBProvider.getInstance().get(DoubtfulDebt.class);
+          if (documentType == null) {
+            documentType = getDoubtfulDebtDocumentType(doubtfulDebtRun.getClient(),
+                doubtfulDebtRun.getOrganization());
+          }
+          if (currency == null) {
+            currency = (Currency) OBDal.getInstance().getProxy(Currency.ENTITY_NAME, strCurrency);
+          }
+          newDoubtfulDebt.setClient(doubtfulDebtRun.getClient());
+          newDoubtfulDebt.setOrganization(doubtfulDebtRun.getOrganization());
+          newDoubtfulDebt.setAccountingDate(doubtfulDebtRun.getRundate());
+          newDoubtfulDebt.setDescription(doubtfulDebtRun.getDescription());
+          newDoubtfulDebt.setDocumentNo(FIN_Utility.getDocumentNo(documentType,
+              documentType.getTable() != null ? documentType.getTable().getDBTableName() : ""));
+          newDoubtfulDebt.setCurrency(currency);
+          newDoubtfulDebt.setFINDoubtfulDebtRun(doubtfulDebtRun);
+          newDoubtfulDebt.setDocumentType(documentType);
+          newDoubtfulDebt.setFINPaymentSchedule(paymentSchedule);
+          // Dimensions
+          newDoubtfulDebt.setBusinessPartner(paymentSchedule.getInvoice().getBusinessPartner());
+          newDoubtfulDebt.setProject(paymentSchedule.getInvoice().getProject());
+          newDoubtfulDebt.setCostCenter(paymentSchedule.getInvoice().getCostcenter());
+          newDoubtfulDebt.setStDimension(paymentSchedule.getInvoice().getStDimension());
+          newDoubtfulDebt.setNdDimension(paymentSchedule.getInvoice().getNdDimension());
+          newDoubtfulDebt.setSalesCampaign(paymentSchedule.getInvoice().getSalesCampaign());
+          newDoubtfulDebt.setActivity(paymentSchedule.getInvoice().getActivity());
+
+          OBDal.getInstance().save(newDoubtfulDebt);
+          OBDal.getInstance().save(doubtfulDebtRun);
+        }
+        BigDecimal oldAmount = newDoubtfulDebt.getAmount();
+        newDoubtfulDebt.setAmount(amount);
+        // TODO: Review processing of documents (to implement as well reactivate...
+        // Set processed = Yes
+        // newDoubtfulDebt.setProcessed(true);
+        // doubtfulDebtRun.setProcessed(true);
+        // OBDal.getInstance().save(newDoubtfulDebt);
+        // OBDal.getInstance().save(doubtfulDebtRun);
+
+        updateDoubtfulDebtScheduleDetails(paymentSchedule, amount, oldAmount);
+      }
+
+      cont++;
+    }
+
+    OBDal.getInstance().flush();
+
+    removeNonSelectedLines(idList, doubtfulDebtRun);
+    message.put("text", cont + " " + OBMessageUtils.messageBD("RowsInserted"));
+    return message;
+  }
+
+  private void removeNonSelectedLines(List<String> idList, DoubtfulDebtRun doubtfulDebtRun) {
+    if (idList.size() > 0) {
+      for (String id : idList) {
+        DoubtfulDebt dd = OBDal.getInstance().get(DoubtfulDebt.class, id);
+        FIN_PaymentSchedule salesInvoicePaymentSchedule = dd.getFINPaymentSchedule();
+        for (FIN_PaymentScheduleDetail psd : salesInvoicePaymentSchedule
+            .getFINPaymentScheduleDetailInvoicePaymentScheduleList()) {
+          if (psd.getPaymentDetails() == null && !psd.isCanceled()) {
+            psd.setDebtAmount(psd.getDebtAmount().subtract(dd.getAmount()));
+            OBDal.getInstance().save(psd);
+          }
+        }
+        doubtfulDebtRun.getFINDoubtfulDebtList().remove(dd);
+        OBDal.getInstance().remove(dd);
+      }
+      OBDal.getInstance().save(doubtfulDebtRun);
+      OBDal.getInstance().flush();
+    }
+  }
+
+  private void updateDoubtfulDebtScheduleDetails(FIN_PaymentSchedule salesInvoicePaymentSchedule,
+      BigDecimal debtAmount, BigDecimal oldDebtAmount) {
+    for (FIN_PaymentScheduleDetail psd : salesInvoicePaymentSchedule
+        .getFINPaymentScheduleDetailInvoicePaymentScheduleList()) {
+      if (psd.getPaymentDetails() == null && !psd.isCanceled()) {
+        // Pending amount should be greater or equals than the doubtful debt amount
+        if (psd.getAmount().compareTo(debtAmount) >= 0) {
+          psd.setDebtAmount(psd.getDebtAmount().add(debtAmount).subtract(oldDebtAmount));
+          OBDal.getInstance().save(psd);
+        }
+      }
+    }
+  }
+
+  private DocumentType getDoubtfulDebtDocumentType(Client client, Organization organization) {
+    final List<Object> parameters = new ArrayList<Object>();
+    parameters.add(client.getId());
+    parameters.add(organization.getId());
+    parameters.add("DDB");
+    String strDocTypeId = (String) CallStoredProcedure.getInstance().call("AD_GET_DOCTYPE",
+        parameters, null);
+    // TODO: manage no document type: throw exception
+    return OBDal.getInstance().get(DocumentType.class, strDocTypeId);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_DoubtfulDebtProcess.java	Thu Dec 20 20:23:07 2012 +0100
@@ -0,0 +1,138 @@
+/*
+ *************************************************************************
+ * 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) 2010-2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ *************************************************************************
+ */
+package org.openbravo.advpaymentmngt.process;
+
+import java.math.BigDecimal;
+
+import org.openbravo.advpaymentmngt.dao.AdvPaymentMngtDao;
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
+import org.openbravo.base.secureApp.VariablesSecureApp;
+import org.openbravo.dal.core.OBContext;
+import org.openbravo.dal.service.OBDal;
+import org.openbravo.database.ConnectionProvider;
+import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.Utility;
+import org.openbravo.model.financialmgmt.payment.DoubtfulDebt;
+import org.openbravo.model.financialmgmt.payment.FIN_PaymentSchedule;
+import org.openbravo.model.financialmgmt.payment.FIN_PaymentScheduleDetail;
+import org.openbravo.scheduling.ProcessBundle;
+
+public class FIN_DoubtfulDebtProcess implements org.openbravo.scheduling.Process {
+  private static AdvPaymentMngtDao dao;
+
+  public void execute(ProcessBundle bundle) throws Exception {
+    dao = new AdvPaymentMngtDao();
+    OBError msg = new OBError();
+    msg.setType("Success");
+    msg.setTitle(Utility.messageBD(bundle.getConnection(), "Success", bundle.getContext()
+        .getLanguage()));
+
+    OBContext.setAdminMode();
+    try {
+      // retrieve custom params
+      final String strAction = (String) bundle.getParams().get("action");
+
+      // retrieve standard params
+      String recordID = (String) bundle.getParams().get("FIN_Doubtful_Debt_ID");
+
+      final DoubtfulDebt doubtfulDebt = dao.getObject(DoubtfulDebt.class, recordID);
+      final VariablesSecureApp vars = bundle.getContext().toVars();
+      final ConnectionProvider conProvider = bundle.getConnection();
+      final String language = bundle.getContext().getLanguage();
+
+      // ***********************
+      // Process Doubtful Debt
+      // ***********************
+      if (strAction.equals("P")) {
+        // Check payment exists
+        if (doubtfulDebt.getFINPaymentSchedule().getOutstandingAmount()
+            .compareTo(doubtfulDebt.getAmount()) < 0) {
+          msg.setType("Error");
+          msg.setTitle(Utility.messageBD(conProvider, "Error", language));
+          msg.setMessage(Utility.parseTranslation(conProvider, vars, language,
+              "@APRM_PaymentExists@"));
+          bundle.setResult(msg);
+          return;
+        }
+        updateDoubtfulDebtScheduleDetails(doubtfulDebt.getFINPaymentSchedule(),
+            doubtfulDebt.getAmount());
+        doubtfulDebt.setProcessed(true);
+        doubtfulDebt.setAPRMProcess("R");
+        OBDal.getInstance().save(doubtfulDebt);
+        OBDal.getInstance().flush();
+
+        // ***********************
+        // Reactivate Doubtful Debt
+        // ***********************
+      } else if (strAction.equals("R")) {
+        // Already Posted Document
+        if ("Y".equals(doubtfulDebt.getPosted())) {
+          msg.setType("Error");
+          msg.setTitle(Utility.messageBD(conProvider, "Error", language));
+          msg.setMessage(Utility.parseTranslation(conProvider, vars, language, "@PostedDocument@"));
+          bundle.setResult(msg);
+          return;
+        }
+        if (doubtfulDebt.getFINPaymentSchedule().getOutstandingAmount()
+            .compareTo(doubtfulDebt.getAmount()) < 0) {
+          msg.setType("Error");
+          msg.setTitle(Utility.messageBD(conProvider, "Error", language));
+          msg.setMessage(Utility.parseTranslation(conProvider, vars, language,
+              "@APRM_PaymentExists@"));
+          bundle.setResult(msg);
+          return;
+        }
+        updateDoubtfulDebtScheduleDetails(doubtfulDebt.getFINPaymentSchedule(), doubtfulDebt
+            .getAmount().negate());
+        doubtfulDebt.setProcessed(false);
+        OBDal.getInstance().save(doubtfulDebt);
+        OBDal.getInstance().flush();
+        doubtfulDebt.setAPRMProcess("P");
+        OBDal.getInstance().save(doubtfulDebt);
+        OBDal.getInstance().flush();
+      }
+      bundle.setResult(msg);
+    } catch (final Exception e) {
+      OBDal.getInstance().rollbackAndClose();
+      e.printStackTrace(System.err);
+      msg.setType("Error");
+      msg.setTitle(Utility.messageBD(bundle.getConnection(), "Error", bundle.getContext()
+          .getLanguage()));
+      msg.setMessage(FIN_Utility.getExceptionMessage(e));
+      bundle.setResult(msg);
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+  }
+
+  private void updateDoubtfulDebtScheduleDetails(FIN_PaymentSchedule salesInvoicePaymentSchedule,
+      BigDecimal debtAmount) {
+    for (FIN_PaymentScheduleDetail psd : salesInvoicePaymentSchedule
+        .getFINPaymentScheduleDetailInvoicePaymentScheduleList()) {
+      if (psd.getPaymentDetails() == null) {
+        // Pending amount should be greater or equals than the doubtful debt amount
+        if (psd.getAmount().compareTo(debtAmount) >= 0) {
+          psd.setDebtAmount(psd.getDebtAmount().add(debtAmount));
+          OBDal.getInstance().save(psd);
+        }
+      }
+    }
+  }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_DoubtfulDebtRunProcess.java	Thu Dec 20 20:23:07 2012 +0100
@@ -0,0 +1,126 @@
+/*
+ *************************************************************************
+ * 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) 2010-2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ *************************************************************************
+ */
+package org.openbravo.advpaymentmngt.process;
+
+import java.util.HashMap;
+
+import org.openbravo.advpaymentmngt.dao.AdvPaymentMngtDao;
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
+import org.openbravo.base.secureApp.VariablesSecureApp;
+import org.openbravo.dal.core.OBContext;
+import org.openbravo.dal.service.OBDal;
+import org.openbravo.database.ConnectionProvider;
+import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.Utility;
+import org.openbravo.model.financialmgmt.payment.DoubtfulDebt;
+import org.openbravo.model.financialmgmt.payment.DoubtfulDebtRun;
+import org.openbravo.scheduling.ProcessBundle;
+
+public class FIN_DoubtfulDebtRunProcess implements org.openbravo.scheduling.Process {
+  private static AdvPaymentMngtDao dao;
+
+  public void execute(ProcessBundle bundle) throws Exception {
+    dao = new AdvPaymentMngtDao();
+    OBError msg = new OBError();
+    msg.setType("Success");
+    msg.setTitle(Utility.messageBD(bundle.getConnection(), "Success", bundle.getContext()
+        .getLanguage()));
+
+    OBContext.setAdminMode();
+    try {
+      // retrieve custom params
+      final String strAction = (String) bundle.getParams().get("action");
+
+      // retrieve standard params
+      String recordID = (String) bundle.getParams().get("FIN_Doubtful_Debt_Run_ID");
+
+      final DoubtfulDebtRun doubtfulDebtRun = dao.getObject(DoubtfulDebtRun.class, recordID);
+      final VariablesSecureApp vars = bundle.getContext().toVars();
+      final ConnectionProvider conProvider = bundle.getConnection();
+      final String language = bundle.getContext().getLanguage();
+
+      // *************************
+      // Process Doubtful Debt Run
+      // *************************
+      if (strAction.equals("P")) {
+        // Check lines exists
+        if (doubtfulDebtRun.getFINDoubtfulDebtList().size() == 0) {
+          msg.setType("Error");
+          msg.setTitle(Utility.messageBD(conProvider, "Error", language));
+          msg.setMessage(Utility.parseTranslation(conProvider, vars, language, "@APRM_NoLines@"));
+          bundle.setResult(msg);
+          return;
+        }
+        for (DoubtfulDebt ddb : doubtfulDebtRun.getFINDoubtfulDebtList()) {
+          if (!ddb.isProcessed()) {
+            OBError result = processDoubtfulDebt(vars, conProvider, ddb, strAction);
+            if ("error".equals(result.getType())) {
+              bundle.setResult(result);
+              return;
+            }
+          }
+        }
+        doubtfulDebtRun.setAPRMProcess("R");
+        doubtfulDebtRun.setProcessed(true);
+        OBDal.getInstance().save(doubtfulDebtRun);
+        // ****************************
+        // Reactivate Doubtful Debt Run
+        // ****************************
+      } else if (strAction.equals("R")) {
+        // Already Posted Document
+        for (DoubtfulDebt ddb : doubtfulDebtRun.getFINDoubtfulDebtList()) {
+          if (ddb.isProcessed()) {
+            OBError result = processDoubtfulDebt(vars, conProvider, ddb, strAction);
+            if ("error".equals(result.getType())) {
+              bundle.setResult(result);
+              return;
+            }
+          }
+        }
+        doubtfulDebtRun.setAPRMProcess("P");
+        doubtfulDebtRun.setProcessed(false);
+        OBDal.getInstance().save(doubtfulDebtRun);
+      }
+      bundle.setResult(msg);
+    } catch (final Exception e) {
+      OBDal.getInstance().rollbackAndClose();
+      e.printStackTrace(System.err);
+      msg.setType("Error");
+      msg.setTitle(Utility.messageBD(bundle.getConnection(), "Error", bundle.getContext()
+          .getLanguage()));
+      msg.setMessage(FIN_Utility.getExceptionMessage(e));
+      bundle.setResult(msg);
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+  }
+
+  private OBError processDoubtfulDebt(VariablesSecureApp vars, ConnectionProvider conn,
+      DoubtfulDebt ddb, String strAction) throws Exception {
+    ProcessBundle pb = new ProcessBundle("017312F51139438A9665775E3B5392A1", vars).init(conn);
+    HashMap<String, Object> parameters = new HashMap<String, Object>();
+    parameters.put("action", strAction);
+    parameters.put("FIN_Doubtful_Debt_ID", ddb.getId());
+    pb.setParams(parameters);
+    OBError myMessage = null;
+    new FIN_DoubtfulDebtProcess().execute(pb);
+    myMessage = (OBError) pb.getResult();
+    return myMessage;
+  }
+}
--- a/src-db/database/model/functions/C_ACCTSCHEMA_DEFAULT_COPY.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/model/functions/C_ACCTSCHEMA_DEFAULT_COPY.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -177,7 +177,9 @@
         UnEarnedRevenue_Acct=Cur_Acct.UnEarnedRevenue_Acct,
         NotInvoicedRevenue_Acct=Cur_Acct.NotInvoicedRevenue_Acct,
         NotInvoicedReceivables_Acct=Cur_Acct.NotInvoicedReceivables_Acct,
+        DoubtfulDebt_Acct=Cur_Acct.DoubtfulDebt_Acct,
         BadDebtExpense_Acct=Cur_Acct.BadDebtExpense_Acct,
+        BadDebtRevenue_Acct=Cur_Acct.BadDebtRevenue_Acct,
         AllowanceForDoubtful_Acct=Cur_Acct.AllowanceForDoubtful_Acct,
         Updated=now(),
         UpdatedBy='0'
@@ -200,7 +202,7 @@
           V_Liability_Services_Acct, V_PrePayment_Acct, PayDiscount_Exp_Acct, PayDiscount_Rev_Acct,
           WriteOff_Acct, WriteOff_Rev_Acct, UnRealizedGain_Acct, UnRealizedLoss_Acct, RealizedGain_Acct,
           RealizedLoss_Acct, NotInvoicedReceipts_Acct, UnEarnedRevenue_Acct, NotInvoicedRevenue_Acct,
-          NotInvoicedReceivables_Acct, BadDebtExpense_Acct, AllowanceForDoubtful_Acct
+          NotInvoicedReceivables_Acct, DoubtfulDebt_Acct, BadDebtExpense_Acct, BadDebtRevenue_Acct, AllowanceForDoubtful_Acct
         )
       SELECT get_uuid(), x.C_BP_Group_ID,
         Cur_Acct.C_AcctSchema_ID, x.AD_Client_ID, x.AD_Org_ID, 'Y',
@@ -209,7 +211,7 @@
         Cur_Acct.V_PrePayment_Acct, Cur_Acct.PayDiscount_Exp_Acct, Cur_Acct.PayDiscount_Rev_Acct, Cur_Acct.WriteOff_Acct, Cur_Acct.WriteOff_Rev_Acct,
         Cur_Acct.UnRealizedGain_Acct, Cur_Acct.UnRealizedLoss_Acct, Cur_Acct.RealizedGain_Acct, Cur_Acct.RealizedLoss_Acct,
         Cur_Acct.NotInvoicedReceipts_Acct, Cur_Acct.UnEarnedRevenue_Acct, Cur_Acct.NotInvoicedRevenue_Acct, 
-        Cur_Acct.NotInvoicedReceivables_Acct, Cur_Acct.BadDebtExpense_Acct, Cur_Acct.AllowanceForDoubtful_Acct
+        Cur_Acct.NotInvoicedReceivables_Acct, Cur_Acct.DoubtfulDebt_Acct, Cur_Acct.BadDebtExpense_Acct, Cur_Acct.BadDebtRevenue_Acct, Cur_Acct.AllowanceForDoubtful_Acct
       FROM C_BP_Group x
       WHERE AD_Client_ID=Cur_Acct.AD_Client_ID
         AND NOT EXISTS
--- a/src-db/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -305,10 +305,18 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="DOUBTFULDEBT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <column name="BADDEBTEXPENSE_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="BADDEBTREVENUE_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <column name="ALLOWANCEFORDOUBTFUL_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
@@ -319,6 +327,18 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCH_DEF_P_SALEPRICE">
         <reference local="P_DEF_EXPENSE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCHEMA_DEF_ALLOWANCE">
+        <reference local="ALLOWANCEFORDOUBTFUL_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCHEMA_DEF_BADDEBTEXP">
+        <reference local="BADDEBTEXPENSE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCHEMA_DEF_BADDEBTREV">
+        <reference local="BADDEBTREVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCHEMA_DEF_DOUBTFUL">
+        <reference local="DOUBTFULDEBT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCHEMA_DEF_WRITEOFF_REV">
         <reference local="WRITEOFF_REV_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
--- a/src-db/database/model/tables/C_BP_GROUP_ACCT.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/model/tables/C_BP_GROUP_ACCT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -117,10 +117,18 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="DOUBTFULDEBT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <column name="BADDEBTEXPENSE_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="BADDEBTREVENUE_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <column name="ALLOWANCEFORDOUBTFUL_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
@@ -134,9 +142,12 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_ALLOWANCE">
         <reference local="ALLOWANCEFORDOUBTFUL_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_BADDEBTEXPENSE">
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_BADDEBTEXP">
         <reference local="BADDEBTEXPENSE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_BADDEBTREV">
+        <reference local="BADDEBTREVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="C_BP_GROUP_ACCT_C_ACCTSCHEMA" onDelete="cascade">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
@@ -149,6 +160,9 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_C_RECEIVABLE_A">
         <reference local="C_RECEIVABLE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_DOUBTFUL">
+        <reference local="DOUBTFULDEBT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_NOTINVOICEDRE1">
         <reference local="NOTINVOICEDRECEIPTS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
--- a/src-db/database/model/tables/FIN_DOUBTFUL_DEBT_RUN.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/model/tables/FIN_DOUBTFUL_DEBT_RUN.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -62,7 +62,7 @@
         <onCreateDefault/>
       </column>
       <column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
-        <default><![CDATA[Y]]></default>
+        <default><![CDATA[N]]></default>
         <onCreateDefault/>
       </column>
       <foreign-key foreignTable="C_BPARTNER" name="FIN_DOUBTFUL_DEBT_RUN_BP">
--- a/src-db/database/model/views/FIN_DOUBTFUL_DEBT_V.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/model/views/FIN_DOUBTFUL_DEBT_V.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -1,4 +1,4 @@
 <?xml version="1.0"?>
   <database name="VIEW FIN_DOUBTFUL_DEBT_V">
-    <view name="FIN_DOUBTFUL_DEBT_V"><![CDATA[SELECT ps.fin_payment_schedule_id AS fin_doubtful_debt_v_id, ps.ad_client_id, ps.ad_org_id, ps.isactive, ps.created, ps.createdby, ps.updated, ps.updatedby, inv.documentno, inv.c_bpartner_id, bp.c_bp_group_id, inv.dateinvoiced, inv.fin_paymentmethod_id, inv.c_currency_id, ps.duedate, ps.amount, ps.outstandingamt - sum(COALESCE(dd.amount, 0)) AS outstandingamt, ps.outstandingamt - sum(COALESCE(dd.amount, 0)) AS doubtfuldebt_amount, trunc(now()) - trunc(ps.duedate) AS daysoverdue, dd.fin_doubtful_debt_run_id, dd.fin_doubtful_debt_id,  CASE WHEN dd.fin_doubtful_debt_run_id IS NULL THEN 'N' ELSE 'Y' END AS ob_selected FROM fin_payment_schedule ps JOIN c_invoice inv ON ps.c_invoice_id = inv.c_invoice_id JOIN c_bpartner bp ON inv.c_bpartner_id = bp.c_bpartner_id LEFT JOIN fin_doubtful_debt dd ON dd.fin_payment_schedule_id = ps.fin_payment_schedule_id WHERE ps.outstandingamt > 0 AND inv.issotrx = 'Y' GROUP BY ps.fin_payment_schedule_id, ps.ad_client_id, ps.ad_org_id, ps.isactive, ps.created, ps.createdby, ps.updated, ps.updatedby, inv.documentno, inv.c_bpartner_id, bp.c_bp_group_id, inv.dateinvoiced, inv.fin_paymentmethod_id, inv.c_currency_id, ps.duedate, ps.amount, ps.outstandingamt, dd.amount, trunc(now()) - trunc(ps.duedate), dd.fin_doubtful_debt_run_id, dd.fin_payment_schedule_id, dd.fin_doubtful_debt_id]]></view>
+    <view name="FIN_DOUBTFUL_DEBT_V"><![CDATA[SELECT ps.fin_payment_schedule_id AS fin_doubtful_debt_v_id, ps.ad_client_id, ps.ad_org_id, ps.isactive, ps.created, ps.createdby, ps.updated, ps.updatedby, inv.documentno, inv.c_bpartner_id, bp.c_bp_group_id, inv.dateinvoiced, inv.fin_paymentmethod_id, inv.c_currency_id, ps.duedate, ps.amount, ps.outstandingamt, sum(COALESCE(dd.amount, 0)) AS doubtfuldebt_amount, trunc(now()) - trunc(ps.duedate) AS daysoverdue, dd.fin_doubtful_debt_run_id, dd.fin_doubtful_debt_id,  CASE WHEN dd.fin_doubtful_debt_run_id IS NULL THEN 'N' ELSE 'Y' END AS ob_selected FROM fin_payment_schedule ps JOIN c_invoice inv ON ps.c_invoice_id = inv.c_invoice_id JOIN c_bpartner bp ON inv.c_bpartner_id = bp.c_bpartner_id LEFT JOIN fin_doubtful_debt dd ON dd.fin_payment_schedule_id = ps.fin_payment_schedule_id WHERE ps.outstandingamt > 0 AND inv.issotrx = 'Y' GROUP BY ps.fin_payment_schedule_id, ps.ad_client_id, ps.ad_org_id, ps.isactive, ps.created, ps.createdby, ps.updated, ps.updatedby, inv.documentno, inv.c_bpartner_id, bp.c_bp_group_id, inv.dateinvoiced, inv.fin_paymentmethod_id, inv.c_currency_id, ps.duedate, ps.amount, ps.outstandingamt, dd.amount, trunc(now()) - trunc(ps.duedate), dd.fin_doubtful_debt_run_id, dd.fin_payment_schedule_id, dd.fin_doubtful_debt_id UNION  SELECT ps.fin_payment_schedule_id AS fin_doubtful_debt_v_id, ps.ad_client_id, ps.ad_org_id, ps.isactive, ps.created, ps.createdby, ps.updated, ps.updatedby, inv.documentno, inv.c_bpartner_id, bp.c_bp_group_id, inv.dateinvoiced, inv.fin_paymentmethod_id, inv.c_currency_id, ps.duedate, ps.amount, ps.outstandingamt - sum(COALESCE(dd.amount, 0)) AS outstandingamt, 0 AS doubtfuldebt_amount, trunc(now()) - trunc(ps.duedate) AS daysoverdue, '' AS fin_doubtful_debt_run_id, '' AS fin_doubtful_debt_id, 'N' AS ob_selected FROM fin_payment_schedule ps JOIN c_invoice inv ON ps.c_invoice_id = inv.c_invoice_id JOIN c_bpartner bp ON inv.c_bpartner_id = bp.c_bpartner_id LEFT JOIN fin_doubtful_debt dd ON dd.fin_payment_schedule_id = ps.fin_payment_schedule_id WHERE ps.outstandingamt > 0 AND inv.issotrx = 'Y' AND dd.processed = 'Y' GROUP BY ps.fin_payment_schedule_id, ps.ad_client_id, ps.ad_org_id, ps.isactive, ps.created, ps.createdby, ps.updated, ps.updatedby, inv.documentno, inv.c_bpartner_id, bp.c_bp_group_id, inv.dateinvoiced, inv.fin_paymentmethod_id, inv.c_currency_id, ps.duedate, ps.amount, ps.outstandingamt, dd.amount, trunc(now()) - trunc(ps.duedate), dd.fin_payment_schedule_id]]></view>
   </database>
--- a/src-db/database/sourcedata/AD_AUXILIARINPUT.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_AUXILIARINPUT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -1786,6 +1786,17 @@
 <!--6DDE5291DEB245BAB84FFD042AE66D4C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--6DDE5291DEB245BAB84FFD042AE66D4C--></AD_AUXILIARINPUT>
 
+<!--6EAE0966610441BD8E24130C8BE05420--><AD_AUXILIARINPUT>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <AD_AUXILIARINPUT_ID><![CDATA[6EAE0966610441BD8E24130C8BE05420]]></AD_AUXILIARINPUT_ID>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <AD_TAB_ID><![CDATA[9D859A2A50F44562AFA21AAF2DF91B8A]]></AD_TAB_ID>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <NAME><![CDATA[DOCBASETYPE]]></NAME>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <CODE><![CDATA[DDB]]></CODE>
+<!--6EAE0966610441BD8E24130C8BE05420-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--6EAE0966610441BD8E24130C8BE05420--></AD_AUXILIARINPUT>
+
 <!--73D51596EFE24463998E153F8D444C0A--><AD_AUXILIARINPUT>
 <!--73D51596EFE24463998E153F8D444C0A-->  <AD_AUXILIARINPUT_ID><![CDATA[73D51596EFE24463998E153F8D444C0A]]></AD_AUXILIARINPUT_ID>
 <!--73D51596EFE24463998E153F8D444C0A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -1841,6 +1852,17 @@
 <!--7A6DD0A1AF304BE288BBFBE305EA1227-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--7A6DD0A1AF304BE288BBFBE305EA1227--></AD_AUXILIARINPUT>
 
+<!--7D346805BA6E47729FCD4E45C4F3B652--><AD_AUXILIARINPUT>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <AD_AUXILIARINPUT_ID><![CDATA[7D346805BA6E47729FCD4E45C4F3B652]]></AD_AUXILIARINPUT_ID>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <AD_TAB_ID><![CDATA[E4DC11F751F34F0DAE11A4D856CD99EB]]></AD_TAB_ID>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <NAME><![CDATA[DOCBASETYPE]]></NAME>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <CODE><![CDATA[DDB]]></CODE>
+<!--7D346805BA6E47729FCD4E45C4F3B652-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--7D346805BA6E47729FCD4E45C4F3B652--></AD_AUXILIARINPUT>
+
 <!--7E3FB488115E46C5937FDF8A73D36098--><AD_AUXILIARINPUT>
 <!--7E3FB488115E46C5937FDF8A73D36098-->  <AD_AUXILIARINPUT_ID><![CDATA[7E3FB488115E46C5937FDF8A73D36098]]></AD_AUXILIARINPUT_ID>
 <!--7E3FB488115E46C5937FDF8A73D36098-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -220280,7 +220280,7 @@
 <!--026810E03C274CD9A01DC0C688C78EF2-->  <AD_TABLE_ID><![CDATA[4D25087A4BD74E1D9E528CB5491D94DC]]></AD_TABLE_ID>
 <!--026810E03C274CD9A01DC0C688C78EF2-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
 <!--026810E03C274CD9A01DC0C688C78EF2-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
-<!--026810E03C274CD9A01DC0C688C78EF2-->  <DEFAULTVALUE><![CDATA[Y]]></DEFAULTVALUE>
+<!--026810E03C274CD9A01DC0C688C78EF2-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
 <!--026810E03C274CD9A01DC0C688C78EF2-->  <ISKEY><![CDATA[N]]></ISKEY>
 <!--026810E03C274CD9A01DC0C688C78EF2-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--026810E03C274CD9A01DC0C688C78EF2-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
@@ -220962,6 +220962,9 @@
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <NAME><![CDATA[Bad Debt Expense Account]]></NAME>
+<!--05C088F54F974D8482C0DFDAE726D0C5-->  <DESCRIPTION><![CDATA[Account used to book the expense related to a bad debt]]></DESCRIPTION>
+<!--05C088F54F974D8482C0DFDAE726D0C5-->  <HELP><![CDATA[        BadDebtExpense_Acct=Cur_Acct.BadDebtExpense_Acct,
+]]></HELP>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <COLUMNNAME><![CDATA[BadDebtExpense_Acct]]></COLUMNNAME>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <AD_TABLE_ID><![CDATA[395]]></AD_TABLE_ID>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
@@ -220982,7 +220985,7 @@
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--05C088F54F974D8482C0DFDAE726D0C5-->  <POSITION><![CDATA[30]]></POSITION>
+<!--05C088F54F974D8482C0DFDAE726D0C5-->  <POSITION><![CDATA[31]]></POSITION>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--05C088F54F974D8482C0DFDAE726D0C5-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -221376,6 +221379,42 @@
 <!--09A651EB04074B3781FFC9BA21EAAEDD-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--09A651EB04074B3781FFC9BA21EAAEDD--></AD_COLUMN>
 
+<!--09AB724293CC48A8AE66A9454BBF54BA--><AD_COLUMN>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_COLUMN_ID><![CDATA[09AB724293CC48A8AE66A9454BBF54BA]]></AD_COLUMN_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <NAME><![CDATA[Bad Debt Revenue Account]]></NAME>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <DESCRIPTION><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></DESCRIPTION>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <HELP><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></HELP>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <COLUMNNAME><![CDATA[Baddebtrevenue_Acct]]></COLUMNNAME>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_TABLE_ID><![CDATA[395]]></AD_TABLE_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_REFERENCE_VALUE_ID><![CDATA[4FA73FBEF8CE4A54926DDD317E385486]]></AD_REFERENCE_VALUE_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <SEQNO><![CDATA[61]]></SEQNO>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_ELEMENT_ID><![CDATA[E4510E6E8EC344A591E5AE299B16DA42]]></AD_ELEMENT_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <POSITION><![CDATA[32]]></POSITION>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--09AB724293CC48A8AE66A9454BBF54BA-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--09AB724293CC48A8AE66A9454BBF54BA--></AD_COLUMN>
+
 <!--0A82E8FF49E9440DA521F0EFB4EE1F9E--><AD_COLUMN>
 <!--0A82E8FF49E9440DA521F0EFB4EE1F9E-->  <AD_COLUMN_ID><![CDATA[0A82E8FF49E9440DA521F0EFB4EE1F9E]]></AD_COLUMN_ID>
 <!--0A82E8FF49E9440DA521F0EFB4EE1F9E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -228794,7 +228833,7 @@
 <!--36D80698B9BF4F46BB523AC48EBA40CD-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--36D80698B9BF4F46BB523AC48EBA40CD-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--36D80698B9BF4F46BB523AC48EBA40CD-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--36D80698B9BF4F46BB523AC48EBA40CD-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--36D80698B9BF4F46BB523AC48EBA40CD-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--36D80698B9BF4F46BB523AC48EBA40CD-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--36D80698B9BF4F46BB523AC48EBA40CD-->  <SEQNO><![CDATA[230]]></SEQNO>
 <!--36D80698B9BF4F46BB523AC48EBA40CD-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -229165,6 +229204,42 @@
 <!--3A16C1B9091E405CAC360CA606716C33-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--3A16C1B9091E405CAC360CA606716C33--></AD_COLUMN>
 
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508--><AD_COLUMN>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_COLUMN_ID><![CDATA[3A1958E28DFF43AE9FE5F9DFA11A9508]]></AD_COLUMN_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <NAME><![CDATA[Doubtful Debt Account]]></NAME>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <DESCRIPTION><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></DESCRIPTION>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <HELP><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></HELP>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <COLUMNNAME><![CDATA[DoubtfulDebt_Acct]]></COLUMNNAME>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_TABLE_ID><![CDATA[315]]></AD_TABLE_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_REFERENCE_VALUE_ID><![CDATA[4FA73FBEF8CE4A54926DDD317E385486]]></AD_REFERENCE_VALUE_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <SEQNO><![CDATA[131]]></SEQNO>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_ELEMENT_ID><![CDATA[F2D48C18F40D4F1AB4EB9B42BDC76004]]></AD_ELEMENT_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <POSITION><![CDATA[77]]></POSITION>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--3A1958E28DFF43AE9FE5F9DFA11A9508--></AD_COLUMN>
+
 <!--3A2DB7BEE682477C8A06749FFCF25B26--><AD_COLUMN>
 <!--3A2DB7BEE682477C8A06749FFCF25B26-->  <AD_COLUMN_ID><![CDATA[3A2DB7BEE682477C8A06749FFCF25B26]]></AD_COLUMN_ID>
 <!--3A2DB7BEE682477C8A06749FFCF25B26-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -231985,7 +232060,7 @@
 <!--498B93AAE2D44F72AD3819F840298465-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--498B93AAE2D44F72AD3819F840298465-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--498B93AAE2D44F72AD3819F840298465-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--498B93AAE2D44F72AD3819F840298465-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--498B93AAE2D44F72AD3819F840298465-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--498B93AAE2D44F72AD3819F840298465-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--498B93AAE2D44F72AD3819F840298465-->  <SEQNO><![CDATA[300]]></SEQNO>
 <!--498B93AAE2D44F72AD3819F840298465-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -232293,6 +232368,42 @@
 <!--4BDAB25F4E75423DBF487DA8533282BD-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--4BDAB25F4E75423DBF487DA8533282BD--></AD_COLUMN>
 
+<!--4C34FD5CD5F947049A55B6CCEFA15960--><AD_COLUMN>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_COLUMN_ID><![CDATA[4C34FD5CD5F947049A55B6CCEFA15960]]></AD_COLUMN_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <NAME><![CDATA[Doubtful Debt Account]]></NAME>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <DESCRIPTION><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></DESCRIPTION>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <HELP><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></HELP>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <COLUMNNAME><![CDATA[Doubtfuldebt_Acct]]></COLUMNNAME>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_TABLE_ID><![CDATA[395]]></AD_TABLE_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_REFERENCE_VALUE_ID><![CDATA[4FA73FBEF8CE4A54926DDD317E385486]]></AD_REFERENCE_VALUE_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <SEQNO><![CDATA[71]]></SEQNO>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_ELEMENT_ID><![CDATA[F2D48C18F40D4F1AB4EB9B42BDC76004]]></AD_ELEMENT_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <POSITION><![CDATA[30]]></POSITION>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--4C34FD5CD5F947049A55B6CCEFA15960-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--4C34FD5CD5F947049A55B6CCEFA15960--></AD_COLUMN>
+
 <!--4C935385499E485989264EA4AA71E60A--><AD_COLUMN>
 <!--4C935385499E485989264EA4AA71E60A-->  <AD_COLUMN_ID><![CDATA[4C935385499E485989264EA4AA71E60A]]></AD_COLUMN_ID>
 <!--4C935385499E485989264EA4AA71E60A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -232451,7 +232562,6 @@
 <!--4E710A3312D448C2B4716EBC30057C58-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--4E710A3312D448C2B4716EBC30057C58-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--4E710A3312D448C2B4716EBC30057C58-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--4E710A3312D448C2B4716EBC30057C58-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
 <!--4E710A3312D448C2B4716EBC30057C58-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--4E710A3312D448C2B4716EBC30057C58-->  <SEQNO><![CDATA[220]]></SEQNO>
 <!--4E710A3312D448C2B4716EBC30057C58-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -254272,6 +254382,8 @@
 <!--6BBE458716F14497A210D2857A48E904-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--6BBE458716F14497A210D2857A48E904-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--6BBE458716F14497A210D2857A48E904-->  <NAME><![CDATA[Allowance For Doubtful Debt Account]]></NAME>
+<!--6BBE458716F14497A210D2857A48E904-->  <DESCRIPTION><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount. in balance sheet.]]></DESCRIPTION>
+<!--6BBE458716F14497A210D2857A48E904-->  <HELP><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount in balance sheet.]]></HELP>
 <!--6BBE458716F14497A210D2857A48E904-->  <COLUMNNAME><![CDATA[AllowanceForDoubtful_Acct]]></COLUMNNAME>
 <!--6BBE458716F14497A210D2857A48E904-->  <AD_TABLE_ID><![CDATA[395]]></AD_TABLE_ID>
 <!--6BBE458716F14497A210D2857A48E904-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
@@ -254292,7 +254404,7 @@
 <!--6BBE458716F14497A210D2857A48E904-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--6BBE458716F14497A210D2857A48E904-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--6BBE458716F14497A210D2857A48E904-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--6BBE458716F14497A210D2857A48E904-->  <POSITION><![CDATA[31]]></POSITION>
+<!--6BBE458716F14497A210D2857A48E904-->  <POSITION><![CDATA[33]]></POSITION>
 <!--6BBE458716F14497A210D2857A48E904-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--6BBE458716F14497A210D2857A48E904-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--6BBE458716F14497A210D2857A48E904-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -287825,7 +287937,7 @@
 <!--A4F7A8BB2AEF496882D8A1F280944C55-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--A4F7A8BB2AEF496882D8A1F280944C55-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--A4F7A8BB2AEF496882D8A1F280944C55-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--A4F7A8BB2AEF496882D8A1F280944C55-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--A4F7A8BB2AEF496882D8A1F280944C55-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--A4F7A8BB2AEF496882D8A1F280944C55-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--A4F7A8BB2AEF496882D8A1F280944C55-->  <SEQNO><![CDATA[240]]></SEQNO>
 <!--A4F7A8BB2AEF496882D8A1F280944C55-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -288067,6 +288179,8 @@
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <NAME><![CDATA[Allowance For Doubtful Debt Account]]></NAME>
+<!--A5D0773E826543EC8E54D4B2D394297F-->  <DESCRIPTION><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount. in balance sheet.]]></DESCRIPTION>
+<!--A5D0773E826543EC8E54D4B2D394297F-->  <HELP><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount in balance sheet.]]></HELP>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <COLUMNNAME><![CDATA[Allowancefordoubtful_Acct]]></COLUMNNAME>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <AD_TABLE_ID><![CDATA[315]]></AD_TABLE_ID>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
@@ -288087,7 +288201,7 @@
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--A5D0773E826543EC8E54D4B2D394297F-->  <POSITION><![CDATA[78]]></POSITION>
+<!--A5D0773E826543EC8E54D4B2D394297F-->  <POSITION><![CDATA[80]]></POSITION>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A5D0773E826543EC8E54D4B2D394297F-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -294615,7 +294729,7 @@
 <!--B41629F9ED3F442D9610925CFB36FAC2-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--B41629F9ED3F442D9610925CFB36FAC2-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--B41629F9ED3F442D9610925CFB36FAC2-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--B41629F9ED3F442D9610925CFB36FAC2-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--B41629F9ED3F442D9610925CFB36FAC2-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--B41629F9ED3F442D9610925CFB36FAC2-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--B41629F9ED3F442D9610925CFB36FAC2-->  <SEQNO><![CDATA[250]]></SEQNO>
 <!--B41629F9ED3F442D9610925CFB36FAC2-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -297138,7 +297252,7 @@
 <!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <SEQNO><![CDATA[140]]></SEQNO>
 <!--BA4CE0755A044CF9A0651F4CD3814ACC-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -298804,7 +298918,6 @@
 <!--BE12307E6CC447618938F7277E1F1226-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--BE12307E6CC447618938F7277E1F1226-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--BE12307E6CC447618938F7277E1F1226-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--BE12307E6CC447618938F7277E1F1226-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
 <!--BE12307E6CC447618938F7277E1F1226-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--BE12307E6CC447618938F7277E1F1226-->  <SEQNO><![CDATA[110]]></SEQNO>
 <!--BE12307E6CC447618938F7277E1F1226-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -299338,7 +299451,7 @@
 <!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <SEQNO><![CDATA[280]]></SEQNO>
 <!--C1EFF0F3A7284E06BFAD3A39CDB83B4B-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -299792,7 +299905,7 @@
 <!--C4978F8633004EDC9A0B989B28C03DF7-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--C4978F8633004EDC9A0B989B28C03DF7-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--C4978F8633004EDC9A0B989B28C03DF7-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--C4978F8633004EDC9A0B989B28C03DF7-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
+<!--C4978F8633004EDC9A0B989B28C03DF7-->  <READONLYLOGIC><![CDATA[@Posted@='Y']]></READONLYLOGIC>
 <!--C4978F8633004EDC9A0B989B28C03DF7-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--C4978F8633004EDC9A0B989B28C03DF7-->  <SEQNO><![CDATA[290]]></SEQNO>
 <!--C4978F8633004EDC9A0B989B28C03DF7-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -307945,7 +308058,6 @@
 <!--DC72625673704A9F8685D7F37C716707-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--DC72625673704A9F8685D7F37C716707-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--DC72625673704A9F8685D7F37C716707-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--DC72625673704A9F8685D7F37C716707-->  <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
 <!--DC72625673704A9F8685D7F37C716707-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--DC72625673704A9F8685D7F37C716707-->  <SEQNO><![CDATA[120]]></SEQNO>
 <!--DC72625673704A9F8685D7F37C716707-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -308962,6 +309074,42 @@
 <!--E2E9E8F2BAE14162BE6C6002242B5941-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--E2E9E8F2BAE14162BE6C6002242B5941--></AD_COLUMN>
 
+<!--E30E4E5B99734191B97AC24D9FF68F80--><AD_COLUMN>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_COLUMN_ID><![CDATA[E30E4E5B99734191B97AC24D9FF68F80]]></AD_COLUMN_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <NAME><![CDATA[Bad Debt Revenue Account]]></NAME>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <DESCRIPTION><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></DESCRIPTION>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <HELP><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></HELP>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <COLUMNNAME><![CDATA[BadDebtRevenue_Acct]]></COLUMNNAME>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_TABLE_ID><![CDATA[315]]></AD_TABLE_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_REFERENCE_VALUE_ID><![CDATA[4FA73FBEF8CE4A54926DDD317E385486]]></AD_REFERENCE_VALUE_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <SEQNO><![CDATA[121]]></SEQNO>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_ELEMENT_ID><![CDATA[E4510E6E8EC344A591E5AE299B16DA42]]></AD_ELEMENT_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <POSITION><![CDATA[79]]></POSITION>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--E30E4E5B99734191B97AC24D9FF68F80-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--E30E4E5B99734191B97AC24D9FF68F80--></AD_COLUMN>
+
 <!--E33846D308F641369E45B3FE1E5F5B2F--><AD_COLUMN>
 <!--E33846D308F641369E45B3FE1E5F5B2F-->  <AD_COLUMN_ID><![CDATA[E33846D308F641369E45B3FE1E5F5B2F]]></AD_COLUMN_ID>
 <!--E33846D308F641369E45B3FE1E5F5B2F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -309995,6 +310143,9 @@
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <NAME><![CDATA[Bad Debt Expense Account]]></NAME>
+<!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <DESCRIPTION><![CDATA[Account used to book the expense related to a bad debt]]></DESCRIPTION>
+<!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <HELP><![CDATA[        BadDebtExpense_Acct=Cur_Acct.BadDebtExpense_Acct,
+]]></HELP>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <COLUMNNAME><![CDATA[Baddebtexpense_Acct]]></COLUMNNAME>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <AD_TABLE_ID><![CDATA[315]]></AD_TABLE_ID>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <AD_REFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></AD_REFERENCE_ID>
@@ -310015,7 +310166,7 @@
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <POSITION><![CDATA[77]]></POSITION>
+<!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <POSITION><![CDATA[78]]></POSITION>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--ECD12BAFE5A1495FAE68E32508E8ED05-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
--- a/src-db/database/sourcedata/AD_DIMENSION_MAPPING.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_DIMENSION_MAPPING.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -208,6 +208,19 @@
 <!--068D7F4C4ED54798B7641EAE16375647-->  <DOCUMENTLEVEL><![CDATA[L]]></DOCUMENTLEVEL>
 <!--068D7F4C4ED54798B7641EAE16375647--></AD_DIMENSION_MAPPING>
 
+<!--07DD595AE3C8407A85DAB59DE02722C1--><AD_DIMENSION_MAPPING>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <AD_DIMENSION_MAPPING_ID><![CDATA[07DD595AE3C8407A85DAB59DE02722C1]]></AD_DIMENSION_MAPPING_ID>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <DIMENSION><![CDATA[PR]]></DIMENSION>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--07DD595AE3C8407A85DAB59DE02722C1-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--07DD595AE3C8407A85DAB59DE02722C1--></AD_DIMENSION_MAPPING>
+
 <!--085DCA9B308A43CA9807355C7037EB51--><AD_DIMENSION_MAPPING>
 <!--085DCA9B308A43CA9807355C7037EB51-->  <AD_DIMENSION_MAPPING_ID><![CDATA[085DCA9B308A43CA9807355C7037EB51]]></AD_DIMENSION_MAPPING_ID>
 <!--085DCA9B308A43CA9807355C7037EB51-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -793,6 +806,19 @@
 <!--3538EF288B0541D8AE5B66A6401E0267-->  <DOCUMENTLEVEL><![CDATA[L]]></DOCUMENTLEVEL>
 <!--3538EF288B0541D8AE5B66A6401E0267--></AD_DIMENSION_MAPPING>
 
+<!--3619408EB9C44508AD208F1CD3E7B645--><AD_DIMENSION_MAPPING>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <AD_DIMENSION_MAPPING_ID><![CDATA[3619408EB9C44508AD208F1CD3E7B645]]></AD_DIMENSION_MAPPING_ID>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <DIMENSION><![CDATA[CC]]></DIMENSION>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--3619408EB9C44508AD208F1CD3E7B645-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--3619408EB9C44508AD208F1CD3E7B645--></AD_DIMENSION_MAPPING>
+
 <!--36406DA97C5C4211917C9CCA41F97D90--><AD_DIMENSION_MAPPING>
 <!--36406DA97C5C4211917C9CCA41F97D90-->  <AD_DIMENSION_MAPPING_ID><![CDATA[36406DA97C5C4211917C9CCA41F97D90]]></AD_DIMENSION_MAPPING_ID>
 <!--36406DA97C5C4211917C9CCA41F97D90-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -858,6 +884,19 @@
 <!--39CABDA707E749468B8209C060ED2A15-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
 <!--39CABDA707E749468B8209C060ED2A15--></AD_DIMENSION_MAPPING>
 
+<!--3B3D871CE8F648F9901DA8F63CD55921--><AD_DIMENSION_MAPPING>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <AD_DIMENSION_MAPPING_ID><![CDATA[3B3D871CE8F648F9901DA8F63CD55921]]></AD_DIMENSION_MAPPING_ID>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <DIMENSION><![CDATA[BP]]></DIMENSION>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--3B3D871CE8F648F9901DA8F63CD55921-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--3B3D871CE8F648F9901DA8F63CD55921--></AD_DIMENSION_MAPPING>
+
 <!--3C116F371D5D457483269E3BC94B4E78--><AD_DIMENSION_MAPPING>
 <!--3C116F371D5D457483269E3BC94B4E78-->  <AD_DIMENSION_MAPPING_ID><![CDATA[3C116F371D5D457483269E3BC94B4E78]]></AD_DIMENSION_MAPPING_ID>
 <!--3C116F371D5D457483269E3BC94B4E78-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -1144,6 +1183,19 @@
 <!--4E729B7D5B434618B46196555B3C5515-->  <DOCUMENTLEVEL><![CDATA[BD]]></DOCUMENTLEVEL>
 <!--4E729B7D5B434618B46196555B3C5515--></AD_DIMENSION_MAPPING>
 
+<!--4F8DE292585544E4B7F4FD54C5D4072B--><AD_DIMENSION_MAPPING>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <AD_DIMENSION_MAPPING_ID><![CDATA[4F8DE292585544E4B7F4FD54C5D4072B]]></AD_DIMENSION_MAPPING_ID>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <DIMENSION><![CDATA[U2]]></DIMENSION>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--4F8DE292585544E4B7F4FD54C5D4072B-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--4F8DE292585544E4B7F4FD54C5D4072B--></AD_DIMENSION_MAPPING>
+
 <!--5015113EF0F24360969E8BE5767FA5FE--><AD_DIMENSION_MAPPING>
 <!--5015113EF0F24360969E8BE5767FA5FE-->  <AD_DIMENSION_MAPPING_ID><![CDATA[5015113EF0F24360969E8BE5767FA5FE]]></AD_DIMENSION_MAPPING_ID>
 <!--5015113EF0F24360969E8BE5767FA5FE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2379,6 +2431,19 @@
 <!--95615660C34E474DAAA68A06870F2ACD-->  <DOCUMENTLEVEL><![CDATA[L]]></DOCUMENTLEVEL>
 <!--95615660C34E474DAAA68A06870F2ACD--></AD_DIMENSION_MAPPING>
 
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA--><AD_DIMENSION_MAPPING>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <AD_DIMENSION_MAPPING_ID><![CDATA[959E66DB4C654F1FA8C7A8DBE222EDFA]]></AD_DIMENSION_MAPPING_ID>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <DIMENSION><![CDATA[U1]]></DIMENSION>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--959E66DB4C654F1FA8C7A8DBE222EDFA--></AD_DIMENSION_MAPPING>
+
 <!--9716A35895C540DCB519E148AF5F9A6B--><AD_DIMENSION_MAPPING>
 <!--9716A35895C540DCB519E148AF5F9A6B-->  <AD_DIMENSION_MAPPING_ID><![CDATA[9716A35895C540DCB519E148AF5F9A6B]]></AD_DIMENSION_MAPPING_ID>
 <!--9716A35895C540DCB519E148AF5F9A6B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2535,6 +2600,19 @@
 <!--A01BD5CEB13B4580936ED4AACF760EB2-->  <DOCUMENTLEVEL><![CDATA[L]]></DOCUMENTLEVEL>
 <!--A01BD5CEB13B4580936ED4AACF760EB2--></AD_DIMENSION_MAPPING>
 
+<!--A0AE09B817F1456C9D1D014A85A93E75--><AD_DIMENSION_MAPPING>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <AD_DIMENSION_MAPPING_ID><![CDATA[A0AE09B817F1456C9D1D014A85A93E75]]></AD_DIMENSION_MAPPING_ID>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <DIMENSION><![CDATA[MC]]></DIMENSION>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--A0AE09B817F1456C9D1D014A85A93E75-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--A0AE09B817F1456C9D1D014A85A93E75--></AD_DIMENSION_MAPPING>
+
 <!--A1787A8BD2B946478E55391ED803B30C--><AD_DIMENSION_MAPPING>
 <!--A1787A8BD2B946478E55391ED803B30C-->  <AD_DIMENSION_MAPPING_ID><![CDATA[A1787A8BD2B946478E55391ED803B30C]]></AD_DIMENSION_MAPPING_ID>
 <!--A1787A8BD2B946478E55391ED803B30C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2665,6 +2743,19 @@
 <!--A5B0CA93B3FF49C585A66AC8212B9913-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
 <!--A5B0CA93B3FF49C585A66AC8212B9913--></AD_DIMENSION_MAPPING>
 
+<!--A5C3142BAE594BE5A64552A350629C70--><AD_DIMENSION_MAPPING>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <AD_DIMENSION_MAPPING_ID><![CDATA[A5C3142BAE594BE5A64552A350629C70]]></AD_DIMENSION_MAPPING_ID>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <DIMENSION><![CDATA[PJ]]></DIMENSION>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--A5C3142BAE594BE5A64552A350629C70-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--A5C3142BAE594BE5A64552A350629C70--></AD_DIMENSION_MAPPING>
+
 <!--A64871C6556B4C8BA071A032B08AEBD4--><AD_DIMENSION_MAPPING>
 <!--A64871C6556B4C8BA071A032B08AEBD4-->  <AD_DIMENSION_MAPPING_ID><![CDATA[A64871C6556B4C8BA071A032B08AEBD4]]></AD_DIMENSION_MAPPING_ID>
 <!--A64871C6556B4C8BA071A032B08AEBD4-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -3289,6 +3380,19 @@
 <!--CE5C0722184649FFAAA2BAE4D4336739-->  <DOCUMENTLEVEL><![CDATA[L]]></DOCUMENTLEVEL>
 <!--CE5C0722184649FFAAA2BAE4D4336739--></AD_DIMENSION_MAPPING>
 
+<!--CF187E24E05B45558EF3BBAD55EFE764--><AD_DIMENSION_MAPPING>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <AD_DIMENSION_MAPPING_ID><![CDATA[CF187E24E05B45558EF3BBAD55EFE764]]></AD_DIMENSION_MAPPING_ID>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <DIMENSION><![CDATA[OO]]></DIMENSION>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--CF187E24E05B45558EF3BBAD55EFE764-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--CF187E24E05B45558EF3BBAD55EFE764--></AD_DIMENSION_MAPPING>
+
 <!--CF95F65361BF46BB8E87B79AD71F1ADF--><AD_DIMENSION_MAPPING>
 <!--CF95F65361BF46BB8E87B79AD71F1ADF-->  <AD_DIMENSION_MAPPING_ID><![CDATA[CF95F65361BF46BB8E87B79AD71F1ADF]]></AD_DIMENSION_MAPPING_ID>
 <!--CF95F65361BF46BB8E87B79AD71F1ADF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -3432,6 +3536,19 @@
 <!--DE07A861390E4405B48113C08D7D9342-->  <DOCUMENTLEVEL><![CDATA[L]]></DOCUMENTLEVEL>
 <!--DE07A861390E4405B48113C08D7D9342--></AD_DIMENSION_MAPPING>
 
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E--><AD_DIMENSION_MAPPING>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <AD_DIMENSION_MAPPING_ID><![CDATA[DE1BDD60D0CC4DEF81190B56F96AEC3E]]></AD_DIMENSION_MAPPING_ID>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <DIMENSION><![CDATA[AY]]></DIMENSION>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <DOCBASETYPE><![CDATA[DDB]]></DOCBASETYPE>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <AD_TABLE_ID><![CDATA[30721072789F410E9606D2235CB2A226]]></AD_TABLE_ID>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E-->  <DOCUMENTLEVEL><![CDATA[H]]></DOCUMENTLEVEL>
+<!--DE1BDD60D0CC4DEF81190B56F96AEC3E--></AD_DIMENSION_MAPPING>
+
 <!--DE7B4D926AD6428081D36A2D9CAC2C8D--><AD_DIMENSION_MAPPING>
 <!--DE7B4D926AD6428081D36A2D9CAC2C8D-->  <AD_DIMENSION_MAPPING_ID><![CDATA[DE7B4D926AD6428081D36A2D9CAC2C8D]]></AD_DIMENSION_MAPPING_ID>
 <!--DE7B4D926AD6428081D36A2D9CAC2C8D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -20747,6 +20747,18 @@
 <!--083F09FC1A694ECEA7AD008B2FDF900E-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--083F09FC1A694ECEA7AD008B2FDF900E--></AD_ELEMENT>
 
+<!--09644D659EAD44BCB36219CFADD5A6CE--><AD_ELEMENT>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <AD_ELEMENT_ID><![CDATA[09644D659EAD44BCB36219CFADD5A6CE]]></AD_ELEMENT_ID>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <COLUMNNAME><![CDATA[Doubtfuldebt_Acct]]></COLUMNNAME>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <NAME><![CDATA[Doubtful Debt Account]]></NAME>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <PRINTNAME><![CDATA[Doubtful Debt Account]]></PRINTNAME>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--09644D659EAD44BCB36219CFADD5A6CE-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--09644D659EAD44BCB36219CFADD5A6CE--></AD_ELEMENT>
+
 <!--09B56C6C0BF34E80A4EFDEEE4ED5DBCD--><AD_ELEMENT>
 <!--09B56C6C0BF34E80A4EFDEEE4ED5DBCD-->  <AD_ELEMENT_ID><![CDATA[09B56C6C0BF34E80A4EFDEEE4ED5DBCD]]></AD_ELEMENT_ID>
 <!--09B56C6C0BF34E80A4EFDEEE4ED5DBCD-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -21835,6 +21847,9 @@
 <!--47582E4FA8A6402F979CE4BBC47F9B71-->  <COLUMNNAME><![CDATA[BadDebtExpense_Acct]]></COLUMNNAME>
 <!--47582E4FA8A6402F979CE4BBC47F9B71-->  <NAME><![CDATA[Bad Debt Expense Account]]></NAME>
 <!--47582E4FA8A6402F979CE4BBC47F9B71-->  <PRINTNAME><![CDATA[Bad Debt Expense Account]]></PRINTNAME>
+<!--47582E4FA8A6402F979CE4BBC47F9B71-->  <DESCRIPTION><![CDATA[Account used to book the expense related to a bad debt]]></DESCRIPTION>
+<!--47582E4FA8A6402F979CE4BBC47F9B71-->  <HELP><![CDATA[        BadDebtExpense_Acct=Cur_Acct.BadDebtExpense_Acct,
+]]></HELP>
 <!--47582E4FA8A6402F979CE4BBC47F9B71-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--47582E4FA8A6402F979CE4BBC47F9B71-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--47582E4FA8A6402F979CE4BBC47F9B71--></AD_ELEMENT>
@@ -25333,6 +25348,18 @@
 <!--77237543C391C8DCE040007F0101413D-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--77237543C391C8DCE040007F0101413D--></AD_ELEMENT>
 
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C--><AD_ELEMENT>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <AD_ELEMENT_ID><![CDATA[7762F2B3F6CF40BC9BEE46042D89AB4C]]></AD_ELEMENT_ID>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <COLUMNNAME><![CDATA[Baddebtrevenue_Acct]]></COLUMNNAME>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <NAME><![CDATA[Bad Debt Revenue Account]]></NAME>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <PRINTNAME><![CDATA[Bad Debt Revenue Account]]></PRINTNAME>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--7762F2B3F6CF40BC9BEE46042D89AB4C--></AD_ELEMENT>
+
 <!--77B01E1B009F4870924FB7E73CCCC585--><AD_ELEMENT>
 <!--77B01E1B009F4870924FB7E73CCCC585-->  <AD_ELEMENT_ID><![CDATA[77B01E1B009F4870924FB7E73CCCC585]]></AD_ELEMENT_ID>
 <!--77B01E1B009F4870924FB7E73CCCC585-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -28840,6 +28867,8 @@
 <!--B31406600223471A8FE5B4C9990CFCFB-->  <COLUMNNAME><![CDATA[AllowanceForDoubtful_Acct]]></COLUMNNAME>
 <!--B31406600223471A8FE5B4C9990CFCFB-->  <NAME><![CDATA[Allowance For Doubtful Debt Account]]></NAME>
 <!--B31406600223471A8FE5B4C9990CFCFB-->  <PRINTNAME><![CDATA[Allowance For Doubtful Debt Account]]></PRINTNAME>
+<!--B31406600223471A8FE5B4C9990CFCFB-->  <DESCRIPTION><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount. in balance sheet.]]></DESCRIPTION>
+<!--B31406600223471A8FE5B4C9990CFCFB-->  <HELP><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount in balance sheet.]]></HELP>
 <!--B31406600223471A8FE5B4C9990CFCFB-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--B31406600223471A8FE5B4C9990CFCFB-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--B31406600223471A8FE5B4C9990CFCFB--></AD_ELEMENT>
@@ -30438,6 +30467,20 @@
 <!--E40BBE7C5FC544B7B4FA38A7FD8C07F3-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--E40BBE7C5FC544B7B4FA38A7FD8C07F3--></AD_ELEMENT>
 
+<!--E4510E6E8EC344A591E5AE299B16DA42--><AD_ELEMENT>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <AD_ELEMENT_ID><![CDATA[E4510E6E8EC344A591E5AE299B16DA42]]></AD_ELEMENT_ID>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <COLUMNNAME><![CDATA[BadDebtRevenue_Acct]]></COLUMNNAME>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <NAME><![CDATA[Bad Debt Revenue Account]]></NAME>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <PRINTNAME><![CDATA[Bad Debt Revenue Account]]></PRINTNAME>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <DESCRIPTION><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></DESCRIPTION>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <HELP><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></HELP>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--E4510E6E8EC344A591E5AE299B16DA42-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--E4510E6E8EC344A591E5AE299B16DA42--></AD_ELEMENT>
+
 <!--E46619B0FD944516A50C9B18E0E4E727--><AD_ELEMENT>
 <!--E46619B0FD944516A50C9B18E0E4E727-->  <AD_ELEMENT_ID><![CDATA[E46619B0FD944516A50C9B18E0E4E727]]></AD_ELEMENT_ID>
 <!--E46619B0FD944516A50C9B18E0E4E727-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -30657,6 +30700,20 @@
 <!--F197B6D6CCCE4C2F8EB42C34B560428E-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--F197B6D6CCCE4C2F8EB42C34B560428E--></AD_ELEMENT>
 
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004--><AD_ELEMENT>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <AD_ELEMENT_ID><![CDATA[F2D48C18F40D4F1AB4EB9B42BDC76004]]></AD_ELEMENT_ID>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <COLUMNNAME><![CDATA[DoubtfulDebt_Acct]]></COLUMNNAME>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <NAME><![CDATA[Doubtful Debt Account]]></NAME>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <PRINTNAME><![CDATA[Doubtful Debt Account]]></PRINTNAME>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <DESCRIPTION><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></DESCRIPTION>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <HELP><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></HELP>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--F2D48C18F40D4F1AB4EB9B42BDC76004--></AD_ELEMENT>
+
 <!--F3B77B38FDF84D7293862DF5A927783D--><AD_ELEMENT>
 <!--F3B77B38FDF84D7293862DF5A927783D-->  <AD_ELEMENT_ID><![CDATA[F3B77B38FDF84D7293862DF5A927783D]]></AD_ELEMENT_ID>
 <!--F3B77B38FDF84D7293862DF5A927783D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -32740,7 +32740,7 @@
 <!--2651-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2651-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2651-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2651-->  <SEQNO><![CDATA[380]]></SEQNO>
+<!--2651-->  <SEQNO><![CDATA[400]]></SEQNO>
 <!--2651-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--2651-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2651-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -32768,7 +32768,7 @@
 <!--2652-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2652-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2652-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2652-->  <SEQNO><![CDATA[390]]></SEQNO>
+<!--2652-->  <SEQNO><![CDATA[410]]></SEQNO>
 <!--2652-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2652-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2652-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -32827,7 +32827,7 @@
 <!--2654-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2654-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2654-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2654-->  <SEQNO><![CDATA[400]]></SEQNO>
+<!--2654-->  <SEQNO><![CDATA[420]]></SEQNO>
 <!--2654-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2654-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2654-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -32856,7 +32856,7 @@
 <!--2655-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2655-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2655-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2655-->  <SEQNO><![CDATA[90]]></SEQNO>
+<!--2655-->  <SEQNO><![CDATA[110]]></SEQNO>
 <!--2655-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2655-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2655-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -32886,7 +32886,7 @@
 <!--2656-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2656-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2656-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2656-->  <SEQNO><![CDATA[140]]></SEQNO>
+<!--2656-->  <SEQNO><![CDATA[160]]></SEQNO>
 <!--2656-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--2656-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2656-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -32916,7 +32916,7 @@
 <!--2657-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2657-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2657-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2657-->  <SEQNO><![CDATA[100]]></SEQNO>
+<!--2657-->  <SEQNO><![CDATA[120]]></SEQNO>
 <!--2657-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--2657-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2657-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -32946,7 +32946,7 @@
 <!--2658-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2658-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2658-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2658-->  <SEQNO><![CDATA[120]]></SEQNO>
+<!--2658-->  <SEQNO><![CDATA[140]]></SEQNO>
 <!--2658-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2658-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2658-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -33005,7 +33005,7 @@
 <!--2660-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2660-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2660-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2660-->  <SEQNO><![CDATA[410]]></SEQNO>
+<!--2660-->  <SEQNO><![CDATA[430]]></SEQNO>
 <!--2660-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--2660-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2660-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -33064,7 +33064,7 @@
 <!--2662-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2662-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2662-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2662-->  <SEQNO><![CDATA[190]]></SEQNO>
+<!--2662-->  <SEQNO><![CDATA[210]]></SEQNO>
 <!--2662-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2662-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2662-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -33094,7 +33094,7 @@
 <!--2663-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2663-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2663-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2663-->  <SEQNO><![CDATA[180]]></SEQNO>
+<!--2663-->  <SEQNO><![CDATA[200]]></SEQNO>
 <!--2663-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2663-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2663-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50416,7 +50416,7 @@
 <!--3821-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3821-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3821-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3821-->  <SEQNO><![CDATA[420]]></SEQNO>
+<!--3821-->  <SEQNO><![CDATA[440]]></SEQNO>
 <!--3821-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3821-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3821-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50474,7 +50474,7 @@
 <!--3823-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3823-->  <DISPLAYLENGTH><![CDATA[23]]></DISPLAYLENGTH>
 <!--3823-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3823-->  <SEQNO><![CDATA[370]]></SEQNO>
+<!--3823-->  <SEQNO><![CDATA[390]]></SEQNO>
 <!--3823-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3823-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3823-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50503,7 +50503,7 @@
 <!--3824-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3824-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3824-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3824-->  <SEQNO><![CDATA[200]]></SEQNO>
+<!--3824-->  <SEQNO><![CDATA[220]]></SEQNO>
 <!--3824-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3824-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3824-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50532,7 +50532,7 @@
 <!--3825-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3825-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3825-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3825-->  <SEQNO><![CDATA[430]]></SEQNO>
+<!--3825-->  <SEQNO><![CDATA[450]]></SEQNO>
 <!--3825-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3825-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3825-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50560,7 +50560,7 @@
 <!--3827-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3827-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3827-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3827-->  <SEQNO><![CDATA[440]]></SEQNO>
+<!--3827-->  <SEQNO><![CDATA[460]]></SEQNO>
 <!--3827-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3827-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3827-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50618,7 +50618,7 @@
 <!--3829-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3829-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3829-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3829-->  <SEQNO><![CDATA[450]]></SEQNO>
+<!--3829-->  <SEQNO><![CDATA[470]]></SEQNO>
 <!--3829-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3829-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3829-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50646,7 +50646,7 @@
 <!--3830-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3830-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3830-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3830-->  <SEQNO><![CDATA[460]]></SEQNO>
+<!--3830-->  <SEQNO><![CDATA[480]]></SEQNO>
 <!--3830-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3830-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3830-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50674,7 +50674,7 @@
 <!--3831-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3831-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3831-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3831-->  <SEQNO><![CDATA[470]]></SEQNO>
+<!--3831-->  <SEQNO><![CDATA[490]]></SEQNO>
 <!--3831-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3831-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3831-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50702,7 +50702,7 @@
 <!--3832-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3832-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3832-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3832-->  <SEQNO><![CDATA[480]]></SEQNO>
+<!--3832-->  <SEQNO><![CDATA[500]]></SEQNO>
 <!--3832-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3832-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3832-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50730,7 +50730,7 @@
 <!--3833-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3833-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3833-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3833-->  <SEQNO><![CDATA[490]]></SEQNO>
+<!--3833-->  <SEQNO><![CDATA[510]]></SEQNO>
 <!--3833-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3833-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3833-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50789,7 +50789,7 @@
 <!--3835-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3835-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3835-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3835-->  <SEQNO><![CDATA[210]]></SEQNO>
+<!--3835-->  <SEQNO><![CDATA[230]]></SEQNO>
 <!--3835-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3835-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3835-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50818,7 +50818,7 @@
 <!--3836-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3836-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3836-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3836-->  <SEQNO><![CDATA[500]]></SEQNO>
+<!--3836-->  <SEQNO><![CDATA[530]]></SEQNO>
 <!--3836-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3836-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3836-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50846,7 +50846,7 @@
 <!--3837-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3837-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3837-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3837-->  <SEQNO><![CDATA[510]]></SEQNO>
+<!--3837-->  <SEQNO><![CDATA[540]]></SEQNO>
 <!--3837-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3837-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3837-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50874,7 +50874,7 @@
 <!--3838-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3838-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3838-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3838-->  <SEQNO><![CDATA[520]]></SEQNO>
+<!--3838-->  <SEQNO><![CDATA[550]]></SEQNO>
 <!--3838-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3838-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3838-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50903,7 +50903,7 @@
 <!--3839-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3839-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3839-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3839-->  <SEQNO><![CDATA[270]]></SEQNO>
+<!--3839-->  <SEQNO><![CDATA[290]]></SEQNO>
 <!--3839-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3839-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3839-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50933,7 +50933,7 @@
 <!--3840-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3840-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3840-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3840-->  <SEQNO><![CDATA[280]]></SEQNO>
+<!--3840-->  <SEQNO><![CDATA[300]]></SEQNO>
 <!--3840-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3840-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3840-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50963,7 +50963,7 @@
 <!--3841-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3841-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3841-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3841-->  <SEQNO><![CDATA[230]]></SEQNO>
+<!--3841-->  <SEQNO><![CDATA[250]]></SEQNO>
 <!--3841-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3841-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3841-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -50993,7 +50993,7 @@
 <!--3842-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3842-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3842-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3842-->  <SEQNO><![CDATA[220]]></SEQNO>
+<!--3842-->  <SEQNO><![CDATA[240]]></SEQNO>
 <!--3842-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3842-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3842-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51023,7 +51023,7 @@
 <!--3843-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3843-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3843-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3843-->  <SEQNO><![CDATA[240]]></SEQNO>
+<!--3843-->  <SEQNO><![CDATA[260]]></SEQNO>
 <!--3843-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3843-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3843-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51052,7 +51052,7 @@
 <!--3844-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3844-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3844-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3844-->  <SEQNO><![CDATA[530]]></SEQNO>
+<!--3844-->  <SEQNO><![CDATA[560]]></SEQNO>
 <!--3844-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3844-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3844-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51080,7 +51080,7 @@
 <!--3845-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3845-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3845-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3845-->  <SEQNO><![CDATA[540]]></SEQNO>
+<!--3845-->  <SEQNO><![CDATA[570]]></SEQNO>
 <!--3845-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3845-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3845-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51108,7 +51108,7 @@
 <!--3846-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3846-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3846-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3846-->  <SEQNO><![CDATA[550]]></SEQNO>
+<!--3846-->  <SEQNO><![CDATA[580]]></SEQNO>
 <!--3846-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3846-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3846-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51136,7 +51136,7 @@
 <!--3847-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3847-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3847-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3847-->  <SEQNO><![CDATA[560]]></SEQNO>
+<!--3847-->  <SEQNO><![CDATA[590]]></SEQNO>
 <!--3847-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3847-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3847-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51165,7 +51165,7 @@
 <!--3849-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3849-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3849-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3849-->  <SEQNO><![CDATA[250]]></SEQNO>
+<!--3849-->  <SEQNO><![CDATA[270]]></SEQNO>
 <!--3849-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3849-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3849-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51195,7 +51195,7 @@
 <!--3850-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3850-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3850-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3850-->  <SEQNO><![CDATA[260]]></SEQNO>
+<!--3850-->  <SEQNO><![CDATA[280]]></SEQNO>
 <!--3850-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3850-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3850-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51225,7 +51225,7 @@
 <!--3851-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3851-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3851-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3851-->  <SEQNO><![CDATA[290]]></SEQNO>
+<!--3851-->  <SEQNO><![CDATA[310]]></SEQNO>
 <!--3851-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3851-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3851-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51254,7 +51254,7 @@
 <!--3852-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3852-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3852-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3852-->  <SEQNO><![CDATA[570]]></SEQNO>
+<!--3852-->  <SEQNO><![CDATA[600]]></SEQNO>
 <!--3852-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3852-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3852-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51282,7 +51282,7 @@
 <!--3853-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3853-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3853-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3853-->  <SEQNO><![CDATA[580]]></SEQNO>
+<!--3853-->  <SEQNO><![CDATA[610]]></SEQNO>
 <!--3853-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3853-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3853-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -51310,7 +51310,7 @@
 <!--3854-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3854-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3854-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--3854-->  <SEQNO><![CDATA[590]]></SEQNO>
+<!--3854-->  <SEQNO><![CDATA[620]]></SEQNO>
 <!--3854-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3854-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--3854-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -54104,7 +54104,7 @@
 <!--4092-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4092-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4092-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4092-->  <SEQNO><![CDATA[300]]></SEQNO>
+<!--4092-->  <SEQNO><![CDATA[320]]></SEQNO>
 <!--4092-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--4092-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4092-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -54133,7 +54133,7 @@
 <!--4093-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4093-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4093-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4093-->  <SEQNO><![CDATA[310]]></SEQNO>
+<!--4093-->  <SEQNO><![CDATA[330]]></SEQNO>
 <!--4093-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--4093-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4093-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -54162,7 +54162,7 @@
 <!--4094-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4094-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4094-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4094-->  <SEQNO><![CDATA[330]]></SEQNO>
+<!--4094-->  <SEQNO><![CDATA[350]]></SEQNO>
 <!--4094-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--4094-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4094-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -54191,7 +54191,7 @@
 <!--4095-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4095-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4095-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4095-->  <SEQNO><![CDATA[340]]></SEQNO>
+<!--4095-->  <SEQNO><![CDATA[360]]></SEQNO>
 <!--4095-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--4095-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4095-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -60642,7 +60642,7 @@
 <!--4860-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4860-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4860-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4860-->  <SEQNO><![CDATA[150]]></SEQNO>
+<!--4860-->  <SEQNO><![CDATA[170]]></SEQNO>
 <!--4860-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--4860-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4860-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -60671,7 +60671,7 @@
 <!--4861-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4861-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4861-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4861-->  <SEQNO><![CDATA[600]]></SEQNO>
+<!--4861-->  <SEQNO><![CDATA[630]]></SEQNO>
 <!--4861-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--4861-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4861-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -60699,7 +60699,7 @@
 <!--4862-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4862-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4862-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4862-->  <SEQNO><![CDATA[610]]></SEQNO>
+<!--4862-->  <SEQNO><![CDATA[640]]></SEQNO>
 <!--4862-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--4862-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4862-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -60727,7 +60727,7 @@
 <!--4863-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4863-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4863-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4863-->  <SEQNO><![CDATA[620]]></SEQNO>
+<!--4863-->  <SEQNO><![CDATA[650]]></SEQNO>
 <!--4863-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--4863-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4863-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -62076,7 +62076,7 @@
 <!--5133-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--5133-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--5133-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--5133-->  <SEQNO><![CDATA[630]]></SEQNO>
+<!--5133-->  <SEQNO><![CDATA[660]]></SEQNO>
 <!--5133-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--5133-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--5133-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -62105,7 +62105,7 @@
 <!--5134-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--5134-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--5134-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--5134-->  <SEQNO><![CDATA[320]]></SEQNO>
+<!--5134-->  <SEQNO><![CDATA[340]]></SEQNO>
 <!--5134-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--5134-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--5134-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -62219,7 +62219,7 @@
 <!--5138-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--5138-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--5138-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--5138-->  <SEQNO><![CDATA[640]]></SEQNO>
+<!--5138-->  <SEQNO><![CDATA[670]]></SEQNO>
 <!--5138-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--5138-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--5138-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -163716,7 +163716,7 @@
 <!--1000100000-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--1000100000-->  <DISPLAYLENGTH><![CDATA[23]]></DISPLAYLENGTH>
 <!--1000100000-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--1000100000-->  <SEQNO><![CDATA[360]]></SEQNO>
+<!--1000100000-->  <SEQNO><![CDATA[380]]></SEQNO>
 <!--1000100000-->  <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--1000100000-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--1000100000-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -163745,7 +163745,7 @@
 <!--1000100001-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--1000100001-->  <DISPLAYLENGTH><![CDATA[23]]></DISPLAYLENGTH>
 <!--1000100001-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--1000100001-->  <SEQNO><![CDATA[350]]></SEQNO>
+<!--1000100001-->  <SEQNO><![CDATA[370]]></SEQNO>
 <!--1000100001-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--1000100001-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--1000100001-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -175016,6 +175016,36 @@
 <!--01295CE0CCEA4964AD4F4C4F66372FAC-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--01295CE0CCEA4964AD4F4C4F66372FAC--></AD_FIELD>
 
+<!--0167370BF9A14477AEA77B4157C45A13--><AD_FIELD>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_FIELD_ID><![CDATA[0167370BF9A14477AEA77B4157C45A13]]></AD_FIELD_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <NAME><![CDATA[2nd Dimension]]></NAME>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <DESCRIPTION><![CDATA[A display of optional elements that are previously defined for this account combination.]]></DESCRIPTION>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <HELP><![CDATA[The user defined element displays the optional elements that have been defined for this account combination.]]></HELP>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_TAB_ID><![CDATA[E4DC11F751F34F0DAE11A4D856CD99EB]]></AD_TAB_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_COLUMN_ID><![CDATA[498B93AAE2D44F72AD3819F840298465]]></AD_COLUMN_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <SEQNO><![CDATA[2070]]></SEQNO>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--0167370BF9A14477AEA77B4157C45A13-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--0167370BF9A14477AEA77B4157C45A13--></AD_FIELD>
+
 <!--0196E89448204D909D204F6E0F16204A--><AD_FIELD>
 <!--0196E89448204D909D204F6E0F16204A-->  <AD_FIELD_ID><![CDATA[0196E89448204D909D204F6E0F16204A]]></AD_FIELD_ID>
 <!--0196E89448204D909D204F6E0F16204A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -175612,6 +175642,8 @@
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <NAME><![CDATA[Allowance For Doubtful Debt Account]]></NAME>
+<!--052DC243EE4646AEA8328E210D44E0BB-->  <DESCRIPTION><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount. in balance sheet.]]></DESCRIPTION>
+<!--052DC243EE4646AEA8328E210D44E0BB-->  <HELP><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount in balance sheet.]]></HELP>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <AD_TAB_ID><![CDATA[252]]></AD_TAB_ID>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <AD_COLUMN_ID><![CDATA[A5D0773E826543EC8E54D4B2D394297F]]></AD_COLUMN_ID>
@@ -175620,7 +175652,7 @@
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--052DC243EE4646AEA8328E210D44E0BB-->  <SEQNO><![CDATA[80]]></SEQNO>
+<!--052DC243EE4646AEA8328E210D44E0BB-->  <SEQNO><![CDATA[100]]></SEQNO>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--052DC243EE4646AEA8328E210D44E0BB-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -179295,7 +179327,7 @@
 <!--17A0E70E274D44528C2E881A4BA6C422-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--17A0E70E274D44528C2E881A4BA6C422-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--17A0E70E274D44528C2E881A4BA6C422-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--17A0E70E274D44528C2E881A4BA6C422-->  <SEQNO><![CDATA[170]]></SEQNO>
+<!--17A0E70E274D44528C2E881A4BA6C422-->  <SEQNO><![CDATA[190]]></SEQNO>
 <!--17A0E70E274D44528C2E881A4BA6C422-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--17A0E70E274D44528C2E881A4BA6C422-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--17A0E70E274D44528C2E881A4BA6C422-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -180293,6 +180325,7 @@
 <!--1C00213ED1EC45D98505F22B35F23067-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--1C00213ED1EC45D98505F22B35F23067-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--1C00213ED1EC45D98505F22B35F23067-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1C00213ED1EC45D98505F22B35F23067-->  <GRID_SEQNO><![CDATA[4]]></GRID_SEQNO>
 <!--1C00213ED1EC45D98505F22B35F23067-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--1C00213ED1EC45D98505F22B35F23067-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--1C00213ED1EC45D98505F22B35F23067-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -180546,7 +180579,7 @@
 <!--1D5A5FA90B6342C18EE5D61D3260F490-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--1D5A5FA90B6342C18EE5D61D3260F490-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--1D5A5FA90B6342C18EE5D61D3260F490-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--1D5A5FA90B6342C18EE5D61D3260F490-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--1D5A5FA90B6342C18EE5D61D3260F490-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
 <!--1D5A5FA90B6342C18EE5D61D3260F490-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--1D5A5FA90B6342C18EE5D61D3260F490-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--1D5A5FA90B6342C18EE5D61D3260F490-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
@@ -180743,6 +180776,7 @@
 <!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <GRID_SEQNO><![CDATA[6]]></GRID_SEQNO>
 <!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--1EA2B9AD5CC54ADF960DAE7A3280A496-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -182016,10 +182050,9 @@
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <AD_TAB_ID><![CDATA[E4DC11F751F34F0DAE11A4D856CD99EB]]></AD_TAB_ID>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <AD_COLUMN_ID><![CDATA[FD333E7EC43041978F2A939475C920A2]]></AD_COLUMN_ID>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
-<!--24ADE65464414BE29AB3E39499ED3C8F-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--24ADE65464414BE29AB3E39499ED3C8F-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
-<!--24ADE65464414BE29AB3E39499ED3C8F-->  <SEQNO><![CDATA[110]]></SEQNO>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--24ADE65464414BE29AB3E39499ED3C8F-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -182412,6 +182445,36 @@
 <!--2797939AB6F84E018E9DF1D467C62D35-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--2797939AB6F84E018E9DF1D467C62D35--></AD_FIELD>
 
+<!--27A054A7D1EB4F09987FAA61A66EE7E6--><AD_FIELD>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_FIELD_ID><![CDATA[27A054A7D1EB4F09987FAA61A66EE7E6]]></AD_FIELD_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <NAME><![CDATA[Bad Debt Revenue Account]]></NAME>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <DESCRIPTION><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></DESCRIPTION>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <HELP><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></HELP>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_TAB_ID><![CDATA[252]]></AD_TAB_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_COLUMN_ID><![CDATA[E30E4E5B99734191B97AC24D9FF68F80]]></AD_COLUMN_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_FIELDGROUP_ID><![CDATA[107]]></AD_FIELDGROUP_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <SEQNO><![CDATA[90]]></SEQNO>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--27A054A7D1EB4F09987FAA61A66EE7E6--></AD_FIELD>
+
 <!--27C3BF7B64B74154B788EE4366A72332--><AD_FIELD>
 <!--27C3BF7B64B74154B788EE4366A72332-->  <AD_FIELD_ID><![CDATA[27C3BF7B64B74154B788EE4366A72332]]></AD_FIELD_ID>
 <!--27C3BF7B64B74154B788EE4366A72332-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -184417,6 +184480,8 @@
 <!--2F4D28954B6B465D9099766757F531C5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--2F4D28954B6B465D9099766757F531C5-->  <NAME><![CDATA[Allowance For Doubtful Debt Account]]></NAME>
+<!--2F4D28954B6B465D9099766757F531C5-->  <DESCRIPTION><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount. in balance sheet.]]></DESCRIPTION>
+<!--2F4D28954B6B465D9099766757F531C5-->  <HELP><![CDATA[Account used to provision bad debts. This amount will reduce accounts receivable amount in balance sheet.]]></HELP>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--2F4D28954B6B465D9099766757F531C5-->  <AD_TAB_ID><![CDATA[323]]></AD_TAB_ID>
 <!--2F4D28954B6B465D9099766757F531C5-->  <AD_COLUMN_ID><![CDATA[6BBE458716F14497A210D2857A48E904]]></AD_COLUMN_ID>
@@ -184424,11 +184489,11 @@
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--2F4D28954B6B465D9099766757F531C5-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--2F4D28954B6B465D9099766757F531C5-->  <SEQNO><![CDATA[350]]></SEQNO>
+<!--2F4D28954B6B465D9099766757F531C5-->  <SEQNO><![CDATA[370]]></SEQNO>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--2F4D28954B6B465D9099766757F531C5-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--2F4D28954B6B465D9099766757F531C5-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
 <!--2F4D28954B6B465D9099766757F531C5-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--2F4D28954B6B465D9099766757F531C5-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--2F4D28954B6B465D9099766757F531C5-->  <GRID_SEQNO><![CDATA[350]]></GRID_SEQNO>
@@ -184795,7 +184860,7 @@
 <!--30B2462DD7394959A0DC45073280F635-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--30B2462DD7394959A0DC45073280F635-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--30B2462DD7394959A0DC45073280F635-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--30B2462DD7394959A0DC45073280F635-->  <SEQNO><![CDATA[110]]></SEQNO>
+<!--30B2462DD7394959A0DC45073280F635-->  <SEQNO><![CDATA[130]]></SEQNO>
 <!--30B2462DD7394959A0DC45073280F635-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--30B2462DD7394959A0DC45073280F635-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--30B2462DD7394959A0DC45073280F635-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -185560,6 +185625,9 @@
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <NAME><![CDATA[Bad Debt Expense Account]]></NAME>
+<!--347DE80F2FF74C60A0DA3F0571B81A56-->  <DESCRIPTION><![CDATA[Account used to book the expense related to a bad debt]]></DESCRIPTION>
+<!--347DE80F2FF74C60A0DA3F0571B81A56-->  <HELP><![CDATA[        BadDebtExpense_Acct=Cur_Acct.BadDebtExpense_Acct,
+]]></HELP>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <AD_TAB_ID><![CDATA[323]]></AD_TAB_ID>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <AD_COLUMN_ID><![CDATA[05C088F54F974D8482C0DFDAE726D0C5]]></AD_COLUMN_ID>
@@ -185567,11 +185635,11 @@
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--347DE80F2FF74C60A0DA3F0571B81A56-->  <SEQNO><![CDATA[340]]></SEQNO>
+<!--347DE80F2FF74C60A0DA3F0571B81A56-->  <SEQNO><![CDATA[350]]></SEQNO>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--347DE80F2FF74C60A0DA3F0571B81A56-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--347DE80F2FF74C60A0DA3F0571B81A56-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--347DE80F2FF74C60A0DA3F0571B81A56-->  <GRID_SEQNO><![CDATA[340]]></GRID_SEQNO>
@@ -187830,7 +187898,7 @@
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <DISPLAYLENGTH><![CDATA[20]]></DISPLAYLENGTH>
-<!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <SEQNO><![CDATA[40]]></SEQNO>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -187838,6 +187906,7 @@
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <GRID_SEQNO><![CDATA[2]]></GRID_SEQNO>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--3F3E5DF5919A467B89219F56F7EB3CEA-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -190020,7 +190089,7 @@
 <!--4A056B92011944C09C6F4449E2FADFEF-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--4A056B92011944C09C6F4449E2FADFEF-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--4A056B92011944C09C6F4449E2FADFEF-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--4A056B92011944C09C6F4449E2FADFEF-->  <SEQNO><![CDATA[160]]></SEQNO>
+<!--4A056B92011944C09C6F4449E2FADFEF-->  <SEQNO><![CDATA[180]]></SEQNO>
 <!--4A056B92011944C09C6F4449E2FADFEF-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--4A056B92011944C09C6F4449E2FADFEF-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--4A056B92011944C09C6F4449E2FADFEF-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -190642,6 +190711,36 @@
 <!--4D264E4E4470495CA0C89823D57CA6E9-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--4D264E4E4470495CA0C89823D57CA6E9--></AD_FIELD>
 
+<!--4D26A56590884E37B73D16E386CA7ADE--><AD_FIELD>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_FIELD_ID><![CDATA[4D26A56590884E37B73D16E386CA7ADE]]></AD_FIELD_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <NAME><![CDATA[1st Dimension]]></NAME>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <DESCRIPTION><![CDATA[A display of optional elements that are previously defined for this account combination.]]></DESCRIPTION>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <HELP><![CDATA[The user defined element displays the optional elements that have been defined for this account combination.]]></HELP>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_TAB_ID><![CDATA[E4DC11F751F34F0DAE11A4D856CD99EB]]></AD_TAB_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_COLUMN_ID><![CDATA[C4978F8633004EDC9A0B989B28C03DF7]]></AD_COLUMN_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <SEQNO><![CDATA[2060]]></SEQNO>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--4D26A56590884E37B73D16E386CA7ADE-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--4D26A56590884E37B73D16E386CA7ADE--></AD_FIELD>
+
 <!--4DC9F4739D3F4B289D87FBDC06D4FAA5--><AD_FIELD>
 <!--4DC9F4739D3F4B289D87FBDC06D4FAA5-->  <AD_FIELD_ID><![CDATA[4DC9F4739D3F4B289D87FBDC06D4FAA5]]></AD_FIELD_ID>
 <!--4DC9F4739D3F4B289D87FBDC06D4FAA5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -193192,7 +193291,7 @@
 <!--52EC454DE5DE468DB682EF48A64B6671-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--52EC454DE5DE468DB682EF48A64B6671-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--52EC454DE5DE468DB682EF48A64B6671-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--52EC454DE5DE468DB682EF48A64B6671-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--52EC454DE5DE468DB682EF48A64B6671-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
 <!--52EC454DE5DE468DB682EF48A64B6671-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--52EC454DE5DE468DB682EF48A64B6671-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--52EC454DE5DE468DB682EF48A64B6671-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
@@ -193842,6 +193941,7 @@
 <!--5519FEE5F9E042CFAD01946509EF8996-->  <AD_COLUMN_ID><![CDATA[F88552B627E048CCA995BEED4756BC9E]]></AD_COLUMN_ID>
 <!--5519FEE5F9E042CFAD01946509EF8996-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--5519FEE5F9E042CFAD01946509EF8996-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--5519FEE5F9E042CFAD01946509EF8996-->  <DISPLAYLOGIC><![CDATA[@Processed@='N']]></DISPLAYLOGIC>
 <!--5519FEE5F9E042CFAD01946509EF8996-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--5519FEE5F9E042CFAD01946509EF8996-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--5519FEE5F9E042CFAD01946509EF8996-->  <SEQNO><![CDATA[100]]></SEQNO>
@@ -194013,6 +194113,7 @@
 <!--55E9594A161046F1BAA770219F43E1B6-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--55E9594A161046F1BAA770219F43E1B6-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--55E9594A161046F1BAA770219F43E1B6-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--55E9594A161046F1BAA770219F43E1B6-->  <GRID_SEQNO><![CDATA[1]]></GRID_SEQNO>
 <!--55E9594A161046F1BAA770219F43E1B6-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--55E9594A161046F1BAA770219F43E1B6-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--55E9594A161046F1BAA770219F43E1B6-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -199695,6 +199796,36 @@
 <!--5909F8540F844FD6BBD01EA083C3CC89-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--5909F8540F844FD6BBD01EA083C3CC89--></AD_FIELD>
 
+<!--590A6BFA845E49FABF01A7D2B2A209D2--><AD_FIELD>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_FIELD_ID><![CDATA[590A6BFA845E49FABF01A7D2B2A209D2]]></AD_FIELD_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <NAME><![CDATA[Cost Center]]></NAME>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <DESCRIPTION><![CDATA[Division that adds to the cost of an organization]]></DESCRIPTION>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <HELP><![CDATA[Division that adds to the cost of an organization. Internal structure for cost allocation.]]></HELP>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_TAB_ID><![CDATA[E4DC11F751F34F0DAE11A4D856CD99EB]]></AD_TAB_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_COLUMN_ID><![CDATA[C1EFF0F3A7284E06BFAD3A39CDB83B4B]]></AD_COLUMN_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <SEQNO><![CDATA[2030]]></SEQNO>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--590A6BFA845E49FABF01A7D2B2A209D2-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--590A6BFA845E49FABF01A7D2B2A209D2--></AD_FIELD>
+
 <!--5920A450BEAC149DE040007F010106F4--><AD_FIELD>
 <!--5920A450BEAC149DE040007F010106F4-->  <AD_FIELD_ID><![CDATA[5920A450BEAC149DE040007F010106F4]]></AD_FIELD_ID>
 <!--5920A450BEAC149DE040007F010106F4-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -205811,10 +205942,10 @@
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--64D6BF6EB63445F79DCE13CBB01B049E-->  <DISPLAYLOGIC><![CDATA[@$Element_PR@='Y']]></DISPLAYLOGIC>
+<!--64D6BF6EB63445F79DCE13CBB01B049E-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--64D6BF6EB63445F79DCE13CBB01B049E-->  <SEQNO><![CDATA[120]]></SEQNO>
+<!--64D6BF6EB63445F79DCE13CBB01B049E-->  <SEQNO><![CDATA[2010]]></SEQNO>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--64D6BF6EB63445F79DCE13CBB01B049E-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -206510,9 +206641,9 @@
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <DISPLAYLOGIC><![CDATA[@$Element_PR@='Y']]></DISPLAYLOGIC>
+<!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <SEQNO><![CDATA[2010]]></SEQNO>
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--68E380EB1EB647F4BDCFB5CBB12374D5-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -207819,7 +207950,7 @@
 <!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <AD_TAB_ID><![CDATA[FA66A130BE8B48E88BF4F5A6E2FA0CDD]]></AD_TAB_ID>
 <!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <AD_COLUMN_ID><![CDATA[B6767E6BD31B48AEA60533DE5F560824]]></AD_COLUMN_ID>
 <!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
-<!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
 <!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--6E9A85C1B2974D68B0B1E0FC6A8C1B66-->  <SEQNO><![CDATA[90]]></SEQNO>
@@ -214986,6 +215117,7 @@
 <!--7F5CC37892154BDBA05132C0A8A93943-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--7F5CC37892154BDBA05132C0A8A93943-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--7F5CC37892154BDBA05132C0A8A93943-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--7F5CC37892154BDBA05132C0A8A93943-->  <GRID_SEQNO><![CDATA[1]]></GRID_SEQNO>
 <!--7F5CC37892154BDBA05132C0A8A93943-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--7F5CC37892154BDBA05132C0A8A93943-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--7F5CC37892154BDBA05132C0A8A93943-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -216387,6 +216519,35 @@
 <!--81725CBFCA8D4659A58B4A8D6BDDB9AB-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--81725CBFCA8D4659A58B4A8D6BDDB9AB--></AD_FIELD>
 
+<!--818A662AF18740FE8C491A9CC190FCF9--><AD_FIELD>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <AD_FIELD_ID><![CDATA[818A662AF18740FE8C491A9CC190FCF9]]></AD_FIELD_ID>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <NAME><![CDATA[Doubtful Debt Account]]></NAME>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <DESCRIPTION><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></DESCRIPTION>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <HELP><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></HELP>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <AD_TAB_ID><![CDATA[323]]></AD_TAB_ID>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <AD_COLUMN_ID><![CDATA[4C34FD5CD5F947049A55B6CCEFA15960]]></AD_COLUMN_ID>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <SEQNO><![CDATA[340]]></SEQNO>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--818A662AF18740FE8C491A9CC190FCF9-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--818A662AF18740FE8C491A9CC190FCF9--></AD_FIELD>
+
 <!--818B79D15C634EB3957222C809C5BC1C--><AD_FIELD>
 <!--818B79D15C634EB3957222C809C5BC1C-->  <AD_FIELD_ID><![CDATA[818B79D15C634EB3957222C809C5BC1C]]></AD_FIELD_ID>
 <!--818B79D15C634EB3957222C809C5BC1C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -222457,6 +222618,34 @@
 <!--8C0252607BE84DFEA078887384CDD498-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--8C0252607BE84DFEA078887384CDD498--></AD_FIELD>
 
+<!--8C4C2902909048C488299C4C4B7FC9D7--><AD_FIELD>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <AD_FIELD_ID><![CDATA[8C4C2902909048C488299C4C4B7FC9D7]]></AD_FIELD_ID>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <NAME><![CDATA[Processed]]></NAME>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <DESCRIPTION><![CDATA[A confirmation that the associated documents or requests are processed.]]></DESCRIPTION>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <HELP><![CDATA[The Processed checkbox indicates that a document has been processed.]]></HELP>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <AD_TAB_ID><![CDATA[FA66A130BE8B48E88BF4F5A6E2FA0CDD]]></AD_TAB_ID>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <AD_COLUMN_ID><![CDATA[026810E03C274CD9A01DC0C688C78EF2]]></AD_COLUMN_ID>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <SEQNO><![CDATA[110]]></SEQNO>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--8C4C2902909048C488299C4C4B7FC9D7-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--8C4C2902909048C488299C4C4B7FC9D7--></AD_FIELD>
+
 <!--8C71B571868E439BBFC42B11779C0115--><AD_FIELD>
 <!--8C71B571868E439BBFC42B11779C0115-->  <AD_FIELD_ID><![CDATA[8C71B571868E439BBFC42B11779C0115]]></AD_FIELD_ID>
 <!--8C71B571868E439BBFC42B11779C0115-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -226370,7 +226559,7 @@
 <!--96689FDFA35E41DA88E38CA0556A03FA-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--96689FDFA35E41DA88E38CA0556A03FA-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--96689FDFA35E41DA88E38CA0556A03FA-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--96689FDFA35E41DA88E38CA0556A03FA-->  <SEQNO><![CDATA[130]]></SEQNO>
+<!--96689FDFA35E41DA88E38CA0556A03FA-->  <SEQNO><![CDATA[150]]></SEQNO>
 <!--96689FDFA35E41DA88E38CA0556A03FA-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--96689FDFA35E41DA88E38CA0556A03FA-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--96689FDFA35E41DA88E38CA0556A03FA-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -226513,7 +226702,7 @@
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <DISPLAYLENGTH><![CDATA[2]]></DISPLAYLENGTH>
-<!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <SEQNO><![CDATA[50]]></SEQNO>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -226521,6 +226710,7 @@
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <GRID_SEQNO><![CDATA[5]]></GRID_SEQNO>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--97414E714BE84E7A93BDEBD7D5FBA4B1-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -227740,8 +227930,9 @@
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <SEQNO><![CDATA[2060]]></SEQNO>
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--9CB868DC0BCD49C197CA4AFBBF92093E-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -228988,16 +229179,17 @@
 <!--A2E0416252534775963C3F47229D6682-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--A2E0416252534775963C3F47229D6682-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--A2E0416252534775963C3F47229D6682-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--A2E0416252534775963C3F47229D6682-->  <DISPLAYLOGIC><![CDATA[@$Element_BP@='Y']]></DISPLAYLOGIC>
+<!--A2E0416252534775963C3F47229D6682-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--A2E0416252534775963C3F47229D6682-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--A2E0416252534775963C3F47229D6682-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
 <!--A2E0416252534775963C3F47229D6682-->  <SEQNO><![CDATA[2000]]></SEQNO>
 <!--A2E0416252534775963C3F47229D6682-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--A2E0416252534775963C3F47229D6682-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--A2E0416252534775963C3F47229D6682-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--A2E0416252534775963C3F47229D6682-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--A2E0416252534775963C3F47229D6682-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--A2E0416252534775963C3F47229D6682-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--A2E0416252534775963C3F47229D6682-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--A2E0416252534775963C3F47229D6682-->  <GRID_SEQNO><![CDATA[3]]></GRID_SEQNO>
 <!--A2E0416252534775963C3F47229D6682-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--A2E0416252534775963C3F47229D6682-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--A2E0416252534775963C3F47229D6682-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -230615,16 +230807,17 @@
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <DISPLAYLOGIC><![CDATA[@$Element_BP@='Y']]></DISPLAYLOGIC>
+<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <SEQNO><![CDATA[130]]></SEQNO>
+<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <SEQNO><![CDATA[2000]]></SEQNO>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <GRID_SEQNO><![CDATA[3]]></GRID_SEQNO>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--A92FF6B8EFB842ECA29A01ADD3EB72BA-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -240147,10 +240340,10 @@
 <!--B29D7911F878431EA9434EA4FACBA023-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--B29D7911F878431EA9434EA4FACBA023-->  <DISPLAYLOGIC><![CDATA[@$Element_PJ@='Y']]></DISPLAYLOGIC>
+<!--B29D7911F878431EA9434EA4FACBA023-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--B29D7911F878431EA9434EA4FACBA023-->  <SEQNO><![CDATA[160]]></SEQNO>
+<!--B29D7911F878431EA9434EA4FACBA023-->  <SEQNO><![CDATA[2020]]></SEQNO>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -240297,7 +240490,7 @@
 <!--B30FFF868FB44913B201C067234860F0-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--B30FFF868FB44913B201C067234860F0-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--B30FFF868FB44913B201C067234860F0-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--B30FFF868FB44913B201C067234860F0-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--B30FFF868FB44913B201C067234860F0-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
 <!--B30FFF868FB44913B201C067234860F0-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--B30FFF868FB44913B201C067234860F0-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--B30FFF868FB44913B201C067234860F0-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
@@ -242837,7 +243030,7 @@
 <!--BA3429E541A54AC98BD6563580C667AA-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--BA3429E541A54AC98BD6563580C667AA-->  <DISPLAYLOGIC><![CDATA[@$Element_MC@='Y']]></DISPLAYLOGIC>
 <!--BA3429E541A54AC98BD6563580C667AA-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--BA3429E541A54AC98BD6563580C667AA-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--BA3429E541A54AC98BD6563580C667AA-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--BA3429E541A54AC98BD6563580C667AA-->  <SEQNO><![CDATA[2040]]></SEQNO>
 <!--BA3429E541A54AC98BD6563580C667AA-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--BA3429E541A54AC98BD6563580C667AA-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -244147,7 +244340,7 @@
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <DISPLAYLENGTH><![CDATA[20]]></DISPLAYLENGTH>
-<!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <SEQNO><![CDATA[40]]></SEQNO>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -244155,6 +244348,7 @@
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BDA0A299B4AE414FA972995A6BF42F0F-->  <GRID_SEQNO><![CDATA[2]]></GRID_SEQNO>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--BDA0A299B4AE414FA972995A6BF42F0F-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -244355,6 +244549,36 @@
 <!--BE6F3373766744648039EAE64DBFCABA-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--BE6F3373766744648039EAE64DBFCABA--></AD_FIELD>
 
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E--><AD_FIELD>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_FIELD_ID><![CDATA[BE72ECFB2E8C4C568C9AD6D93AFF146E]]></AD_FIELD_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <NAME><![CDATA[Doubtful Debt Account]]></NAME>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <DESCRIPTION><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></DESCRIPTION>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <HELP><![CDATA[Account used to reclassify an account receivable once this has been recognized as a doubtful debt]]></HELP>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_TAB_ID><![CDATA[252]]></AD_TAB_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_COLUMN_ID><![CDATA[3A1958E28DFF43AE9FE5F9DFA11A9508]]></AD_COLUMN_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_FIELDGROUP_ID><![CDATA[107]]></AD_FIELDGROUP_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--BE72ECFB2E8C4C568C9AD6D93AFF146E--></AD_FIELD>
+
 <!--BE7E52451C394C038D875B914A12C150--><AD_FIELD>
 <!--BE7E52451C394C038D875B914A12C150-->  <AD_FIELD_ID><![CDATA[BE7E52451C394C038D875B914A12C150]]></AD_FIELD_ID>
 <!--BE7E52451C394C038D875B914A12C150-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -244398,8 +244622,9 @@
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <SEQNO><![CDATA[2030]]></SEQNO>
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--BEDF2A2ADFA0459290ECEEC7ED2D6D77-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -244864,8 +245089,9 @@
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--C0E78C228E6348039317B20DB3B92EBF-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--C0E78C228E6348039317B20DB3B92EBF-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--C0E78C228E6348039317B20DB3B92EBF-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <SEQNO><![CDATA[2070]]></SEQNO>
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--C0E78C228E6348039317B20DB3B92EBF-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -246391,7 +246617,7 @@
 <!--C6354A3CFB3D4501A65F90535FA5F18A-->  <DISPLAYLOGIC><![CDATA[@$Element_MC@='Y']]></DISPLAYLOGIC>
 <!--C6354A3CFB3D4501A65F90535FA5F18A-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--C6354A3CFB3D4501A65F90535FA5F18A-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--C6354A3CFB3D4501A65F90535FA5F18A-->  <SEQNO><![CDATA[150]]></SEQNO>
+<!--C6354A3CFB3D4501A65F90535FA5F18A-->  <SEQNO><![CDATA[2050]]></SEQNO>
 <!--C6354A3CFB3D4501A65F90535FA5F18A-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--C6354A3CFB3D4501A65F90535FA5F18A-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--C6354A3CFB3D4501A65F90535FA5F18A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -247005,6 +247231,9 @@
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <NAME><![CDATA[Bad Debt Expense Account]]></NAME>
+<!--C94728F7441E41C38660A8AE2AAFC716-->  <DESCRIPTION><![CDATA[Account used to book the expense related to a bad debt]]></DESCRIPTION>
+<!--C94728F7441E41C38660A8AE2AAFC716-->  <HELP><![CDATA[        BadDebtExpense_Acct=Cur_Acct.BadDebtExpense_Acct,
+]]></HELP>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <AD_TAB_ID><![CDATA[252]]></AD_TAB_ID>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <AD_COLUMN_ID><![CDATA[ECD12BAFE5A1495FAE68E32508E8ED05]]></AD_COLUMN_ID>
@@ -247013,7 +247242,7 @@
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--C94728F7441E41C38660A8AE2AAFC716-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--C94728F7441E41C38660A8AE2AAFC716-->  <SEQNO><![CDATA[80]]></SEQNO>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--C94728F7441E41C38660A8AE2AAFC716-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -253128,7 +253357,7 @@
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <DISPLAYLOGIC><![CDATA[@$Element_AY@='Y']]></DISPLAYLOGIC>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--D8A3451B12AC4E0C964D9F53D9699449-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--D8A3451B12AC4E0C964D9F53D9699449-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <SEQNO><![CDATA[2050]]></SEQNO>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -253441,7 +253670,7 @@
 <!--D9BE09F890A14195A35EC39017CC06CF-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--D9BE09F890A14195A35EC39017CC06CF-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--D9BE09F890A14195A35EC39017CC06CF-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
-<!--D9BE09F890A14195A35EC39017CC06CF-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--D9BE09F890A14195A35EC39017CC06CF-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
 <!--D9BE09F890A14195A35EC39017CC06CF-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--D9BE09F890A14195A35EC39017CC06CF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--D9BE09F890A14195A35EC39017CC06CF-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
@@ -254047,6 +254276,7 @@
 <!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <GRID_SEQNO><![CDATA[5]]></GRID_SEQNO>
 <!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--DC6A7BB834FA4AD18FDE55A88EA71AF5-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -254580,6 +254810,7 @@
 <!--DE5561E6882E4761B41612E84B29F34B-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--DE5561E6882E4761B41612E84B29F34B-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--DE5561E6882E4761B41612E84B29F34B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DE5561E6882E4761B41612E84B29F34B-->  <GRID_SEQNO><![CDATA[4]]></GRID_SEQNO>
 <!--DE5561E6882E4761B41612E84B29F34B-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--DE5561E6882E4761B41612E84B29F34B-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--DE5561E6882E4761B41612E84B29F34B-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -255753,9 +255984,9 @@
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <AD_FIELDGROUP_ID><![CDATA[800000]]></AD_FIELDGROUP_ID>
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--E55C3ED614734AE68311022E0FDA4E20-->  <DISPLAYLOGIC><![CDATA[@$Element_PJ@='Y']]></DISPLAYLOGIC>
+<!--E55C3ED614734AE68311022E0FDA4E20-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
-<!--E55C3ED614734AE68311022E0FDA4E20-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--E55C3ED614734AE68311022E0FDA4E20-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <SEQNO><![CDATA[2020]]></SEQNO>
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--E55C3ED614734AE68311022E0FDA4E20-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
@@ -257006,7 +257237,7 @@
 <!--EC4A97FF9A1C41D997A1546340F83F55-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
 <!--EC4A97FF9A1C41D997A1546340F83F55-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
 <!--EC4A97FF9A1C41D997A1546340F83F55-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--EC4A97FF9A1C41D997A1546340F83F55-->  <SEQNO><![CDATA[300]]></SEQNO>
+<!--EC4A97FF9A1C41D997A1546340F83F55-->  <SEQNO><![CDATA[80]]></SEQNO>
 <!--EC4A97FF9A1C41D997A1546340F83F55-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--EC4A97FF9A1C41D997A1546340F83F55-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--EC4A97FF9A1C41D997A1546340F83F55-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -257347,6 +257578,7 @@
 <!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
 <!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <GRID_SEQNO><![CDATA[6]]></GRID_SEQNO>
 <!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
 <!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
 <!--EE337B6B68BF4A56AEB6056D126A7C5C-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
@@ -258974,7 +259206,7 @@
 <!--F5DAE65C6492482EBF3E034D1992FF05-->  <DISPLAYLOGIC><![CDATA[@$Element_AY@='Y']]></DISPLAYLOGIC>
 <!--F5DAE65C6492482EBF3E034D1992FF05-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--F5DAE65C6492482EBF3E034D1992FF05-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--F5DAE65C6492482EBF3E034D1992FF05-->  <SEQNO><![CDATA[140]]></SEQNO>
+<!--F5DAE65C6492482EBF3E034D1992FF05-->  <SEQNO><![CDATA[2040]]></SEQNO>
 <!--F5DAE65C6492482EBF3E034D1992FF05-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--F5DAE65C6492482EBF3E034D1992FF05-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--F5DAE65C6492482EBF3E034D1992FF05-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
@@ -260260,6 +260492,35 @@
 <!--FC5DB679657A45C8B3CB4D8FCD52A52F-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--FC5DB679657A45C8B3CB4D8FCD52A52F--></AD_FIELD>
 
+<!--FC8190E914AD490BAE41AF3A0A6E095D--><AD_FIELD>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <AD_FIELD_ID><![CDATA[FC8190E914AD490BAE41AF3A0A6E095D]]></AD_FIELD_ID>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <NAME><![CDATA[Bad Debt Revenue Account]]></NAME>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <DESCRIPTION><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></DESCRIPTION>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <HELP><![CDATA[Account used to book the revenue related to a recover of a bad debt]]></HELP>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <AD_TAB_ID><![CDATA[323]]></AD_TAB_ID>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <AD_COLUMN_ID><![CDATA[09AB724293CC48A8AE66A9454BBF54BA]]></AD_COLUMN_ID>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <SEQNO><![CDATA[360]]></SEQNO>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--FC8190E914AD490BAE41AF3A0A6E095D-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--FC8190E914AD490BAE41AF3A0A6E095D--></AD_FIELD>
+
 <!--FCAEFD3CABBD4BDD88B2C9A562CF6B95--><AD_FIELD>
 <!--FCAEFD3CABBD4BDD88B2C9A562CF6B95-->  <AD_FIELD_ID><![CDATA[FCAEFD3CABBD4BDD88B2C9A562CF6B95]]></AD_FIELD_ID>
 <!--FCAEFD3CABBD4BDD88B2C9A562CF6B95-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_REF_LIST.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_REF_LIST.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -9699,6 +9699,17 @@
 <!--7FE0BC7D3EC54CF8BEB70EF30D01BD2D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--7FE0BC7D3EC54CF8BEB70EF30D01BD2D--></AD_REF_LIST>
 
+<!--80232AF7863C463B992997F51529A17F--><AD_REF_LIST>
+<!--80232AF7863C463B992997F51529A17F-->  <AD_REF_LIST_ID><![CDATA[80232AF7863C463B992997F51529A17F]]></AD_REF_LIST_ID>
+<!--80232AF7863C463B992997F51529A17F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--80232AF7863C463B992997F51529A17F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--80232AF7863C463B992997F51529A17F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--80232AF7863C463B992997F51529A17F-->  <VALUE><![CDATA[DDB]]></VALUE>
+<!--80232AF7863C463B992997F51529A17F-->  <NAME><![CDATA[Doubtful Debt]]></NAME>
+<!--80232AF7863C463B992997F51529A17F-->  <AD_REFERENCE_ID><![CDATA[FBC599C796664DD49AD002C61DAFF813]]></AD_REFERENCE_ID>
+<!--80232AF7863C463B992997F51529A17F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--80232AF7863C463B992997F51529A17F--></AD_REF_LIST>
+
 <!--81A2313EDAE84E3B8CF6755D13370623--><AD_REF_LIST>
 <!--81A2313EDAE84E3B8CF6755D13370623-->  <AD_REF_LIST_ID><![CDATA[81A2313EDAE84E3B8CF6755D13370623]]></AD_REF_LIST_ID>
 <!--81A2313EDAE84E3B8CF6755D13370623-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TAB.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_TAB.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -12717,9 +12717,11 @@
 <!--3FD616A223E44621806A8573068B6C62-->  <ISSORTTAB><![CDATA[N]]></ISSORTTAB>
 <!--3FD616A223E44621806A8573068B6C62-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--3FD616A223E44621806A8573068B6C62-->  <UIPATTERN><![CDATA[STD]]></UIPATTERN>
-<!--3FD616A223E44621806A8573068B6C62-->  <HQLWHERECLAUSE><![CDATA[(e.obSelected = true and e.fINDoubtfulDebtRun.id = @FIN_DoubtFul_Debt_Run.id@) OR e.obSelected = false]]></HQLWHERECLAUSE>
+<!--3FD616A223E44621806A8573068B6C62-->  <HQLWHERECLAUSE><![CDATA[e.fINDoubtfulDebtRun.id = @FIN_DoubtFul_Debt_Run.id@ OR e.fINDoubtfulDebtRun.id IS NULL OR e.fINDoubtfulDebtRun.id = '']]></HQLWHERECLAUSE>
 <!--3FD616A223E44621806A8573068B6C62-->  <HQLORDERBYCLAUSE><![CDATA[obSelected desc, dueDate, amount, documentno]]></HQLORDERBYCLAUSE>
-<!--3FD616A223E44621806A8573068B6C62-->  <HQLFILTERCLAUSE><![CDATA[(e.obSelected = true and e.fINDoubtfulDebtRun.id = @FIN_DoubtFul_Debt_Run.id@) OR (TO_NUMBER(@FIN_DoubtFul_Debt_Run.Daysoverdue@)<=e.daysOverdue AND (((@FIN_DoubtFul_Debt_Run.businessPartner@ is null OR @FIN_DoubtFul_Debt_Run.businessPartner@ = '') AND (@FIN_DoubtFul_Debt_Run.businessPartnerCategory@ is null OR @FIN_DoubtFul_Debt_Run.businessPartnerCategory@ = '')) OR ((@FIN_DoubtFul_Debt_Run.businessPartner@ is not null and e.businessPartner.id = @FIN_DoubtFul_Debt_Run.businessPartner@) OR (@FIN_DoubtFul_Debt_Run.businessPartnerCategory@ is not null and e.businessPartnerCategory.id = @FIN_DoubtFul_Debt_Run.businessPartnerCategory@))))]]></HQLFILTERCLAUSE>
+<!--3FD616A223E44621806A8573068B6C62-->  <HQLFILTERCLAUSE><![CDATA[e.fINDoubtfulDebtRun.id = @FIN_DoubtFul_Debt_Run.id@ OR (e.fINDoubtfulDebtRun.id IS NULL AND TO_NUMBER(@FIN_DoubtFul_Debt_Run.Daysoverdue@)<=e.daysOverdue 
+AND ((@FIN_DoubtFul_Debt_Run.businessPartner@ is null OR @FIN_DoubtFul_Debt_Run.businessPartner@ = '') OR (@FIN_DoubtFul_Debt_Run.businessPartner@ is not null and e.businessPartner.id = @FIN_DoubtFul_Debt_Run.businessPartner@))
+AND ((@FIN_DoubtFul_Debt_Run.businessPartnerCategory@ is null OR @FIN_DoubtFul_Debt_Run.businessPartnerCategory@ = '') OR (@FIN_DoubtFul_Debt_Run.businessPartnerCategory@ is not null and e.businessPartnerCategory.id = @FIN_DoubtFul_Debt_Run.businessPartnerCategory@)))]]></HQLFILTERCLAUSE>
 <!--3FD616A223E44621806A8573068B6C62-->  <SHOWPARENTBUTTONS><![CDATA[Y]]></SHOWPARENTBUTTONS>
 <!--3FD616A223E44621806A8573068B6C62-->  <EM_OBUIAPP_CAN_ADD><![CDATA[N]]></EM_OBUIAPP_CAN_ADD>
 <!--3FD616A223E44621806A8573068B6C62-->  <EM_OBUIAPP_CAN_DELETE><![CDATA[N]]></EM_OBUIAPP_CAN_DELETE>
@@ -14104,7 +14106,7 @@
 <!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <IMPORTFIELDS><![CDATA[N]]></IMPORTFIELDS>
 <!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <ISSORTTAB><![CDATA[N]]></ISSORTTAB>
 <!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <UIPATTERN><![CDATA[SR]]></UIPATTERN>
+<!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <UIPATTERN><![CDATA[ED]]></UIPATTERN>
 <!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <SHOWPARENTBUTTONS><![CDATA[Y]]></SHOWPARENTBUTTONS>
 <!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <EM_OBUIAPP_CAN_ADD><![CDATA[N]]></EM_OBUIAPP_CAN_ADD>
 <!--9D859A2A50F44562AFA21AAF2DF91B8A-->  <EM_OBUIAPP_CAN_DELETE><![CDATA[N]]></EM_OBUIAPP_CAN_DELETE>
--- a/src-db/database/sourcedata/AD_WINDOW.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/AD_WINDOW.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -2881,7 +2881,7 @@
 <!--681E982F747A48A6AF328A236A067559-->  <DESCRIPTION><![CDATA[Doubtful debts are those debts which a business or individual is unlikely to be able to collect.]]></DESCRIPTION>
 <!--681E982F747A48A6AF328A236A067559-->  <HELP><![CDATA[The reasons for potential non payment can include disputes over supply, delivery, at the conditioner of item or the appearance of financial stress within a customer's operations. When such a dispute occurs it is prudent to add this debt or portion thereof to the doubtful debt reserve.]]></HELP>
 <!--681E982F747A48A6AF328A236A067559-->  <WINDOWTYPE><![CDATA[T]]></WINDOWTYPE>
-<!--681E982F747A48A6AF328A236A067559-->  <ISSOTRX><![CDATA[N]]></ISSOTRX>
+<!--681E982F747A48A6AF328A236A067559-->  <ISSOTRX><![CDATA[Y]]></ISSOTRX>
 <!--681E982F747A48A6AF328A236A067559-->  <PROCESSING><![CDATA[N]]></PROCESSING>
 <!--681E982F747A48A6AF328A236A067559-->  <ISDEFAULT><![CDATA[N]]></ISDEFAULT>
 <!--681E982F747A48A6AF328A236A067559-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
--- a/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Tue Dec 18 10:00:20 2012 +0100
+++ b/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Thu Dec 20 20:23:07 2012 +0100
@@ -69,7 +69,7 @@
 <!--7372662B059D4E01A80E5599B500A2D2-->  <NAME><![CDATA[Doubtful Debt Pick and Edit]]></NAME>
 <!--7372662B059D4E01A80E5599B500A2D2-->  <DESCRIPTION><![CDATA[Doubtful Debt Pick and Edit]]></DESCRIPTION>
 <!--7372662B059D4E01A80E5599B500A2D2-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
-<!--7372662B059D4E01A80E5599B500A2D2-->  <CLASSNAME><![CDATA[org.openbravo.common.actionhandler.DoubtFulDebtPickEditLines]]></CLASSNAME>
+<!--7372662B059D4E01A80E5599B500A2D2-->  <CLASSNAME><![CDATA[org.openbravo.advpaymentmngt.actionHandler.DoubtFulDebtPickEditLines]]></CLASSNAME>
 <!--7372662B059D4E01A80E5599B500A2D2-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
 <!--7372662B059D4E01A80E5599B500A2D2-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--7372662B059D4E01A80E5599B500A2D2-->  <UIPATTERN><![CDATA[OBUIAPP_PickAndExecute]]></UIPATTERN>
--- a/src/org/openbravo/common/actionhandler/DoubtFulDebtPickEditLines.java	Tue Dec 18 10:00:20 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,224 +0,0 @@
-/*
- *************************************************************************
- * The contents of this file are subject to the Openbravo  Public  License
- * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
- * Version 1.1  with a permitted attribution clause; you may not  use this
- * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html 
- * Software distributed under the License  is  distributed  on  an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific  language  governing  rights  and  limitations
- * under the License. 
- * The Original Code is Openbravo ERP. 
- * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2012 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
- */
-
-package org.openbravo.common.actionhandler;
-
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.codehaus.jettison.json.JSONArray;
-import org.codehaus.jettison.json.JSONException;
-import org.codehaus.jettison.json.JSONObject;
-import org.openbravo.advpaymentmngt.utility.FIN_Utility;
-import org.openbravo.base.provider.OBProvider;
-import org.openbravo.client.application.process.BaseProcessActionHandler;
-import org.openbravo.dal.core.OBContext;
-import org.openbravo.dal.service.OBDal;
-import org.openbravo.dal.service.OBDao;
-import org.openbravo.erpCommon.utility.OBMessageUtils;
-import org.openbravo.model.ad.system.Client;
-import org.openbravo.model.common.currency.Currency;
-import org.openbravo.model.common.enterprise.DocumentType;
-import org.openbravo.model.common.enterprise.Organization;
-import org.openbravo.model.financialmgmt.payment.DoubtfulDebt;
-import org.openbravo.model.financialmgmt.payment.DoubtfulDebtRun;
-import org.openbravo.model.financialmgmt.payment.FIN_PaymentSchedule;
-import org.openbravo.model.financialmgmt.payment.FIN_PaymentScheduleDetail;
-import org.openbravo.service.db.CallStoredProcedure;
-import org.openbravo.service.db.DbUtility;
-
-public class DoubtFulDebtPickEditLines extends BaseProcessActionHandler {
-  private static Logger log = Logger.getLogger(DoubtFulDebtPickEditLines.class);
-
-  @Override
-  protected JSONObject doExecute(Map<String, Object> parameters, String content) {
-    JSONObject jsonRequest = null;
-    JSONObject errorMessage = new JSONObject();
-    try {
-      OBContext.setAdminMode(true);
-      log.debug(jsonRequest);
-      errorMessage.put("severity", "success");
-      errorMessage.put("text", OBMessageUtils.messageBD("Success"));
-      jsonRequest = new JSONObject(content);
-
-      // When the focus is NOT in the tab of the button (i.e. any child tab) and the tab does not
-      // contain any record, the inpfinDoubtfulDebtRunId parameter contains "null" string. Use
-      // FIN_Doubtful_Debt_Run_ID instead because it always contains the id of the selected doubtful
-      // debt run. Issue 20585: https://issues.openbravo.com/view.php?id=20585
-      final String strDoubtFulDebtRunId = jsonRequest.getString("FIN_Doubtful_Debt_Run_ID");
-      final DoubtfulDebtRun doubtfulDebtRun = OBDal.getInstance().get(DoubtfulDebtRun.class,
-          strDoubtFulDebtRunId);
-
-      if (doubtfulDebtRun != null) {
-        List<String> idList = OBDao.getIDListFromOBObject(doubtfulDebtRun.getFINDoubtfulDebtList());
-        errorMessage = createDoubtfulDebt(jsonRequest, idList);
-      }
-
-      jsonRequest.put("message", errorMessage);
-
-    } catch (Exception e) {
-      OBDal.getInstance().rollbackAndClose();
-      log.error("DoubtFulDebtPickeditLines error: " + e.getMessage(), e);
-
-      Throwable ex = DbUtility.getUnderlyingSQLException(e);
-      String message = OBMessageUtils.translateError(ex.getMessage()).getMessage();
-      try {
-        errorMessage = new JSONObject();
-        errorMessage.put("severity", "error");
-        errorMessage.put("text", message);
-        jsonRequest.put("message", errorMessage);
-      } catch (JSONException ignore) {
-        ignore.printStackTrace();
-      }
-
-    } finally {
-      OBContext.restorePreviousMode();
-    }
-    return jsonRequest;
-  }
-
-  private JSONObject createDoubtfulDebt(JSONObject jsonRequest, List<String> idList)
-      throws JSONException {
-    final JSONArray selectedLines = jsonRequest.getJSONArray("_selection");
-    final String strDoubtFulDebtRunId = jsonRequest.getString("FIN_Doubtful_Debt_Run_ID");
-    final DoubtfulDebtRun doubtfulDebtRun = OBDal.getInstance().get(DoubtfulDebtRun.class,
-        strDoubtFulDebtRunId);
-    DocumentType documentType = null;
-    Currency currency = null;
-    JSONObject message = new JSONObject();
-    message.put("severity", "success");
-
-    DoubtfulDebt newDoubtfulDebt = null;
-    int cont = 0;
-    for (int i = 0; i < selectedLines.length(); i++) {
-      JSONObject selectedLine = selectedLines.getJSONObject(i);
-
-      BigDecimal amount = new BigDecimal(selectedLine.getString("doubtfulDebtAmount"));
-
-      if (amount.compareTo(BigDecimal.ZERO) != 0) {
-        String strDebtdId = selectedLine.getString("fINDoubtfulDebt");
-        String strPaymentSchedule = selectedLine.getString("id");
-        String strCurrency = selectedLine.getString("currency");
-        FIN_PaymentSchedule paymentSchedule = (FIN_PaymentSchedule) OBDal.getInstance().getProxy(
-            FIN_PaymentSchedule.ENTITY_NAME, strPaymentSchedule);
-        boolean notExistsDebtLine = idList.contains(strDebtdId);
-        if (notExistsDebtLine) {
-          newDoubtfulDebt = OBDal.getInstance().get(DoubtfulDebt.class, strDebtdId);
-          idList.remove(strDebtdId);
-        } else {
-          newDoubtfulDebt = OBProvider.getInstance().get(DoubtfulDebt.class);
-          if (documentType == null) {
-            documentType = getDoubtfulDebtDocumentType(doubtfulDebtRun.getClient(),
-                doubtfulDebtRun.getOrganization());
-          }
-          if (currency == null) {
-            currency = (Currency) OBDal.getInstance().getProxy(Currency.ENTITY_NAME, strCurrency);
-          }
-          newDoubtfulDebt.setClient(doubtfulDebtRun.getClient());
-          newDoubtfulDebt.setOrganization(doubtfulDebtRun.getOrganization());
-          newDoubtfulDebt.setAccountingDate(doubtfulDebtRun.getRundate());
-          newDoubtfulDebt.setDescription(doubtfulDebtRun.getDescription());
-          // TODO: set document number
-          newDoubtfulDebt.setDocumentNo(FIN_Utility.getDocumentNo(documentType,
-              documentType.getTable() != null ? documentType.getTable().getDBTableName() : ""));
-          newDoubtfulDebt.setCurrency(currency);
-          newDoubtfulDebt.setFINDoubtfulDebtRun(doubtfulDebtRun);
-          newDoubtfulDebt.setDocumentType(documentType);
-          newDoubtfulDebt.setFINPaymentSchedule(paymentSchedule);
-          // Dimensions
-          newDoubtfulDebt.setBusinessPartner(paymentSchedule.getInvoice().getBusinessPartner());
-          newDoubtfulDebt.setProject(paymentSchedule.getInvoice().getProject());
-          newDoubtfulDebt.setCostCenter(paymentSchedule.getInvoice().getCostcenter());
-          newDoubtfulDebt.setStDimension(paymentSchedule.getInvoice().getStDimension());
-          newDoubtfulDebt.setNdDimension(paymentSchedule.getInvoice().getNdDimension());
-          newDoubtfulDebt.setSalesCampaign(paymentSchedule.getInvoice().getSalesCampaign());
-          newDoubtfulDebt.setActivity(paymentSchedule.getInvoice().getActivity());
-
-          OBDal.getInstance().save(newDoubtfulDebt);
-          OBDal.getInstance().save(doubtfulDebtRun);
-        }
-        newDoubtfulDebt.setAmount(amount);
-        // TODO: Review processing of documents (to implement as well reactivate...
-        // Set processed = Yes
-        newDoubtfulDebt.setProcessed(true);
-        doubtfulDebtRun.setProcessed(true);
-        OBDal.getInstance().save(newDoubtfulDebt);
-        OBDal.getInstance().save(doubtfulDebtRun);
-
-        updateDoubtfulDebtScheduleDetails(paymentSchedule, amount);
-      }
-
-      cont++;
-    }
-
-    OBDal.getInstance().flush();
-
-    removeNonSelectedLines(idList, doubtfulDebtRun);
-    message.put("text", cont + " " + OBMessageUtils.messageBD("RowsInserted"));
-    return message;
-  }
-
-  private void removeNonSelectedLines(List<String> idList, DoubtfulDebtRun doubtfulDebtRun) {
-    if (idList.size() > 0) {
-      for (String id : idList) {
-        DoubtfulDebt dd = OBDal.getInstance().get(DoubtfulDebt.class, id);
-        FIN_PaymentSchedule salesInvoicePaymentSchedule = dd.getFINPaymentSchedule();
-        for (FIN_PaymentScheduleDetail psd : salesInvoicePaymentSchedule
-            .getFINPaymentScheduleDetailInvoicePaymentScheduleList()) {
-          if (psd.getPaymentDetails() == null && !psd.isCanceled()) {
-            psd.setDebtAmount(psd.getDebtAmount().subtract(dd.getAmount()));
-            OBDal.getInstance().save(psd);
-          }
-        }
-        doubtfulDebtRun.getFINDoubtfulDebtList().remove(dd);
-        OBDal.getInstance().remove(dd);
-      }
-      OBDal.getInstance().save(doubtfulDebtRun);
-      OBDal.getInstance().flush();
-    }
-  }
-
-  private void updateDoubtfulDebtScheduleDetails(FIN_PaymentSchedule salesInvoicePaymentSchedule,
-      BigDecimal debtAmount) {
-    for (FIN_PaymentScheduleDetail psd : salesInvoicePaymentSchedule
-        .getFINPaymentScheduleDetailInvoicePaymentScheduleList()) {
-      if (psd.getPaymentDetails() == null && !psd.isCanceled()) {
-        // Pending amount should be greater or equals than the doubtful debt amount
-        if (psd.getAmount().compareTo(debtAmount) >= 0) {
-          psd.setDebtAmount(psd.getDebtAmount().add(debtAmount));
-          OBDal.getInstance().save(psd);
-        }
-      }
-    }
-  }
-
-  private DocumentType getDoubtfulDebtDocumentType(Client client, Organization organization) {
-    final List<Object> parameters = new ArrayList<Object>();
-    parameters.add(client.getId());
-    parameters.add(organization.getId());
-    parameters.add("DDB");
-    String strDocTypeId = (String) CallStoredProcedure.getInstance().call("AD_GET_DOCTYPE",
-        parameters, null);
-    // TODO: manage no document type: throw exception
-    return OBDal.getInstance().get(DocumentType.class, strDocTypeId);
-  }
-}
--- a/src/org/openbravo/erpCommon/ad_forms/AcctServer.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/AcctServer.java	Thu Dec 20 20:23:07 2012 +0100
@@ -1702,12 +1702,12 @@
         obqParameters.setFilterOnReadableOrganization(false);
         final List<CategoryAccounts> customerAccounts = obqParameters.list();
         if (customerAccounts != null && customerAccounts.size() > 0
-            && customerAccounts.get(0).getUnrealizedLossesAcct() != null) {
-          strValidCombination = customerAccounts.get(0).getUnrealizedLossesAcct().getId();
+            && customerAccounts.get(0).getDoubtfulDebtAccount() != null) {
+          strValidCombination = customerAccounts.get(0).getDoubtfulDebtAccount().getId();
         }
         if (strValidCombination.equals("")) {
           Map<String, String> parameters = new HashMap<String, String>();
-          parameters.put("Account", "@UnrealizedLoss@");
+          parameters.put("Account", "@DoubtfulDebt@");
           parameters.put("Entity", bp.getBusinessPartnerCategory().getIdentifier());
           parameters.put(
               "AccountingSchema",
@@ -1786,7 +1786,7 @@
    * 
    * @param BPartnerId
    *          : ID of the Business Partner
-   * @param isProvisionExpense
+   * @param isExpense
    *          : Provision Expense Account. If not it applies to Provision Applied account
    * @param as
    *          : Accounting Schema
@@ -1795,7 +1795,7 @@
    * @return Account
    * @throws ServletException
    */
-  public final Account getAccountBPartnerProvision(String BPartnerId, boolean isProvisionExpense,
+  public final Account getAccountBPartnerBadDebt(String BPartnerId, boolean isExpense,
       AcctSchema as, ConnectionProvider conn) throws ServletException {
 
     String strValidCombination = "";
@@ -1811,21 +1811,19 @@
     obqParameters.setFilterOnReadableClients(false);
     obqParameters.setFilterOnReadableOrganization(false);
     final List<CategoryAccounts> customerAccounts = obqParameters.list();
-    // TODO: Review Accounts
     if (customerAccounts != null && customerAccounts.size() > 0
-        && customerAccounts.get(0).getBadDebtExpenseAccount() != null && isProvisionExpense) {
+        && customerAccounts.get(0).getBadDebtExpenseAccount() != null && isExpense) {
       strValidCombination = customerAccounts.get(0).getBadDebtExpenseAccount().getId();
     } else if (customerAccounts != null && customerAccounts.size() > 0
-        && customerAccounts.get(0).getAllowanceForDoubtfulDebtAccount() != null
-        && !isProvisionExpense) {
-      strValidCombination = customerAccounts.get(0).getAllowanceForDoubtfulDebtAccount().getId();
+        && customerAccounts.get(0).getBadDebtRevenueAccount() != null && !isExpense) {
+      strValidCombination = customerAccounts.get(0).getBadDebtRevenueAccount().getId();
     }
     if (strValidCombination.equals("")) {
       Map<String, String> parameters = new HashMap<String, String>();
-      if (isProvisionExpense) {
+      if (isExpense) {
         parameters.put("Account", "@BadDebtExpenseAccount@");
       } else {
-        parameters.put("Account", "@AllowanceForDoubtfulDebtAccount@");
+        parameters.put("Account", "@BadDebtRevenueAccount@");
       }
       parameters.put("Entity", bp.getBusinessPartnerCategory().getIdentifier());
       parameters.put(
@@ -1838,7 +1836,57 @@
       throw new IllegalStateException();
     }
     return new Account(conn, strValidCombination);
-  } // getAccountBPartnerProvision
+  } // getAccountBPartnerBadDebt
+
+  /**
+   * It gets Account to be used to provision for the selected Business Partner
+   * 
+   * @param BPartnerId
+   *          : ID of the Business Partner
+   * @param isExpense
+   *          : Provision Expense Account. If not it applies to Provision Applied account
+   * @param as
+   *          : Accounting Schema
+   * @param conn
+   *          : Connection Provider
+   * @return Account
+   * @throws ServletException
+   */
+  public final Account getAccountBPartnerAllowanceForDoubtfulDebt(String BPartnerId, AcctSchema as,
+      ConnectionProvider conn) throws ServletException {
+
+    String strValidCombination = "";
+    final StringBuilder whereClause = new StringBuilder();
+    BusinessPartner bp = OBDal.getInstance().get(BusinessPartner.class, BPartnerId);
+    whereClause.append(" as cuscata ");
+    whereClause.append(" where cuscata.businessPartnerCategory.id = '"
+        + bp.getBusinessPartnerCategory().getId() + "'");
+    whereClause.append(" and cuscata.accountingSchema.id = '" + as.m_C_AcctSchema_ID + "'");
+
+    final OBQuery<CategoryAccounts> obqParameters = OBDal.getInstance().createQuery(
+        CategoryAccounts.class, whereClause.toString());
+    obqParameters.setFilterOnReadableClients(false);
+    obqParameters.setFilterOnReadableOrganization(false);
+    final List<CategoryAccounts> customerAccounts = obqParameters.list();
+    if (customerAccounts != null && customerAccounts.size() > 0
+        && customerAccounts.get(0).getAllowanceForDoubtfulDebtAccount() != null) {
+      strValidCombination = customerAccounts.get(0).getAllowanceForDoubtfulDebtAccount().getId();
+    }
+    if (strValidCombination.equals("")) {
+      Map<String, String> parameters = new HashMap<String, String>();
+      parameters.put("Account", "@AllowanceForDoubtfulDebtAccount@");
+      parameters.put("Entity", bp.getBusinessPartnerCategory().getIdentifier());
+      parameters.put(
+          "AccountingSchema",
+          OBDal
+              .getInstance()
+              .get(org.openbravo.model.financialmgmt.accounting.coa.AcctSchema.class,
+                  as.getC_AcctSchema_ID()).getIdentifier());
+      setMessageResult(conn, STATUS_InvalidAccount, "error", parameters);
+      throw new IllegalStateException();
+    }
+    return new Account(conn, strValidCombination);
+  } // getAccountBPartnerBadDebt
 
   /**
    * Get the account for GL Item
--- a/src/org/openbravo/erpCommon/ad_forms/DocDoubtfulDebt.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocDoubtfulDebt.java	Thu Dec 20 20:23:07 2012 +0100
@@ -160,10 +160,10 @@
           nextSeqNo(SeqNo), DocumentType, conn);
       // Provision
       Fact_Acct_Group_ID = SequenceIdData.getUUID();
-      fact.createLine(null, getAccountBPartnerProvision(C_BPartner_ID, true, as, conn),
+      fact.createLine(null, getAccountBPartnerBadDebt(C_BPartner_ID, true, as, conn),
           this.C_Currency_ID, bpAmountConverted.toString(), "", Fact_Acct_Group_ID,
           nextSeqNo(SeqNo), DocumentType, conn);
-      fact.createLine(null, getAccountBPartnerProvision(C_BPartner_ID, false, as, conn),
+      fact.createLine(null, getAccountBPartnerBadDebt(C_BPartner_ID, false, as, conn),
           this.C_Currency_ID, "", bpAmountConverted.toString(), Fact_Acct_Group_ID,
           nextSeqNo(SeqNo), DocumentType, conn);
     } finally {
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java	Thu Dec 20 20:23:07 2012 +0100
@@ -138,6 +138,8 @@
             .toString());
         FieldProviderFactory.setField(data[i], "Amount", paymentDetails.get(i).getAmount()
             .toString());
+        FieldProviderFactory.setField(data[i], "DoubtFulDebtAmount", paymentDetails.get(i)
+            .getFINPaymentScheduleDetailList().get(0).getDebtAmount().toString());
         FieldProviderFactory.setField(data[i], "isprepayment",
             paymentDetails.get(i).isPrepayment() ? "Y" : "N");
         // Check if payment against invoice is in a previous date than invoice accounting date
@@ -313,6 +315,7 @@
                   .getFINPaymentScheduleDetailList().get(0).getInvoicePaymentSchedule()
                   .getInvoice()
                   : null);
+          docLine.setDoubtFulDebtAmount(new BigDecimal(data[i].getField("DoubtFulDebtAmount")));
         }
         docLine.setIsPrepayment(data[i].getField("isprepayment"));
         docLine.setCGlItemId(data[i].getField("cGlItemId"));
@@ -482,6 +485,27 @@
                 TABLEID_Payment, transaction.getFinPayment().getId(), paymentCurrency.getId(),
                 as.m_C_Currency_ID, line, as, fact, Fact_Acct_Group_ID, nextSeqNo(SeqNo), conn);
           }
+          if (line.getDoubtFulDebtAmount().signum() != 0) {
+            BigDecimal doubtFulDebtAmount = convertAmount(line.getDoubtFulDebtAmount(), isReceipt,
+                DateAcct, TABLEID_Invoice, invoice.getId(), C_Currency_ID, as.m_C_Currency_ID,
+                line, as, fact, Fact_Acct_Group_ID, nextSeqNo(SeqNo), conn, false);
+            fact.createLine(
+                line,
+                getAccountBPartner(
+                    (line.m_C_BPartner_ID == null || line.m_C_BPartner_ID.equals("")) ? this.C_BPartner_ID
+                        : line.m_C_BPartner_ID, as, true, false, true, conn), C_Currency_ID, "",
+                doubtFulDebtAmount.toString(), Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType,
+                conn);
+            bpAmountConverted = bpAmountConverted.subtract(doubtFulDebtAmount);
+            String Fact_Acct_Group_ID2 = SequenceIdData.getUUID();
+            fact.createLine(line,
+                getAccountBPartnerAllowanceForDoubtfulDebt(C_BPartner_ID, as, conn),
+                this.C_Currency_ID, doubtFulDebtAmount.toString(), "", Fact_Acct_Group_ID2,
+                nextSeqNo(SeqNo), DocumentType, conn);
+            fact.createLine(line, getAccountBPartnerBadDebt(C_BPartner_ID, false, as, conn),
+                this.C_Currency_ID, "", doubtFulDebtAmount.toString(), Fact_Acct_Group_ID2,
+                nextSeqNo(SeqNo), DocumentType, conn);
+          }
           fact.createLine(
               line,
               getAccountBPartner(
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java	Thu Dec 20 20:23:07 2012 +0100
@@ -332,10 +332,11 @@
               bpAmountConverted = new BigDecimal(bpAmountConverted).subtract(doubtFulDebtAmount)
                   .toString();
               String Fact_Acct_Group_ID2 = SequenceIdData.getUUID();
-              fact.createLine(null, getAccountBPartnerProvision(C_BPartner_ID, false, as, conn),
+              fact.createLine(line,
+                  getAccountBPartnerAllowanceForDoubtfulDebt(C_BPartner_ID, as, conn),
                   this.C_Currency_ID, doubtFulDebtAmount.toString(), "", Fact_Acct_Group_ID2,
                   nextSeqNo(SeqNo), DocumentType, conn);
-              fact.createLine(null, getAccountBPartnerProvision(C_BPartner_ID, true, as, conn),
+              fact.createLine(line, getAccountBPartnerBadDebt(C_BPartner_ID, false, as, conn),
                   this.C_Currency_ID, "", doubtFulDebtAmount.toString(), Fact_Acct_Group_ID2,
                   nextSeqNo(SeqNo), DocumentType, conn);
             }
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java	Thu Dec 20 20:23:07 2012 +0100
@@ -198,6 +198,8 @@
             .toString());
         FieldProviderFactory.setField(data[i], "Amount", paymentDetails.get(i).getAmount()
             .toString());
+        FieldProviderFactory.setField(data[i], "DoubtFulDebtAmount", paymentDetails.get(i)
+            .getFINPaymentScheduleDetailList().get(0).getDebtAmount().toString());
         FieldProviderFactory.setField(data[i], "isprepayment",
             paymentDetails.get(i).isPrepayment() ? "Y" : "N");
         // Check if payment against invoice is in a previous date than invoice accounting date
@@ -633,6 +635,7 @@
           continue;
         DocLine_FINReconciliation detail = new DocLine_FINReconciliation(DocumentType, Record_ID,
             line.Line_ID);
+        detail.setDoubtFulDebtAmount(new BigDecimal(data[i].getField("DoubtFulDebtAmount")));
         detail.setCGlItemId(data[i].getField("cGlItemId"));
         detail.m_C_BPartner_ID = data[i].getField("cBpartnerId");
         detail.m_C_Project_ID = data[i].getField("cProjectId");
@@ -819,6 +822,25 @@
             TABLEID_Payment, paymentDetail.getFinPayment().getId(), paymentCurrency.getId(),
             as.m_C_Currency_ID, line, as, fact, Fact_Acct_Group_ID, nextSeqNo(SeqNo), conn);
       }
+      if (line.getDoubtFulDebtAmount().signum() != 0) {
+        BigDecimal doubtFulDebtAmount = convertAmount(line.getDoubtFulDebtAmount(), isReceipt,
+            DateAcct, TABLEID_Invoice, invoice.getId(), C_Currency_ID, as.m_C_Currency_ID, line,
+            as, fact, Fact_Acct_Group_ID, nextSeqNo(SeqNo), conn, false);
+        fact.createLine(
+            line,
+            getAccountBPartner(
+                (line.m_C_BPartner_ID == null || line.m_C_BPartner_ID.equals("")) ? this.C_BPartner_ID
+                    : line.m_C_BPartner_ID, as, true, false, true, conn), C_Currency_ID, "",
+            doubtFulDebtAmount.toString(), Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn);
+        bpAmountConverted = bpAmountConverted.subtract(doubtFulDebtAmount);
+        String Fact_Acct_Group_ID2 = SequenceIdData.getUUID();
+        fact.createLine(line, getAccountBPartnerAllowanceForDoubtfulDebt(C_BPartner_ID, as, conn),
+            this.C_Currency_ID, doubtFulDebtAmount.toString(), "", Fact_Acct_Group_ID2,
+            nextSeqNo(SeqNo), DocumentType, conn);
+        fact.createLine(line, getAccountBPartnerBadDebt(C_BPartner_ID, false, as, conn),
+            this.C_Currency_ID, "", doubtFulDebtAmount.toString(), Fact_Acct_Group_ID2,
+            nextSeqNo(SeqNo), DocumentType, conn);
+      }
       fact.createLine(
           line,
           getAccountBPartner(bpartnerId, as, isReceipt,
--- a/src/org/openbravo/erpCommon/ad_forms/DocLine_FINFinAccTransaction.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_FINFinAccTransaction.java	Thu Dec 20 20:23:07 2012 +0100
@@ -18,6 +18,8 @@
  */
 package org.openbravo.erpCommon.ad_forms;
 
+import java.math.BigDecimal;
+
 import org.apache.log4j.Logger;
 import org.openbravo.dal.service.OBDal;
 import org.openbravo.model.common.invoice.Invoice;
@@ -34,6 +36,7 @@
   String finPaymentId = "";
   String WriteOffAmt = "";
   boolean isPrepaymentAgainstInvoice = false;
+  BigDecimal doubtFulDebtAmount = BigDecimal.ZERO;
   Invoice invoice = null;
 
   public String getcGlItemId() {
@@ -182,6 +185,14 @@
     cGlItemId = glItemId;
   }
 
+  public BigDecimal getDoubtFulDebtAmount() {
+    return doubtFulDebtAmount;
+  }
+
+  public void setDoubtFulDebtAmount(BigDecimal doubtFulDebtAmount) {
+    this.doubtFulDebtAmount = doubtFulDebtAmount;
+  }
+
   public DocLine_FINFinAccTransaction(String DocumentType, String TrxHeader_ID, String TrxLine_ID) {
     super(DocumentType, TrxHeader_ID, TrxLine_ID);
     Line_ID = TrxLine_ID;
--- a/src/org/openbravo/erpCommon/ad_forms/DocLine_FINReconciliation.java	Tue Dec 18 10:00:20 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/DocLine_FINReconciliation.java	Thu Dec 20 20:23:07 2012 +0100
@@ -18,6 +18,8 @@
  */
 package org.openbravo.erpCommon.ad_forms;
 
+import java.math.BigDecimal;
+
 import org.apache.log4j.Logger;
 
 public class DocLine_FINReconciliation extends DocLine {
@@ -31,6 +33,7 @@
   String isPrepayment = "";
   String finPaymentId = "";
   String WriteOffAmt = "";
+  BigDecimal doubtFulDebtAmount = BigDecimal.ZERO;
 
   /**
    * @return the finFinAccTransactionId
@@ -152,6 +155,14 @@
     cGlItemId = glItemId;
   }
 
+  public BigDecimal getDoubtFulDebtAmount() {
+    return doubtFulDebtAmount;
+  }
+
+  public void setDoubtFulDebtAmount(BigDecimal doubtFulDebtAmount) {
+    this.doubtFulDebtAmount = doubtFulDebtAmount;
+  }
+
   public DocLine_FINReconciliation(String DocumentType, String TrxHeader_ID, String TrxLine_ID) {
     super(DocumentType, TrxHeader_ID, TrxLine_ID);
     Line_ID = TrxLine_ID;