Fixes Issue 40469:CreateFrom cleanup
authorAtul Gaware <atul.gaware@openbravo.com>
Tue, 30 Apr 2019 14:51:23 +0530
changeset 35800 86ca5f1688dd
parent 35799 7fa78055252e
child 35801 aef2b99aa990
Fixes Issue 40469:CreateFrom cleanup

** Remove printPageBank, CreateFrom_Bank.html, xml, xsql.
** Remove printPagePay.
** Remove printPageSettlement, CreateFrom_Settlement.html, xml, xsql.
** Remove printPageDPManagement, CreateFrom_DPManagement.html, xml, xsql.
** Remove printPageCRemittance, CreateFrom_CRemittance.html, xml, xsql.
** Remove unused ad_message, ad_textinterfaces for above html files.
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_TEXTINTERFACES.xml
src-db/database/sourcedata/AD_MESSAGE.xml
src-db/database/sourcedata/AD_TEXTINTERFACES.xml
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.xml
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank_data.xsql
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.xml
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance_data.xsql
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.xml
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement_data.xsql
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.xml
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement_data.xsql
--- a/modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Thu Apr 25 14:49:30 2019 +0530
+++ b/modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Tue Apr 30 14:51:23 2019 +0530
@@ -539,6 +539,17 @@
 <!--8747F91C31704FD0A9EC0C35237158BE-->  <AD_MODULE_ID><![CDATA[2A5EE903D7974AC298C0504FBC4501A7]]></AD_MODULE_ID>
 <!--8747F91C31704FD0A9EC0C35237158BE--></AD_TEXTINTERFACES>
 
+<!--88CAFD8B49CA463CAE81E18104BE5511--><AD_TEXTINTERFACES>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <AD_TEXTINTERFACES_ID><![CDATA[88CAFD8B49CA463CAE81E18104BE5511]]></AD_TEXTINTERFACES_ID>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <TEXT><![CDATA[Amount To]]></TEXT>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <FILENAME><![CDATA[/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReport.html]]></FILENAME>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <ISUSED><![CDATA[Y]]></ISUSED>
+<!--88CAFD8B49CA463CAE81E18104BE5511-->  <AD_MODULE_ID><![CDATA[2A5EE903D7974AC298C0504FBC4501A7]]></AD_MODULE_ID>
+<!--88CAFD8B49CA463CAE81E18104BE5511--></AD_TEXTINTERFACES>
+
 <!--893CD872390148E99FCCAC1714D937A5--><AD_TEXTINTERFACES>
 <!--893CD872390148E99FCCAC1714D937A5-->  <AD_TEXTINTERFACES_ID><![CDATA[893CD872390148E99FCCAC1714D937A5]]></AD_TEXTINTERFACES_ID>
 <!--893CD872390148E99FCCAC1714D937A5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Apr 25 14:49:30 2019 +0530
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Tue Apr 30 14:51:23 2019 +0530
@@ -12787,18 +12787,6 @@
 <!--1000300016-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--1000300016--></AD_MESSAGE>
 
-<!--1000300017--><AD_MESSAGE>
-<!--1000300017-->  <AD_MESSAGE_ID><![CDATA[1000300017]]></AD_MESSAGE_ID>
-<!--1000300017-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--1000300017-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--1000300017-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--1000300017-->  <VALUE><![CDATA[MAX_RECORDS_REACHED]]></VALUE>
-<!--1000300017-->  <MSGTEXT><![CDATA[Your query criteria returned %returned% rows but only the first %shown% are shown. Please enter a more restrictive criteria.]]></MSGTEXT>
-<!--1000300017-->  <MSGTYPE><![CDATA[W]]></MSGTYPE>
-<!--1000300017-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--1000300017-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
-<!--1000300017--></AD_MESSAGE>
-
 <!--1000400000--><AD_MESSAGE>
 <!--1000400000-->  <AD_MESSAGE_ID><![CDATA[1000400000]]></AD_MESSAGE_ID>
 <!--1000400000-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Thu Apr 25 14:49:30 2019 +0530
+++ b/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Tue Apr 30 14:51:23 2019 +0530
@@ -124,16 +124,6 @@
 <!--800172-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--800172--></AD_TEXTINTERFACES>
 
-<!--800175--><AD_TEXTINTERFACES>
-<!--800175-->  <AD_TEXTINTERFACES_ID><![CDATA[800175]]></AD_TEXTINTERFACES_ID>
-<!--800175-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--800175-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--800175-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--800175-->  <TEXT><![CDATA[Show calendar]]></TEXT>
-<!--800175-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--800175-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--800175--></AD_TEXTINTERFACES>
-
 <!--800176--><AD_TEXTINTERFACES>
 <!--800176-->  <AD_TEXTINTERFACES_ID><![CDATA[800176]]></AD_TEXTINTERFACES_ID>
 <!--800176-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -1054,39 +1044,6 @@
 <!--802571-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--802571--></AD_TEXTINTERFACES>
 
-<!--802586--><AD_TEXTINTERFACES>
-<!--802586-->  <AD_TEXTINTERFACES_ID><![CDATA[802586]]></AD_TEXTINTERFACES_ID>
-<!--802586-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--802586-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--802586-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--802586-->  <TEXT><![CDATA[Proposal date]]></TEXT>
-<!--802586-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
-<!--802586-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--802586-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--802586--></AD_TEXTINTERFACES>
-
-<!--802589--><AD_TEXTINTERFACES>
-<!--802589-->  <AD_TEXTINTERFACES_ID><![CDATA[802589]]></AD_TEXTINTERFACES_ID>
-<!--802589-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--802589-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--802589-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--802589-->  <TEXT><![CDATA[Conversion]]></TEXT>
-<!--802589-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
-<!--802589-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--802589-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--802589--></AD_TEXTINTERFACES>
-
-<!--802681--><AD_TEXTINTERFACES>
-<!--802681-->  <AD_TEXTINTERFACES_ID><![CDATA[802681]]></AD_TEXTINTERFACES_ID>
-<!--802681-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--802681-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--802681-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--802681-->  <TEXT><![CDATA[Create from Bank]]></TEXT>
-<!--802681-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
-<!--802681-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--802681-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--802681--></AD_TEXTINTERFACES>
-
 <!--802702--><AD_TEXTINTERFACES>
 <!--802702-->  <AD_TEXTINTERFACES_ID><![CDATA[802702]]></AD_TEXTINTERFACES_ID>
 <!--802702-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -1433,16 +1390,6 @@
 <!--803940-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--803940--></AD_TEXTINTERFACES>
 
-<!--803998--><AD_TEXTINTERFACES>
-<!--803998-->  <AD_TEXTINTERFACES_ID><![CDATA[803998]]></AD_TEXTINTERFACES_ID>
-<!--803998-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--803998-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--803998-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--803998-->  <TEXT><![CDATA[Create from Remittance]]></TEXT>
-<!--803998-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--803998-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--803998--></AD_TEXTINTERFACES>
-
 <!--804021--><AD_TEXTINTERFACES>
 <!--804021-->  <AD_TEXTINTERFACES_ID><![CDATA[804021]]></AD_TEXTINTERFACES_ID>
 <!--804021-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2738,28 +2685,6 @@
 <!--806240-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--806240--></AD_TEXTINTERFACES>
 
-<!--806245--><AD_TEXTINTERFACES>
-<!--806245-->  <AD_TEXTINTERFACES_ID><![CDATA[806245]]></AD_TEXTINTERFACES_ID>
-<!--806245-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--806245-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--806245-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--806245-->  <TEXT><![CDATA[DP Management]]></TEXT>
-<!--806245-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html]]></FILENAME>
-<!--806245-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--806245-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--806245--></AD_TEXTINTERFACES>
-
-<!--806259--><AD_TEXTINTERFACES>
-<!--806259-->  <AD_TEXTINTERFACES_ID><![CDATA[806259]]></AD_TEXTINTERFACES_ID>
-<!--806259-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--806259-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--806259-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--806259-->  <TEXT><![CDATA[Final status]]></TEXT>
-<!--806259-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html]]></FILENAME>
-<!--806259-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--806259-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--806259--></AD_TEXTINTERFACES>
-
 <!--806320--><AD_TEXTINTERFACES>
 <!--806320-->  <AD_TEXTINTERFACES_ID><![CDATA[806320]]></AD_TEXTINTERFACES_ID>
 <!--806320-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2782,17 +2707,6 @@
 <!--806324-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--806324--></AD_TEXTINTERFACES>
 
-<!--806339--><AD_TEXTINTERFACES>
-<!--806339-->  <AD_TEXTINTERFACES_ID><![CDATA[806339]]></AD_TEXTINTERFACES_ID>
-<!--806339-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--806339-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--806339-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--806339-->  <TEXT><![CDATA[Only Applied]]></TEXT>
-<!--806339-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
-<!--806339-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--806339-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--806339--></AD_TEXTINTERFACES>
-
 <!--806342--><AD_TEXTINTERFACES>
 <!--806342-->  <AD_TEXTINTERFACES_ID><![CDATA[806342]]></AD_TEXTINTERFACES_ID>
 <!--806342-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -2815,28 +2729,6 @@
 <!--806347-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--806347--></AD_TEXTINTERFACES>
 
-<!--806370--><AD_TEXTINTERFACES>
-<!--806370-->  <AD_TEXTINTERFACES_ID><![CDATA[806370]]></AD_TEXTINTERFACES_ID>
-<!--806370-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--806370-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--806370-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--806370-->  <TEXT><![CDATA[Create From Settlement]]></TEXT>
-<!--806370-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html]]></FILENAME>
-<!--806370-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--806370-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--806370--></AD_TEXTINTERFACES>
-
-<!--806385--><AD_TEXTINTERFACES>
-<!--806385-->  <AD_TEXTINTERFACES_ID><![CDATA[806385]]></AD_TEXTINTERFACES_ID>
-<!--806385-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--806385-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--806385-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--806385-->  <TEXT><![CDATA[Autocalculated]]></TEXT>
-<!--806385-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html]]></FILENAME>
-<!--806385-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--806385-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--806385--></AD_TEXTINTERFACES>
-
 <!--806433--><AD_TEXTINTERFACES>
 <!--806433-->  <AD_TEXTINTERFACES_ID><![CDATA[806433]]></AD_TEXTINTERFACES_ID>
 <!--806433-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -3442,46 +3334,6 @@
 <!--807022-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--807022--></AD_TEXTINTERFACES>
 
-<!--807023--><AD_TEXTINTERFACES>
-<!--807023-->  <AD_TEXTINTERFACES_ID><![CDATA[807023]]></AD_TEXTINTERFACES_ID>
-<!--807023-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807023-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807023-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807023-->  <TEXT><![CDATA[Amount From ]]></TEXT>
-<!--807023-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807023-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807023--></AD_TEXTINTERFACES>
-
-<!--807025--><AD_TEXTINTERFACES>
-<!--807025-->  <AD_TEXTINTERFACES_ID><![CDATA[807025]]></AD_TEXTINTERFACES_ID>
-<!--807025-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807025-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807025-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807025-->  <TEXT><![CDATA[Amount lower than]]></TEXT>
-<!--807025-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807025-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807025--></AD_TEXTINTERFACES>
-
-<!--807026--><AD_TEXTINTERFACES>
-<!--807026-->  <AD_TEXTINTERFACES_ID><![CDATA[807026]]></AD_TEXTINTERFACES_ID>
-<!--807026-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807026-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807026-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807026-->  <TEXT><![CDATA[Amount To]]></TEXT>
-<!--807026-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807026-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807026--></AD_TEXTINTERFACES>
-
-<!--807027--><AD_TEXTINTERFACES>
-<!--807027-->  <AD_TEXTINTERFACES_ID><![CDATA[807027]]></AD_TEXTINTERFACES_ID>
-<!--807027-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807027-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807027-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807027-->  <TEXT><![CDATA[Amount to]]></TEXT>
-<!--807027-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807027-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807027--></AD_TEXTINTERFACES>
-
 <!--807029--><AD_TEXTINTERFACES>
 <!--807029-->  <AD_TEXTINTERFACES_ID><![CDATA[807029]]></AD_TEXTINTERFACES_ID>
 <!--807029-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -3702,16 +3554,6 @@
 <!--807065-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--807065--></AD_TEXTINTERFACES>
 
-<!--807066--><AD_TEXTINTERFACES>
-<!--807066-->  <AD_TEXTINTERFACES_ID><![CDATA[807066]]></AD_TEXTINTERFACES_ID>
-<!--807066-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807066-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807066-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807066-->  <TEXT><![CDATA[Collection]]></TEXT>
-<!--807066-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807066-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807066--></AD_TEXTINTERFACES>
-
 <!--807067--><AD_TEXTINTERFACES>
 <!--807067-->  <AD_TEXTINTERFACES_ID><![CDATA[807067]]></AD_TEXTINTERFACES_ID>
 <!--807067-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -3802,16 +3644,6 @@
 <!--807082-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--807082--></AD_TEXTINTERFACES>
 
-<!--807083--><AD_TEXTINTERFACES>
-<!--807083-->  <AD_TEXTINTERFACES_ID><![CDATA[807083]]></AD_TEXTINTERFACES_ID>
-<!--807083-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807083-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807083-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807083-->  <TEXT><![CDATA[Create from Settlement]]></TEXT>
-<!--807083-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807083-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807083--></AD_TEXTINTERFACES>
-
 <!--807084--><AD_TEXTINTERFACES>
 <!--807084-->  <AD_TEXTINTERFACES_ID><![CDATA[807084]]></AD_TEXTINTERFACES_ID>
 <!--807084-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -4184,16 +4016,6 @@
 <!--807154-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--807154--></AD_TEXTINTERFACES>
 
-<!--807155--><AD_TEXTINTERFACES>
-<!--807155-->  <AD_TEXTINTERFACES_ID><![CDATA[807155]]></AD_TEXTINTERFACES_ID>
-<!--807155-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807155-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807155-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807155-->  <TEXT><![CDATA[From Date planned]]></TEXT>
-<!--807155-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807155-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807155--></AD_TEXTINTERFACES>
-
 <!--807156--><AD_TEXTINTERFACES>
 <!--807156-->  <AD_TEXTINTERFACES_ID><![CDATA[807156]]></AD_TEXTINTERFACES_ID>
 <!--807156-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -5004,16 +4826,6 @@
 <!--807280-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--807280--></AD_TEXTINTERFACES>
 
-<!--807291--><AD_TEXTINTERFACES>
-<!--807291-->  <AD_TEXTINTERFACES_ID><![CDATA[807291]]></AD_TEXTINTERFACES_ID>
-<!--807291-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807291-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807291-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807291-->  <TEXT><![CDATA[Receipt type]]></TEXT>
-<!--807291-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807291-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807291--></AD_TEXTINTERFACES>
-
 <!--807294--><AD_TEXTINTERFACES>
 <!--807294-->  <AD_TEXTINTERFACES_ID><![CDATA[807294]]></AD_TEXTINTERFACES_ID>
 <!--807294-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -5424,16 +5236,6 @@
 <!--807358-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--807358--></AD_TEXTINTERFACES>
 
-<!--807360--><AD_TEXTINTERFACES>
-<!--807360-->  <AD_TEXTINTERFACES_ID><![CDATA[807360]]></AD_TEXTINTERFACES_ID>
-<!--807360-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--807360-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--807360-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--807360-->  <TEXT><![CDATA[To Date planned]]></TEXT>
-<!--807360-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--807360-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--807360--></AD_TEXTINTERFACES>
-
 <!--807361--><AD_TEXTINTERFACES>
 <!--807361-->  <AD_TEXTINTERFACES_ID><![CDATA[807361]]></AD_TEXTINTERFACES_ID>
 <!--807361-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -14767,17 +14569,6 @@
 <!--5E3AD9477F1B4EC0E040007F01004301-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--5E3AD9477F1B4EC0E040007F01004301--></AD_TEXTINTERFACES>
 
-<!--5E3AD9477F1C4EC0E040007F01004301--><AD_TEXTINTERFACES>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <AD_TEXTINTERFACES_ID><![CDATA[5E3AD9477F1C4EC0E040007F01004301]]></AD_TEXTINTERFACES_ID>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <TEXT><![CDATA[Proposed]]></TEXT>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--5E3AD9477F1C4EC0E040007F01004301-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--5E3AD9477F1C4EC0E040007F01004301--></AD_TEXTINTERFACES>
-
 <!--5E3AD9477F1D4EC0E040007F01004301--><AD_TEXTINTERFACES>
 <!--5E3AD9477F1D4EC0E040007F01004301-->  <AD_TEXTINTERFACES_ID><![CDATA[5E3AD9477F1D4EC0E040007F01004301]]></AD_TEXTINTERFACES_ID>
 <!--5E3AD9477F1D4EC0E040007F01004301-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -17539,17 +17330,6 @@
 <!--7FE8FB5A56364220AFD4C71D2E2D457B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--7FE8FB5A56364220AFD4C71D2E2D457B--></AD_TEXTINTERFACES>
 
-<!--7FF3469B9A49B90AE040007F01007549--><AD_TEXTINTERFACES>
-<!--7FF3469B9A49B90AE040007F01007549-->  <AD_TEXTINTERFACES_ID><![CDATA[7FF3469B9A49B90AE040007F01007549]]></AD_TEXTINTERFACES_ID>
-<!--7FF3469B9A49B90AE040007F01007549-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--7FF3469B9A49B90AE040007F01007549-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--7FF3469B9A49B90AE040007F01007549-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--7FF3469B9A49B90AE040007F01007549-->  <TEXT><![CDATA[Payment Status]]></TEXT>
-<!--7FF3469B9A49B90AE040007F01007549-->  <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
-<!--7FF3469B9A49B90AE040007F01007549-->  <ISUSED><![CDATA[Y]]></ISUSED>
-<!--7FF3469B9A49B90AE040007F01007549-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
-<!--7FF3469B9A49B90AE040007F01007549--></AD_TEXTINTERFACES>
-
 <!--80A6CA8DAFBC49C3B64D4E2D09381C28--><AD_TEXTINTERFACES>
 <!--80A6CA8DAFBC49C3B64D4E2D09381C28-->  <AD_TEXTINTERFACES_ID><![CDATA[80A6CA8DAFBC49C3B64D4E2D09381C28]]></AD_TEXTINTERFACES_ID>
 <!--80A6CA8DAFBC49C3B64D4E2D09381C28-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java	Thu Apr 25 14:49:30 2019 +0530
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java	Tue Apr 30 14:51:23 2019 +0530
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2001-2018 Openbravo SLU
+ * All portions are Copyright (C) 2001-2019 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  Cheli Pineda__________________________.
  ************************************************************************
@@ -38,15 +38,11 @@
 import org.openbravo.dal.service.OBDal;
 import org.openbravo.data.FieldProvider;
 import org.openbravo.database.SessionInfo;
-import org.openbravo.erpCommon.businessUtility.Tree;
-import org.openbravo.erpCommon.businessUtility.TreeData;
-import org.openbravo.erpCommon.utility.ComboTableData;
 import org.openbravo.erpCommon.utility.OBError;
 import org.openbravo.erpCommon.utility.SequenceIdData;
 import org.openbravo.erpCommon.utility.Utility;
 import org.openbravo.materialmgmt.UOMUtil;
 import org.openbravo.model.common.invoice.Invoice;
-import org.openbravo.utils.Replace;
 import org.openbravo.xmlEngine.XmlDocument;
 
 public class CreateFrom extends HttpSecureAppServlet {
@@ -155,8 +151,7 @@
       callPrintPage(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
           strTabName, strDateInvoiced, strBPartnerLocation, strPriceList, strBPartner,
           strStatementDate, strBankAccount, strOrg, strIsreceipt);
-    } else if (vars.commandIn("FIND_PO", "FIND_INVOICE", "FIND_SHIPMENT", "FIND_BANK",
-        "FIND_SETTLEMENT")) {
+    } else if (vars.commandIn("FIND_PO", "FIND_INVOICE")) {
       final String strKey = vars.getRequiredStringParameter("inpKey");
       final String strTableId = vars.getStringParameter("inpTableId");
       final String strProcessId = vars.getStringParameter("inpProcessId");
@@ -182,7 +177,7 @@
       callPrintPage(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
           strTabName, strDateInvoiced, strBPartnerLocation, strPriceList, strBPartner,
           strStatementDate, strBankAccount, strOrg, strIsreceipt);
-    } else if (vars.commandIn("REFRESH_INVOICES", "REFRESH_SHIPMENTS")) {
+    } else if (vars.commandIn("REFRESH_INVOICES")) {
       final String strBPartner = vars.getStringParameter("inpcBpartnerId");
       final String strWindowId = vars.getStringParameter("inpWindowId");
       final String strKey = vars.getRequiredStringParameter("inpKey");
@@ -252,14 +247,8 @@
   }
 
   private String pageType(String strTableId) {
-    if (strTableId.equals("392")) {
-      return "Bank";
-    } else if (strTableId.equals("319")) {
+    if (strTableId.equals("319")) {
       return "Shipment";
-    } else if (strTableId.equals("426")) {
-      return "Pay";
-    } else if (strTableId.equals("800019")) {
-      return "Settlement";
     } else {
       return "";
     }
@@ -272,24 +261,9 @@
       throws IOException, ServletException {
     OBContext.setAdminMode();
     try {
-      if (strTableId.equals("392")) { // C_BankStatement
-        printPageBank(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
-            strTabName, strStatementDate, strBankAccount);
-      } else if (strTableId.equals("319")) { // M_InOut
+      if (strTableId.equals("319")) { // M_InOut
         printPageShipment(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
             strTabName, strBPartner);
-      } else if (strTableId.equals("426")) { // C_PaySelection
-        printPagePay(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
-            strTabName, strBPartner);
-      } else if (strTableId.equals("800019")) { // C_Settlement
-        printPageSettlement(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
-            strTabName, strBPartner);
-      } else if (strTableId.equals("800176")) { // C_DP_Management
-        printPageDPManagement(response, vars, strPath, strKey, strTableId, strProcessId,
-            strWindowId, strTabName, strBPartner);
-      } else if (strTableId.equals("800179")) { // C_Remittance
-        printPageCRemittance(response, vars, strPath, strKey, strTableId, strProcessId, strWindowId,
-            strTabName, strBPartner, strOrg, strIsreceipt);
       } else {
         pageError(response);
       }
@@ -298,165 +272,6 @@
     }
   }
 
-  protected void printPageBank(HttpServletResponse response, VariablesSecureApp vars,
-      String strPath, String strKey, String strTableId, String strProcessId, String strWindowId,
-      String strTabName, String strStatementDate, String strBank)
-      throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: Bank");
-    }
-    final String strcBPartner = vars.getStringParameter("inpcBpartnerId");
-    final String strPaymentRule = vars.getStringParameter("inppaymentrule");
-    final String strPlannedDateFrom = vars.getStringParameter("inpplanneddateFrom");
-    final String strPlannedDateTo = vars.getStringParameter("inpplanneddateTo");
-    final String strAmountFrom = vars.getNumericParameter("inpamountFrom");
-    final String strAmountTo = vars.getNumericParameter("inpamountTo");
-    String strIsReceipt = vars.getStringParameter("inpisreceipt");
-    final String strOrg = vars.getStringParameter("inpadOrgId");
-    final String strCharge = vars.getStringParameter("inpCharge");
-    final String strPlannedDate = vars.getStringParameter("inpplanneddate", strStatementDate);
-    final String strCost = vars.getNumericParameter("inpcost", "0.00");
-    final String strProposed = vars.getNumericParameter("inpproposed", "0.00");
-    final String strDocumentNo = vars.getStringParameter("inpDocumentNo");
-    final String strStatus = vars.getStringParameter("inpStatusPayment");
-    CreateFromBankData[] data = null;
-    final XmlDocument xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank")
-        .createXmlDocument();
-
-    final int numRows = Integer.valueOf(CreateFromBankData.countRows(this,
-        Utility.getContext(this, vars, "#User_Client", strWindowId),
-        Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-        strPlannedDateFrom, strPlannedDateTo, strAmountFrom, strAmountTo, strIsReceipt, strBank,
-        strOrg, strCharge, strDocumentNo, strStatus));
-    final int maxRows = Integer.valueOf(vars.getSessionValue("#RECORDRANGEINFO"));
-
-    if (numRows > maxRows) {
-      final OBError obError = new OBError();
-      String strMsg = Utility.messageBD(this, "MAX_RECORDS_REACHED", vars.getLanguage());
-      strMsg = strMsg.replaceAll("%returned%", String.valueOf(numRows));
-      strMsg = strMsg.replaceAll("%shown%", String.valueOf(maxRows));
-      obError.setMessage(strMsg);
-      obError.setTitle("");
-      obError.setType("WARNING");
-      vars.setMessage("CreateFrom", obError);
-    }
-
-    // different limit/offset syntax in oracle and postgresql
-    if (this.myPool.getRDBMS().equalsIgnoreCase("ORACLE")) {
-      data = CreateFromBankData.select(this, vars.getLanguage(), strStatementDate, "ROWNUM",
-          Utility.getContext(this, vars, "#User_Client", strWindowId),
-          Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-          strPlannedDateFrom, strPlannedDateTo, strAmountFrom, strAmountTo, strIsReceipt, strBank,
-          strOrg, strCharge, strDocumentNo, strStatus, String.valueOf(maxRows), null);
-    } else {
-      data = CreateFromBankData.select(this, vars.getLanguage(), strStatementDate, "1",
-          Utility.getContext(this, vars, "#User_Client", strWindowId),
-          Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-          strPlannedDateFrom, strPlannedDateTo, strAmountFrom, strAmountTo, strIsReceipt, strBank,
-          strOrg, strCharge, strDocumentNo, strStatus, null, String.valueOf(maxRows));
-    }
-
-    xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
-    xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() + "\";");
-    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-    xmlDocument.setParameter("theme", vars.getTheme());
-    xmlDocument.setParameter("path", strPath);
-    xmlDocument.setParameter("key", strKey);
-    xmlDocument.setParameter("tableId", strTableId);
-    xmlDocument.setParameter("processId", strProcessId);
-    xmlDocument.setParameter("windowId", strWindowId);
-    xmlDocument.setParameter("tabName", strTabName);
-    xmlDocument.setParameter("statementDate", strStatementDate);
-    xmlDocument.setParameter("paramCBankaccountID", strBank);
-    xmlDocument.setParameter("paramPlannedDate", strPlannedDate);
-    xmlDocument.setParameter("paramplanneddate", strPlannedDate);
-    xmlDocument.setParameter("paramcost", strCost);
-    xmlDocument.setParameter("paramproposed", strProposed);
-    xmlDocument.setParameter("documentNo", strDocumentNo);
-    xmlDocument.setParameter("StatusPayment", strStatus);
-
-    xmlDocument.setParameter("paymentRule", strPaymentRule);
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "", "All_Payment Rule",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", "CreateFrom"),
-          Utility.getContext(this, vars, "#User_Client", "CreateFrom"), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, "CreateFrom", strPaymentRule);
-      xmlDocument.setData("reportPaymentRule", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-    xmlDocument.setParameter("cbpartnerId", strcBPartner);
-
-    xmlDocument.setParameter("cbpartnerId_DES", CreateFromBankData.bpartner(this, strcBPartner));
-    xmlDocument.setParameter("plannedDateFrom", strPlannedDateFrom);
-    xmlDocument.setParameter("plannedDateFromdisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateFromsaveFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateTo", strPlannedDateTo);
-    xmlDocument.setParameter("plannedDateTodisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("amountFrom", strAmountFrom);
-    {
-      final OBError myMessage = vars.getMessage("CreateFrom");
-      vars.removeMessage("CreateFrom");
-      if (myMessage != null) {
-        xmlDocument.setParameter("messageType", myMessage.getType());
-        xmlDocument.setParameter("messageTitle", myMessage.getTitle());
-        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
-      }
-    }
-    xmlDocument.setParameter("amountTo", strAmountTo);
-    xmlDocument.setParameter("isreceiptPago", strIsReceipt);
-    xmlDocument.setParameter("isreceiptCobro", strIsReceipt);
-    xmlDocument.setParameter("adOrgId", strOrg);
-    xmlDocument.setParameter("charge", strCharge);
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "C_BankAccount_ID",
-          "", "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strBank);
-      xmlDocument.setData("reportC_BankAccount_ID", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "AD_Org_ID", "",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strOrg);
-      xmlDocument.setData("reportAD_Org_ID", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "",
-          "C_DP_Management_Status", "Status - Exclude In Remittance",
-          Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strStatus);
-      xmlDocument.setData("reportStatus_S", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    xmlDocument.setData("structure1", data);
-    response.setContentType("text/html; charset=UTF-8");
-    final PrintWriter out = response.getWriter();
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
   protected void printPageShipment(HttpServletResponse response, VariablesSecureApp vars,
       String strPath, String strKey, String strTableId, String strProcessId, String strWindowId,
       String strTabName, String strBPartner) throws IOException, ServletException {
@@ -811,551 +626,12 @@
     out.close();
   }
 
-  protected void printPagePay(HttpServletResponse response, VariablesSecureApp vars, String strPath,
-      String strKey, String strTableId, String strProcessId, String strWindowId, String strTabName,
-      String strBPartner) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: Pay");
-    }
-    final XmlDocument xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_actionButton/CreateFrom_Pay")
-        .createXmlDocument();
-
-    xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() + "\";");
-    response.setContentType("text/html; charset=UTF-8");
-    final PrintWriter out = response.getWriter();
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
-  protected void printPageSettlement(HttpServletResponse response, VariablesSecureApp vars,
-      String strPath, String strKey, String strTableId, String strProcessId, String strWindowId,
-      String strTabName, String strBPartner) throws IOException, ServletException {
-
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: Settlement");
-    }
-    if (log4j.isDebugEnabled()) {
-      log4j.debug(vars.commandIn("DEFAULT"));
-    }
-
-    String strcBPartner = vars.getStringParameter("inpcBpartnerId");
-    final String strPaymentRule = vars.getStringParameter("inppaymentrule");
-    final String strPlannedDateFrom = vars.getStringParameter("inpplanneddateFrom");
-    final String strPlannedDateTo = vars.getStringParameter("inpplanneddateTo");
-    final String strAmountFrom = vars.getNumericParameter("inpamountFrom");
-    final String strAmountTo = vars.getNumericParameter("inpamountTo");
-    final String strTotalAmount = vars.getNumericParameter("inpamount");
-    String strIsReceipt = vars.getStringParameter("inpisreceipt");
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("IsReceipt: " + strIsReceipt);
-    }
-    final String isSOTrx = Utility.getContext(this, vars, "isSOTrx", strWindowId);
-    final String strAutoCalc = vars.getStringParameter("inpAutoClaculated");
-    String strAutoCalcSelect = "AMOUNT";
-
-    if (strAutoCalc.equals("")) {
-      strAutoCalcSelect = "WRITEOFFAMT";
-    }
-
-    final String strOrg = vars.getStringParameter("inpadOrgId");
-    final String strMarcarTodos = vars.getStringParameter("inpTodos", "N");
-
-    final XmlDocument xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement")
-        .createXmlDocument();
-    CreateFromSettlementData[] data = null;
-
-    if (vars.getSessionValue("CreateFrom|default").equals("1")) {
-
-      vars.removeSessionValue("CreateFrom|default");
-
-      /*
-       * if (strcBPartner.equals("") && strPaymentRule.equals("") && strPlannedDateFrom.equals("")
-       * && strPlannedDateTo.equals("") && strIsReceipt.equals("") && strTotalAmount.equals("") &&
-       * strOrg.equals("")) {
-       */
-
-      // Modified 26-06-07
-      if (log4j.isDebugEnabled()) {
-        log4j.debug("strIsReceipt: \"\"");
-      }
-
-      data = new CreateFromSettlementData[0];
-
-      if (vars.commandIn("FRAME1")) {
-        strcBPartner = strBPartner;
-        strIsReceipt = isSOTrx;
-      }
-    } else {
-
-      // Modified 26-06-07
-      if (log4j.isDebugEnabled()) {
-        log4j.debug("strIsReceipt: " + strIsReceipt);
-      }
-
-      final int numRows = Integer.valueOf(CreateFromSettlementData.countRows(this,
-          Utility.getContext(this, vars, "#User_Client", strWindowId),
-          Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-          strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom, strAmountTo,
-          strTotalAmount, strOrg));
-      final int maxRows = Integer.valueOf(vars.getSessionValue("#RECORDRANGEINFO"));
-
-      if (numRows > maxRows) {
-        final OBError obError = new OBError();
-        String strMsg = Utility.messageBD(this, "MAX_RECORDS_REACHED", vars.getLanguage());
-        strMsg = strMsg.replaceAll("%returned%", String.valueOf(numRows));
-        strMsg = strMsg.replaceAll("%shown%", String.valueOf(maxRows));
-        obError.setMessage(strMsg);
-        obError.setTitle("");
-        obError.setType("WARNING");
-        vars.setMessage("CreateFrom", obError);
-      }
-
-      if (this.myPool.getRDBMS().equalsIgnoreCase("ORACLE")) {
-        data = CreateFromSettlementData.select(this, vars.getLanguage(), strMarcarTodos, "ROWNUM",
-            strAutoCalcSelect, Utility.getContext(this, vars, "#User_Client", strWindowId),
-            Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-            strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom, strAmountTo,
-            strTotalAmount, strOrg, String.valueOf(maxRows), null);
-      } else {
-        data = CreateFromSettlementData.select(this, vars.getLanguage(), strMarcarTodos, "1",
-            strAutoCalcSelect, Utility.getContext(this, vars, "#User_Client", strWindowId),
-            Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-            strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom, strAmountTo,
-            strTotalAmount, strOrg, null, String.valueOf(maxRows));
-      }
-
-    }
-
-    xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
-    xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() + "\";");
-    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-    xmlDocument.setParameter("theme", vars.getTheme());
-    xmlDocument.setParameter("path", strPath);
-    xmlDocument.setParameter("key", strKey);
-    xmlDocument.setParameter("tableId", strTableId);
-    xmlDocument.setParameter("processId", strProcessId);
-    xmlDocument.setParameter("windowId", strWindowId);
-    xmlDocument.setParameter("tabName", strTabName);
-    xmlDocument.setParameter("autoCalculated", strAutoCalc);
-    xmlDocument.setParameter("amountFrom", strAmountFrom);
-    xmlDocument.setParameter("amountTo", strAmountTo);
-    xmlDocument.setParameter("totalAmount", strTotalAmount);
-    xmlDocument.setParameter("adOrgId", strOrg);
-    xmlDocument.setParameter("marcarTodos", strMarcarTodos);
-
-    xmlDocument.setParameter("paymentRule", strPaymentRule);
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "", "All_Payment Rule",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strPaymentRule);
-      xmlDocument.setData("reportPaymentRule", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "AD_Org_ID", "",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strOrg);
-      xmlDocument.setData("reportAD_Org_ID", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("strcBPartner: " + strcBPartner);
-    }
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("strPlannedDateFrom: " + strPlannedDateFrom);
-    }
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("strPlannedDateTo: " + strPlannedDateTo);
-    }
-
-    xmlDocument.setParameter("inpcBpartnerId", strcBPartner);
-    xmlDocument.setParameter("inpBpartnerId_DES",
-        CreateFromSettlementData.bpartner(this, strcBPartner));
-
-    xmlDocument.setParameter("plannedDateFromdisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateFromsaveFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateFromValue", strPlannedDateFrom);
-
-    xmlDocument.setParameter("plannedDateTodisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateToValue", strPlannedDateTo);
-
-    xmlDocument.setParameter("isreceiptPago", strIsReceipt);
-    xmlDocument.setParameter("isreceiptCobro", strIsReceipt);
-
-    {
-      final OBError myMessage = vars.getMessage("CreateFrom");
-      vars.removeMessage("CreateFrom");
-      if (myMessage != null) {
-        xmlDocument.setParameter("messageType", myMessage.getType());
-        xmlDocument.setParameter("messageTitle", myMessage.getTitle());
-        xmlDocument.setParameter("messageMessage", myMessage.getMessage());
-      }
-    }
-
-    xmlDocument.setData("structure1", data);
-
-    response.setContentType("text/html; charset=UTF-8");
-    final PrintWriter out = response.getWriter();
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
-  protected void printPageDPManagement(HttpServletResponse response, VariablesSecureApp vars,
-      String strPath, String strKey, String strTableId, String strProcessId, String strWindowId,
-      String strTabName, String strBPartner) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: DPManagement");
-    }
-    String strcBPartner = vars.getStringParameter("inpcBpartnerId");
-    final String strPaymentRule = vars.getStringParameter("inppaymentrule");
-    final String strPlannedDateFrom = vars.getStringParameter("inpplanneddateFrom");
-    final String strPlannedDateTo = vars.getStringParameter("inpplanneddateTo");
-    final String strAmountFrom = vars.getNumericParameter("inpamountFrom");
-    final String strAmountTo = vars.getNumericParameter("inpamountTo");
-    final String strTotalAmount = vars.getNumericParameter("inpamount");
-    String strIsReceipt = vars.getStringParameter("inpisreceipt");
-    final String isSOTrx = Utility.getContext(this, vars, "isSOTrx", strWindowId);
-    // String strAutoCalc = vars.getStringParameter("inpAutoClaculated");
-    // String strAutoCalcSelect = "AMOUNT";
-    // if (strAutoCalc.equals("")) strAutoCalcSelect = "WRITEOFFAMT";
-
-    final String strOrg = vars.getStringParameter("inpadOrgId");
-    final String strStatusFrom = vars.getStringParameter("inpStatusFrom");
-    final String strStatusTo = vars.getStringParameter("inpStatusTo");
-
-    final String strMarcarTodos = vars.getStringParameter("inpTodos", "N");
-
-    final XmlDocument xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement")
-        .createXmlDocument();
-    CreateFromDPManagementData[] data = null;
-    if (strcBPartner.equals("") && strPaymentRule.equals("") && strPlannedDateFrom.equals("")
-        && strPlannedDateTo.equals("") && strIsReceipt.equals("") && strTotalAmount.equals("")
-        && strOrg.equals("")) {
-      data = new CreateFromDPManagementData[0];
-      if (vars.commandIn("FRAME1")) {
-        strcBPartner = strBPartner;
-        strIsReceipt = isSOTrx;
-      }
-    } else {
-      final int numRows = Integer.valueOf(CreateFromDPManagementData.countRows(this,
-          Utility.getContext(this, vars, "#User_Client", strWindowId),
-          Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-          strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom, strAmountTo,
-          strTotalAmount, strStatusFrom, strOrg));
-      final int maxRows = Integer.valueOf(vars.getSessionValue("#RECORDRANGEINFO"));
-
-      if (numRows > maxRows) {
-        String strMsg = Utility.messageBD(this, "MAX_RECORDS_REACHED", vars.getLanguage());
-        strMsg = strMsg.replaceAll("%returned%", String.valueOf(numRows));
-        strMsg = strMsg.replaceAll("%shown%", String.valueOf(maxRows));
-        xmlDocument.setParameter("messageType", "WARNING");
-        xmlDocument.setParameter("messageTitle", "");
-        xmlDocument.setParameter("messageMessage", strMsg);
-      }
-
-      // different limit/offset syntax in oracle and postgresql
-      if (this.myPool.getRDBMS().equalsIgnoreCase("ORACLE")) {
-        data = CreateFromDPManagementData.select(this, vars.getLanguage(), "ROWNUM", strMarcarTodos,
-            Utility.getContext(this, vars, "#User_Client", strWindowId),
-            Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-            strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom, strAmountTo,
-            strTotalAmount, strStatusFrom, strOrg, String.valueOf(maxRows), null);
-      } else {
-        data = CreateFromDPManagementData.select(this, vars.getLanguage(), "1", strMarcarTodos,
-            Utility.getContext(this, vars, "#User_Client", strWindowId),
-            Utility.getContext(this, vars, "#User_Org", strWindowId), strcBPartner, strPaymentRule,
-            strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom, strAmountTo,
-            strTotalAmount, strStatusFrom, strOrg, null, String.valueOf(maxRows));
-      }
-
-      if (log4j.isDebugEnabled()) {
-        log4j.debug("DPSelect: lineas" + data.length + "client "
-            + Utility.getContext(this, vars, "#User_Client", strWindowId) + "userOrg "
-            + Utility.getContext(this, vars, "#User_Org", strWindowId) + " partner:" + strcBPartner
-            + " rule:" + strPaymentRule + "df" + strPlannedDateFrom + " dt:" + strPlannedDateTo
-            + " rec:" + strIsReceipt + "amtF:" + strAmountFrom + "amt T:" + strAmountTo + "ttlamt:"
-            + strTotalAmount + "org " + strOrg);
-      }
-    }
-
-    xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
-    xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() + "\";");
-    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-    xmlDocument.setParameter("theme", vars.getTheme());
-    xmlDocument.setParameter("path", strPath);
-    xmlDocument.setParameter("key", strKey);
-    xmlDocument.setParameter("tableId", strTableId);
-    xmlDocument.setParameter("processId", strProcessId);
-    xmlDocument.setParameter("windowId", strWindowId);
-    xmlDocument.setParameter("tabName", strTabName);
-    // xmlDocument.setParameter("autoCalculated", strAutoCalc);
-    xmlDocument.setParameter("amountFrom", strAmountFrom);
-    xmlDocument.setParameter("amountTo", strAmountTo);
-    xmlDocument.setParameter("totalAmount", strTotalAmount);
-    xmlDocument.setParameter("adOrgId", strOrg);
-    xmlDocument.setParameter("statusTo", strStatusTo);
-    xmlDocument.setParameter("statusFrom", strStatusFrom);
-
-    xmlDocument.setParameter("marcarTodos", strMarcarTodos);
-
-    xmlDocument.setParameter("paymentRule", strPaymentRule);
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "", "All_Payment Rule",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strPaymentRule);
-      xmlDocument.setData("reportPaymentRule", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "AD_Org_ID", "",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strOrg);
-      xmlDocument.setData("reportAD_Org_ID", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "",
-          "C_DP_Management_Status", "",
-          Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strStatusFrom);
-      xmlDocument.setData("reportStatusFrom", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "",
-          "C_DP_Management_Status", "",
-          Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strStatusFrom);
-      xmlDocument.setData("reportStatusTo", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    xmlDocument.setParameter("cbpartnerId", strcBPartner);
-    xmlDocument.setParameter("cbpartnerId_DES",
-        CreateFromDPManagementData.bpartner(this, strcBPartner));
-    xmlDocument.setParameter("plannedDateFrom", strPlannedDateFrom);
-    xmlDocument.setParameter("plannedDateTo", strPlannedDateTo);
-
-    xmlDocument.setParameter("plannedDateFromdisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateFromsaveFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-
-    xmlDocument.setParameter("plannedDateTodisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-
-    xmlDocument.setParameter("isreceiptPago", strIsReceipt);
-    xmlDocument.setParameter("isreceiptCobro", strIsReceipt);
-
-    xmlDocument.setData("structure1", data);
-
-    response.setContentType("text/html; charset=UTF-8");
-    final PrintWriter out = response.getWriter();
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
-  protected void printPageCRemittance(HttpServletResponse response, VariablesSecureApp vars,
-      String strPath, String strKey, String strTableId, String strProcessId, String strWindowId,
-      String strTabName, String strBPartner, String stradOrgId, String isReceipt)
-      throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Output: CRemittance");
-    }
-    String strcBPartner = vars.getStringParameter("inpcBpartnerId");
-    final String strPaymentRule = vars.getStringParameter("inppaymentrule");
-    final String strPlannedDateFrom = vars.getStringParameter("inpplanneddateFrom");
-    final String strPlannedDateTo = vars.getStringParameter("inpplanneddateTo");
-    final String strAmountFrom = vars.getNumericParameter("inpamountFrom");
-    final String strAmountTo = vars.getNumericParameter("inpamountTo");
-    final String strTotalAmount = vars.getNumericParameter("inpamount");
-    String strIsReceipt = vars.getStringParameter("inpisreceipt", isReceipt);
-    final String isSOTrx = Utility.getContext(this, vars, "isSOTrx", strWindowId);
-    // String strAutoCalc = vars.getStringParameter("inpAutoCalculated");
-    // String strAutoCalcSelect = "AMOUNT";
-    // if (strAutoCalc.equals("")) strAutoCalcSelect = "WRITEOFFAMT";
-
-    final String strOrg = vars.getStringParameter("inpadOrgId", stradOrgId);
-    final String strStatusFrom = vars.getStringParameter("inpStatusFrom");
-    // String strStatusTo = vars.getStringParameter("inpStatusTo");
-
-    final String strMarcarTodos = vars.getStringParameter("inpTodos", "N");
-    final String strTreeOrg = TreeData.getTreeOrg(this, vars.getClient());
-    final String strOrgFamily = Tree.getMembers(this, strTreeOrg, strOrg);
-
-    final XmlDocument xmlDocument = xmlEngine
-        .readXmlTemplate("org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance")
-        .createXmlDocument();
-    // XmlDocument xmlDocument = null;
-    CreateFromCRemittanceData[] data = null;
-    if (vars.commandIn("FRAME1")) {
-      data = new CreateFromCRemittanceData[0];
-      strcBPartner = strBPartner;
-      strIsReceipt = isSOTrx;
-    } else {
-      final int numRows = Integer.valueOf(CreateFromCRemittanceData.countRows(this,
-          Utility.getContext(this, vars, "#User_Client", strWindowId),
-          Utility.getContext(this, vars, "#User_Org", strWindowId), strOrgFamily, strcBPartner,
-          strPaymentRule, strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom,
-          strAmountTo, strTotalAmount, strStatusFrom));
-      final int maxRows = Integer.valueOf(vars.getSessionValue("#RECORDRANGEINFO"));
-
-      if (numRows > maxRows) {
-        final OBError obError = new OBError();
-        String strMsg = Utility.messageBD(this, "MAX_RECORDS_REACHED", vars.getLanguage());
-        strMsg = strMsg.replaceAll("%returned%", String.valueOf(numRows));
-        strMsg = strMsg.replaceAll("%shown%", String.valueOf(maxRows));
-        obError.setMessage(strMsg);
-        obError.setTitle("");
-        obError.setType("WARNING");
-        vars.setMessage("CreateFrom", obError);
-      }
-
-      if (this.myPool.getRDBMS().equalsIgnoreCase("ORACLE")) {
-        data = CreateFromCRemittanceData.select(this, vars.getLanguage(), strMarcarTodos, "ROWNUM",
-            Utility.getContext(this, vars, "#User_Client", strWindowId),
-            Utility.getContext(this, vars, "#User_Org", strWindowId), strOrgFamily, strcBPartner,
-            strPaymentRule, strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom,
-            strAmountTo, strTotalAmount, strStatusFrom, String.valueOf(maxRows), null);
-      } else {
-        data = CreateFromCRemittanceData.select(this, vars.getLanguage(), strMarcarTodos, "1",
-            Utility.getContext(this, vars, "#User_Client", strWindowId),
-            Utility.getContext(this, vars, "#User_Org", strWindowId), strOrgFamily, strcBPartner,
-            strPaymentRule, strPlannedDateFrom, strPlannedDateTo, strIsReceipt, strAmountFrom,
-            strAmountTo, strTotalAmount, strStatusFrom, null, String.valueOf(maxRows));
-      }
-    }
-
-    xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
-    xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() + "\";");
-    xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
-    xmlDocument.setParameter("theme", vars.getTheme());
-    xmlDocument.setParameter("path", strPath);
-    xmlDocument.setParameter("key", strKey);
-    xmlDocument.setParameter("tableId", strTableId);
-    xmlDocument.setParameter("processId", strProcessId);
-    xmlDocument.setParameter("windowId", strWindowId);
-    xmlDocument.setParameter("tabName", strTabName);
-    // xmlDocument.setParameter("autoCalculated", strAutoCalc);
-    xmlDocument.setParameter("amountFrom", strAmountFrom);
-    xmlDocument.setParameter("amountTo", strAmountTo);
-    xmlDocument.setParameter("totalAmount", strTotalAmount);
-    // xmlDocument.setParameter("statusTo", strStatusTo);
-    xmlDocument.setParameter("statusFrom", strStatusFrom);
-
-    xmlDocument.setParameter("marcarTodos", strMarcarTodos);
-
-    xmlDocument.setParameter("paymentRule", strPaymentRule);
-
-    xmlDocument.setParameter("plannedDateFromdisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateFromsaveFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-
-    xmlDocument.setParameter("plannedDateTodisplayFormat",
-        vars.getSessionValue("#AD_SqlDateFormat"));
-    xmlDocument.setParameter("plannedDateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "", "All_Payment Rule",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strPaymentRule);
-      xmlDocument.setData("reportPaymentRule", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "TABLEDIR", "AD_Org_ID", "",
-          "", Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strOrg);
-      xmlDocument.setData("reportAD_Org_ID", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    try {
-      ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "",
-          "C_DP_Management_Status", "",
-          Utility.getContext(this, vars, "#AccessibleOrgTree", strWindowId),
-          Utility.getContext(this, vars, "#User_Client", strWindowId), 0);
-      Utility.fillSQLParameters(this, vars, null, comboTableData, strWindowId, strStatusFrom);
-      xmlDocument.setData("reportStatusFrom", "liststructure", comboTableData.select(false));
-      comboTableData = null;
-    } catch (final Exception ex) {
-      throw new ServletException(ex);
-    }
-
-    xmlDocument.setParameter("cbpartnerId", strcBPartner);
-    xmlDocument.setParameter("cbpartnerId_DES",
-        CreateFromDPManagementData.bpartner(this, strcBPartner));
-    xmlDocument.setParameter("plannedDateFrom", strPlannedDateFrom);
-    xmlDocument.setParameter("plannedDateTo", strPlannedDateTo);
-    xmlDocument.setParameter("isreceiptPago", strIsReceipt);
-    xmlDocument.setParameter("isreceiptCobro", strIsReceipt);
-    xmlDocument.setParameter("adOrgId", strOrg);
-
-    xmlDocument.setData("structure1", data);
-
-    response.setContentType("text/html; charset=UTF-8");
-    final PrintWriter out = response.getWriter();
-    out.println(xmlDocument.print());
-    out.close();
-  }
-
   OBError saveMethod(VariablesSecureApp vars, String strKey, String strTableId, String strProcessId,
       String strWindowId) throws IOException, ServletException {
     OBContext.setAdminMode();
     try {
-      if (strTableId.equals("392")) {
-        return saveBank(vars, strKey, strTableId, strProcessId);
-      } else if (strTableId.equals("319")) {
+      if (strTableId.equals("319")) {
         return saveShipment(vars, strKey, strTableId, strProcessId, strWindowId);
-      } else if (strTableId.equals("426")) {
-        return savePay(vars, strKey, strTableId, strProcessId);
-      } else if (strTableId.equals("800019")) {
-        return saveSettlement(vars, strKey, strTableId, strProcessId);
-      } else if (strTableId.equals("800176")) {
-        return saveDPManagement(vars, strKey, strTableId, strProcessId);
-      } else if (strTableId.equals("800179")) {
-        return saveCRemittance(vars, strKey, strTableId, strProcessId);
       } else {
         return null;
       }
@@ -1364,99 +640,6 @@
     }
   }
 
-  protected OBError saveBank(VariablesSecureApp vars, String strKey, String strTableId,
-      String strProcessId) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Save: Bank");
-    }
-    String strPayment = vars.getInStringParameter("inpcPaymentId", IsIDFilter.instance);
-    final String strStatementDate = vars.getStringParameter("inpstatementdate");
-    String strDateplanned = "";
-    String strChargeamt = "";
-    String strProposedAmt = "";
-    if (strPayment.equals("")) {
-      return null;
-    }
-    OBError myMessage = null;
-    Connection conn = null;
-    if (strPayment.equals("")) {
-      return Utility.translateError(this, vars, vars.getLanguage(), "ProcessRunError");
-    }
-    String[] ids = restrictParameter(strPayment);
-
-    try {
-      conn = this.getTransactionConnection();
-      for (int k = 0; k < ids.length; k++) {
-        if (ids[k].startsWith("(")) {
-          ids[k] = ids[k].substring(1, ids[k].length() - 1);
-        }
-        if (!ids[k].equals("")) {
-          ids[k] = Replace.replace(ids[k], "'", "");
-          final StringTokenizer st = new StringTokenizer(ids[k], ",", false);
-          while (st.hasMoreTokens()) {
-            String strDebtPaymentId = st.nextToken().trim();
-            if (!CreateFromBankData.NotIsReconcilied(conn, this, strDebtPaymentId)) {
-              releaseRollbackConnection(conn);
-              log4j.warn(
-                  "CreateFrom.saveBank - debt_payment " + strDebtPaymentId + " is reconcilied");
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(),
-                  "DebtPaymentReconcilied");
-              return myMessage;
-            }
-            strDateplanned = vars.getStringParameter("inpplanneddate" + strDebtPaymentId.trim());
-            strChargeamt = vars.getNumericParameter("inpcost" + strDebtPaymentId.trim());
-            strProposedAmt = vars.getNumericParameter("inpproposed" + strDebtPaymentId.trim());
-            // Amount + writeoff amount = FinalAmount to be paid/collected
-            String strFinalAmount = CreateFromBankData.selectPaymentFinalAmount(this,
-                strDebtPaymentId.trim());
-            BigDecimal finalAmount = new BigDecimal(strFinalAmount);
-            if (strProposedAmt != null && !strProposedAmt.equals("")
-                && new BigDecimal(strProposedAmt).signum() != 0
-                && new BigDecimal(strProposedAmt).compareTo(finalAmount) != 0) {
-              final String strSettlement = SequenceIdData.getUUID();
-              final String strDocNo = Utility.getDocumentNoConnection(conn, this, vars.getClient(),
-                  "C_Settlement", true);
-              CreateFromBankData.insertSettlement(conn, this, strSettlement, vars.getUser(),
-                  strDocNo, strStatementDate, strDebtPaymentId);
-              final String strNewPayment = SequenceIdData.getUUID();
-              CreateFromBankData.insertPayment(conn, this, strNewPayment, vars.getUser(),
-                  strSettlement, strProposedAmt, strDebtPaymentId);
-              CreateFromBankData.cancelOriginalPayment(conn, this, strSettlement, strDebtPaymentId);
-              CreateFromBankData.insertSecondPayment(conn, this, vars.getUser(), strSettlement,
-                  strProposedAmt, strDebtPaymentId);
-              strDebtPaymentId = strNewPayment;
-              CreateFromBankData.processSettlement(conn, this, strSettlement);
-            }
-            final String strSequence = SequenceIdData.getUUID();
-            try {
-              CreateFromBankData.insert(conn, this, strSequence, vars.getClient(), vars.getUser(),
-                  strKey, strDateplanned.equals("") ? strStatementDate : strDateplanned,
-                  strChargeamt, strDebtPaymentId);
-            } catch (final ServletException ex) {
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
-              releaseRollbackConnection(conn);
-              return myMessage;
-            }
-          }
-        }
-      }
-      releaseCommitConnection(conn);
-      myMessage = new OBError();
-      myMessage.setType("Success");
-      myMessage.setTitle("");
-      myMessage.setMessage(Utility.messageBD(this, "Success", vars.getLanguage()));
-    } catch (final Exception e) {
-      try {
-        releaseRollbackConnection(conn);
-      } catch (final Exception ignored) {
-      }
-      e.printStackTrace();
-      log4j.warn("Rollback in transaction");
-      myMessage = Utility.translateError(this, vars, vars.getLanguage(), "ProcessRunError");
-    }
-    return myMessage;
-  }
-
   protected OBError saveShipment(VariablesSecureApp vars, String strKey, String strTableId,
       String strProcessId, String strWindowId) throws IOException, ServletException {
     if (log4j.isDebugEnabled()) {
@@ -1985,204 +1168,6 @@
     return myMessage;
   }
 
-  protected OBError savePay(VariablesSecureApp vars, String strKey, String strTableId,
-      String strProcessId) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Save: Pay");
-    }
-    return null;
-  }
-
-  protected OBError saveSettlement(VariablesSecureApp vars, String strKey, String strTableId,
-      String strProcessId) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Save: Settlement");
-    }
-    String strDebtPayment = vars.getInStringParameter("inpcDebtPaymentId", IsIDFilter.instance);
-    if (strDebtPayment.equals("")) {
-      return null;
-    }
-    OBError myMessage = null;
-    Connection conn = null;
-    String[] ids = restrictParameter(strDebtPayment);
-    try {
-      conn = this.getTransactionConnection();
-      for (int k = 0; k < ids.length; k++) {
-        if (ids[k].startsWith("(")) {
-          ids[k] = ids[k].substring(1, ids[k].length() - 1);
-        }
-        if (!ids[k].equals("")) {
-          ids[k] = Replace.replace(ids[k], "'", "");
-          final StringTokenizer st = new StringTokenizer(ids[k], ",", false);
-          while (st.hasMoreTokens()) {
-            final String strDebtPaymentId = st.nextToken().trim();
-            final String strWriteOff = vars.getNumericParameter("inpwriteoff" + strDebtPaymentId);
-            final String strIsPaid = vars.getStringParameter("inpispaid" + strDebtPaymentId, "N");
-            if (!CreateFromSettlementData.NotIsCancelled(conn, this, strDebtPaymentId)) {
-              releaseRollbackConnection(conn);
-              log4j.warn(
-                  "CreateFrom.saveSettlement - debt_payment " + strDebtPaymentId + " is cancelled");
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(),
-                  "DebtPaymentCancelled");
-              return myMessage;
-            }
-            try {
-              CreateFromSettlementData.update(conn, this, vars.getUser(), strKey, strWriteOff,
-                  strIsPaid, strDebtPaymentId);
-            } catch (final ServletException ex) {
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
-              releaseRollbackConnection(conn);
-              return myMessage;
-            }
-          }
-        }
-      }
-      releaseCommitConnection(conn);
-      myMessage = new OBError();
-      myMessage.setType("Success");
-      myMessage.setTitle("");
-      myMessage.setMessage(Utility.messageBD(this, "Success", vars.getLanguage()));
-    } catch (final Exception e) {
-      try {
-        releaseRollbackConnection(conn);
-      } catch (final Exception ignored) {
-      }
-      e.printStackTrace();
-      log4j.warn("Rollback in transaction");
-      myMessage = Utility.translateError(this, vars, vars.getLanguage(), "ProcessRunError");
-    }
-    return myMessage;
-  }
-
-  protected OBError saveDPManagement(VariablesSecureApp vars, String strKey, String strTableId,
-      String strProcessId) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Save: DPManagement");
-    }
-    String strDebtPayment = vars.getInStringParameter("inpcDebtPaymentId", IsIDFilter.instance);
-    if (strDebtPayment.equals("")) {
-      return null;
-    }
-    OBError myMessage = null;
-    Connection conn = null;
-    String[] ids = restrictParameter(strDebtPayment);
-    try {
-      conn = this.getTransactionConnection();
-      final String strStatusTo = vars.getStringParameter("inpStatusTo");
-      for (int k = 0; k < ids.length; k++) {
-        if (ids[k].startsWith("(")) {
-          ids[k] = ids[k].substring(1, ids[k].length() - 1);
-        }
-        if (!ids[k].equals("")) {
-          ids[k] = Replace.replace(ids[k], "'", "");
-          Integer line = Integer.valueOf(CreateFromDPManagementData.getLine(this, strKey));
-          final StringTokenizer st = new StringTokenizer(ids[k], ",", false);
-          while (st.hasMoreTokens()) {
-            final String strDebtPaymentId = st.nextToken().trim();
-            if (!CreateFromDPManagementData.NotIsCancelled(conn, this, strDebtPaymentId)) {
-              releaseRollbackConnection(conn);
-              log4j.warn(
-                  "CreateFrom.saveSettlement - debt_payment " + strDebtPaymentId + " is cancelled");
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(),
-                  "DebtPaymentCancelled");
-              return myMessage;
-            }
-            final String strDPManagementLineID = SequenceIdData.getUUID();
-
-            line += 10;
-            try {
-              CreateFromDPManagementData.insert(conn, this, strDPManagementLineID, vars.getClient(),
-                  vars.getUser(), strKey, strStatusTo, line.toString(), strDebtPaymentId);
-            } catch (final ServletException ex) {
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
-              releaseRollbackConnection(conn);
-              return myMessage;
-            }
-          }
-        }
-      }
-      releaseCommitConnection(conn);
-      myMessage = new OBError();
-      myMessage.setType("Success");
-      myMessage.setTitle("");
-      myMessage.setMessage(Utility.messageBD(this, "Success", vars.getLanguage()));
-    } catch (final Exception e) {
-      try {
-        releaseRollbackConnection(conn);
-      } catch (final Exception ignored) {
-      }
-      e.printStackTrace();
-      log4j.warn("Rollback in transaction");
-      myMessage = Utility.translateError(this, vars, vars.getLanguage(), "ProcessRunError");
-    }
-    return myMessage;
-  }
-
-  protected OBError saveCRemittance(VariablesSecureApp vars, String strKey, String strTableId,
-      String strProcessId) throws IOException, ServletException {
-    if (log4j.isDebugEnabled()) {
-      log4j.debug("Save: Cremittance");
-    }
-    String strDebtPayment = vars.getInStringParameter("inpcDebtPaymentId", IsIDFilter.instance);
-    if (strDebtPayment.equals("")) {
-      return null;
-    }
-    OBError myMessage = null;
-    Connection conn = null;
-    String[] ids = restrictParameter(strDebtPayment);
-    try {
-      conn = this.getTransactionConnection();
-      Integer lineNo = Integer.valueOf(CreateFromCRemittanceData.selectLineNo(this, strKey))
-          .intValue();
-      for (int k = 0; k < ids.length; k++) {
-        // String strStatusTo = vars.getStringParameter("inpStatusTo");
-        if (ids[k].startsWith("(")) {
-          ids[k] = ids[k].substring(1, ids[k].length() - 1);
-        }
-        if (!ids[k].equals("")) {
-          ids[k] = Replace.replace(ids[k], "'", "");
-          final StringTokenizer st = new StringTokenizer(ids[k], ",", false);
-          while (st.hasMoreTokens()) {
-            final String strDebtPaymentId = st.nextToken().trim();
-
-            if (!CreateFromDPManagementData.NotIsCancelled(conn, this, strDebtPaymentId)) {
-              releaseRollbackConnection(conn);
-              log4j.warn(
-                  "CreateFrom.saveSettlement - debt_payment " + strDebtPaymentId + " is cancelled");
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(),
-                  "DebtPaymentCancelled");
-              return myMessage;
-            }
-            final String strCRemittanceLineID = SequenceIdData.getUUID();
-            lineNo += 10;
-            try {
-              CreateFromCRemittanceData.insert(conn, this, strCRemittanceLineID, vars.getClient(),
-                  vars.getUser(), strKey, lineNo.toString(), strDebtPaymentId);
-            } catch (final ServletException ex) {
-              myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
-              releaseRollbackConnection(conn);
-              return myMessage;
-            }
-          }
-        }
-      }
-      releaseCommitConnection(conn);
-      myMessage = new OBError();
-      myMessage.setType("Success");
-      myMessage.setTitle("");
-      myMessage.setMessage(Utility.messageBD(this, "Success", vars.getLanguage()));
-    } catch (final Exception e) {
-      try {
-        releaseRollbackConnection(conn);
-      } catch (final Exception ignored) {
-      }
-      e.printStackTrace();
-      log4j.warn("Rollback in transaction");
-      myMessage = Utility.translateError(this, vars, vars.getLanguage(), "ProcessRunError");
-    }
-    return myMessage;
-  }
-
   private String[] restrictParameter(String strIds) {
     String localStrIds = strIds;
     String[] ids = null;
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,764 +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) 2001-2011 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-<html>
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <title>Create from Bank</title>
-  <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
-  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"></link>
-  <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
-  <script language="JavaScript" type="text/javascript" id="paramLanguage">	defaultLang = "en_US";</script>
-  <script language="JavaScript" type="text/javascript" id="paramDirectory">var baseDirectory = "../../../../../web/";</script>
-  <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
-  <script type="text/javascript">
-   window.onunload = reloadOpener; // reloads opener on closing
-   dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function closeThisPage() {
-      closePage();
-      return true;
-    }
-
-    function submitThisPage(strCommand) {
-      if (validate(strCommand)) {
-        submitCommandForm(strCommand, false, null, null);
-        return true;
-      }
-      return true;
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function enableLocalShortcuts() {
-      keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null");
-    }
-
-    function validate(action) {
-      var frm=document.frmMain;
-      if (action=="FIND_BANK") {
-        if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, document.getElementById('inpPlannedDateFrom').getAttribute('displayFormat'))) {
-          setWindowElementFocus(frm.inpplanneddateFrom);
-          frm.inpplanneddateFrom.select();
-          showJSMessage(5);
-          setTimeout('resizeAreaCreateFrom()',100);
-          return false;
-        } else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, document.getElementById('inpPlannedDateTo').getAttribute('displayFormat'))) {
-          setWindowElementFocus(frm.inpplanneddateTo);
-          frm.inpplanneddateTo.select();
-          showJSMessage(5);
-          setTimeout('resizeAreaCreateFrom()',100);
-          return false;
-        } 
-      } else if (radioValue(frm.inpcPaymentId)==null) {
-        showJSMessage(1);
-        setTimeout('resizeAreaCreateFrom()',100);
-        return false;
-      }
-      return true;
-    }
-
-    function updatePrice(obj) {
-      if (obj==null) return false;
-      var price = document.frmMain.inpTotalPrice;
-      var actualValue = Number(eval("document.frmMain.inpPrice" + obj.value + ".value"));
-      if (obj.checked) {
-         price.value = Number(price.value) + actualValue;
-      } else {
-         price.value = Number(price.value) - actualValue;
-      }
-      if (isNaN(price.value)) {
-         price.value = 0;
-      }
-
-      var decSeparator = getGlobalDecSeparator();
-      var groupSeparator = getGlobalGroupSeparator();
-      var groupInterval = getGlobalGroupInterval();
-      var maskNumeric = formatNameToMask("euroEdition");
-      var formattedValue = returnCalcToFormatted(price.value, maskNumeric, decSeparator, groupSeparator, groupInterval);
-
-      layer("paramTotalPrice", formattedValue, true);
-      price.value=formattedValue;
-      return true;
-    }
-
-    function markAllPersonal(chk, bolMark) {
-      var updateValues=true;
-      if (bolMark==null) bolMark = false;
-      if (!chk) return false;
-      else if (!chk.length) {
-        updateValues = (chk.checked!=bolMark);
-        chk.checked = bolMark;
-        if (updateValues) updatePrice(chk);
-        } else {
-          var total = chk.length;
-          for (var i=0;i<total;i++) {
-            updateValues = (chk[i].checked!=bolMark);
-          chk[i].checked = bolMark;
-          if (updateValues) updatePrice(chk[i]);
-        }
-      }
-      return true;
-    }
-
-    function updateData(key, mark) {
-      if (mark==null) mark=false;
-      var frm = document.frmMain;
-      frm.elements["inpplanneddate" + key].disabled=!mark;
-      return true;
-    }
-
-    function loadData(mark) {
-      var radio=document.frmMain.inpcPaymentId;
-      if (mark==null) mark=false;
-        var frm = document.frmMain;
-      if (!radio) return false;
-      else if (!radio.length) {
-          radio.checked = mark;
-          frm.elements["inpplanneddate" + radio.value].disabled=!mark;
-      } else if (radio.length > 20) {
-        return submitCommandForm('FIND_SETTLEMENT', true);
-      } else {
-          var total = radio.length;
-        for (var i=0;i<total;i++) {
-              radio[i].checked=mark;
-          frm.elements["inpplanneddate" + radio[i].value].disabled=!mark;
-        }
-      }
-      return true;
-    }
-
-    function onloadFunctions() {
-      enableLocalShortcuts();
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function onLoadDo(){
-      this.windowTables = new Array(
-        new windowTableId('client_top', 'buttonSearch'),
-        new windowTableId('client_middle', 'buttonOK'),
-        new windowTableId('client_bottom', 'buttonOK')
-      );
-      setWindowTableParentElement();
-      enableShortcuts('popup');
-      setBrowserAutoComplete(false);
-      disableProposedAmount();
-      try {
-        onloadFunctions();
-      } catch (e) {}
-
-      setWindowElementFocus('firstElement');
-      resizeAreaCreateFrom();
-    }
-
-    function onResizeDo(){
-     resizeAreaCreateFrom();
-    }
-
-    function disableProposedAmount(){
-		var settlementTableRow = document.getElementById("tableId");
-		for(var j=3;j<settlementTableRow.rows.length;j++){
-			var settlementRows = settlementTableRow.rows[j];
-			if(settlementRows.cells[9]!=null && settlementRows.cells[9]!='undefined'){
-				var manualSettlement=settlementRows.cells[9];
-				var proposedAmount=settlementRows.cells[7]; 
-				if(manualSettlement!="undefined" && manualSettlement.firstChild!=null){
-					var value=manualSettlement.firstChild.nodeValue;
-					if(value=='Y'){
-					     proposedAmount.firstChild.setAttribute('disabled','disabled');
-				    }
-				}
-			}
-		
-		}
-
-	    }
-  </script>
-</head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
-<form id="form" method="post" action="../ad_actionButton/CreateFrom.html" name="frmMain">
-<input type="hidden" name="Command">
-<input type="hidden" name="IsPopUpCall" value="1">
-<input type="hidden" name="inpKey" value="" id="paramKey">
-<input type="hidden" name="inpTableId" value="" id="paramTableId">
-<input type="hidden" name="inpProcessId" value="" id="paramProcessId">
-<input type="hidden" name="inpPath" value="" id="paramPath">
-<input type="hidden" name="inpWindowId" value="" id="paramWindowId">
-<input type="hidden" name="inpTabName" value="" id="paramTabName">
-<input type="hidden" name="inpstatementdate" value="" id="paramStatementDate">
-  <div class="Popup_ContentPane_CircleLogo">
-    <div class="Popup_WindowLogo">
-      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
-    </div>
-  </div>
-
-  <table id="table_header" cellspacing="0" cellpadding="0" width="100%">
-
-    <tr>
-      <td>
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
-          <tr class="Popup_NavBar_bg"><td></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-            <td class="Popup_NavBar_bg_logo_left"></td>
-            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
-            <td class="Popup_NavBar_bg_logo_right"></td>
-            <td class="Popup_NavBar_Popup_title_cell"><span>Create from Bank</span></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
-          <tr>
-            <td class="Popup_SeparatorBar_bg"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_messagebox">
-
-        <!-- MessageBox -->
-          <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
-            <tbody>
-              <tr class="MessageBox_TopMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr>
-                <td class="MessageBox_LeftMargin"></td>
-                <td>
-
-                  <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
-                    <tbody>
-                    <tr>
-                      <td class="MessageBox_LeftTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopLeft"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Left"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                      <td class="MessageBox_bg">
-
-                        <table class="MessageBox_Top">
-                        <tbody>
-                          <tr>
-                            <td>
-                              <span>
-                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
-                                <tbody>
-                                <tr>
-                                  <td class="MessageBox_Icon_ContentCell">
-                                    <div class="MessageBox_Icon"></div>
-                                  </td>
-                                  <td style="vertical-align: top;" id="messageBoxIDContent">
-                                    <span>
-                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
-                                        xxInfo: AccessTableWithNoView
-                                      </div>
-                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
-                                        xxThe current information is empty.
-                                      </div>
-                                      <div class="MessageBox_TextSeparator"></div>
-                                    </span>
-                                  </td>
-                                </tr>
-                                </tbody>
-                              </table>
-                              </span>
-                            </td>
-                          </tr>
-                          </tbody>
-                        </table>
-
-                      </td>
-                      <td class="MessageBox_RightTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopRight"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Right"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                    </tr>
-                    <tr>
-                      <td rowspan="2" class="MessageBox_BottomLeft">
-                      </td>
-                      <td class="MessageBox_BottomTrans MessageBox_bg">
-                      </td>
-                      <td rowspan="2" class="MessageBox_BottomRight">
-                      </td>
-                    </tr>
-                    <tr>
-                      <td class="MessageBox_Bottom">
-                      </td>
-                    </tr>
-                    </tbody>
-                  </table>
-                </td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr class="MessageBox_BottomMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-            </tbody>
-          </table>
-        <!-- MessageBox END -->
-        </div>
-      </tr>
-    </td>
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
-
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-            <tr>
-              <td colspan="6">
-                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                <tbody>
-                  <tr class="FieldGroup_TopMargin"/>
-                  <tr>
-                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupTitle">Filters</td>
-                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupContent"/>
-                  </tr>
-                  <tr class="FieldGroup_BottomMargin"/>
-                </tbody>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-
-              <td class="TitleCell">
-                <span class="LabelText">Business Partner</span>
-              </td>
-              <td class="TextBox_ContentCell" colspan="2">
-                <table border="0" cellspacing="0" cellpadding="0" summary="" style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_btn_OneCell">
-                      <input type="hidden" name="inpcBpartnerId" id="fieldCBPartnerID" value="">
-                      <input type="text" dojoType="openbravo:ValidationTextBox" class="TextBox_btn_TwoCells_width" maxlength="22" name="inpcBpartnerId_DES" id="inpCBPartnerID_DES" value="" ></input><script>djConfig.searchIds.push("inpCBPartnerID_DES");</script>
-                    </td>
-                  <td class="TextBox_btn_OneCell">
-                    <a onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onblur="window.status=''; return true;" onfocus="setWindowElementFocus(this); window.status='Business Partner '; return true;" href="#" class="FieldButtonLink" id="C_Bpartner_IDlinkBusinessPartner">
-                      <table onmouseout="this.className='FieldButton'; window.status=''; return true;" onmouseover="this.className='FieldButton_hover'; window.status='Business Partner '; return true;" onmouseup="this.className='FieldButton'; return true;" onmousedown="this.className='FieldButton_active'; return true;" class="FieldButton">
-                        <tbody>
-                          <tr>
-                            <td class="FieldButton_bg">
-                              <img border="0" src="../../../../../web/images/blank.gif" title="Business Partner " class="FieldButton_Icon FieldButton_Icon_BusinessPartner" alt="Business Partner" id="buttonBPartner"/>
-                          </td>
-                        </tr>
-                      </tbody>
-                      </table>
-                    </a>
-                  </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"><span class="LabelText">Payment Rule</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inppaymentrule" class="Combo Combo_OneCell_width" id="inppaymentrule">
-                  <option value=""></option><div id="reportPaymentRule"></div>
-                </select>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Receipt type</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpisreceipt" id="inpisreceipt" class="Combo Combo_OneCell_width">
-                <option value="">All</option>
-                <option value="N" id="fieldIsReceiptPago">Payment</option>
-                <option value="Y" id="fieldIsReceiptCobro">Collection</option></select>
-              </td>
-
-              <td class="TitleCell"><span class="LabelText">From Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateFrom" id="inpPlannedDateFrom" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("inpPlannedDateFrom");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateFrom', document.frmMain.inpplanneddateFrom.value, false);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0" id="buttonCalendar"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText">To Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateTo" id="inpPlannedDateTo" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("inpPlannedDateTo");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpplanneddateTo', document.frmMain.inpplanneddateTo.value, false);return false;">
-                      <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0" id="buttonCalendar"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-
-              <td class="TitleCell"><span class="LabelText">Account</span></td>
-              <td class="Combo_ContentCell" colspan="2">
-                <select name="inpcBankaccountId" id="inpcBankaccountId" class="Combo Combo_TwoCells_width">
-                  <option value=""></option>
-                  <div id="reportC_BankAccount_ID"></div></select></td>
-              </td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"><span class="LabelText">Organization</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpadOrgId" id="inpadOrgId" class="Combo Combo_OneCell_width">
-                <option value=""></option>
-                <div id="reportAD_Org_ID"></div></select>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Invoice No.</span></td>
-              <td class="TextBox_ContentCell">
-                <input type="text" dojotype="openbravo:ValidationTextBox" class="TextBox_OneCell_width" name="inpDocumentNo" id="inpDocumentNo" value="" ><script>djConfig.searchIds.push("inpDocumentNo");</script>
-              </td>
-              <td class="TitleCell"><span class="LabelText">Amount From</span> </td>
-              <td class="TextBox_btn_ContentCell">
-                  <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                    <tr>
-                      <td class="Textbox_ContentCell">
-                        <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountFrom" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="22" name="inpamountFrom" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountFrom");</script>
-                      </td>
-                      <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;">
-                      <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="NoPackageslinkCalc">
-                          <tr>
-                            <td class="FieldButton_bg">
-                              <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount From" src="../../../../../web/images/blank.gif" border="0" id="buttonCalc"></img>
-                            </td>
-                          </tr>
-                        </table>
-                      </a>
-                      </td>
-                    </tr>
-                  </table>
-              </td>
-
-
-              <td class="TitleCell"><span class="LabelText">Amount To</span> </td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary="" class="">
-                  <tr>
-                    <td class="Textbox_ContentCell">
-                        <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountTo" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="22" name="inpamountTo" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountTo");</script>
-                    </td>
-
-                    <td class="FieldButton_ContentCell">
-                    <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;">
-                    <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="NoPackageslinkCalc">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0" id="buttonCalc"></img>
-                          </td>
-                        </tr>
-                      </table>
-                    </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Only Applied</span> </td>
-              <td class="Radio_Check_ContentCell"> 
-                <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpCharge" value="Y" id="paramCharge"></input></span></td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"><span class="LabelText">Payment Status</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpStatusPayment" id="StatusPayment" class="Combo Combo_OneCell_width">
-                <OPTION value=""></OPTION>
-                <div id="reportStatus_S"></div></select>
-              </td>
-            </tr>
-
-            <tr><td height="15px"></tr>
-
-            <tr>
-              <td class="TitleCell"></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonSearch" 
-                    class="ButtonLink" 
-                    onclick="removeOnUnload();submitCommandForm('FIND_BANK', false, null, null, '_self');return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Search'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Search'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Search</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-              </td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"></td>
-            </tr>
-            <tr><td height="15px"></tr>
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Total amount</span></td>
-              <td class="ReadOnly_Text_ContentCell"><span class="Label_ReadOnly_Text" id="paramTotalPrice">0</span>
-                <input type="hidden" name="inpTotalPrice" value="0">
-              </td>
-              <td class="TitleCell"><span class="LabelText">Proposal date</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="Textbox_ContentCell">
-                    <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddate" id="inpterplanneddate" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("inpterplanneddate");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddate', document.frmMain.inpplanneddate.value, false);return false;">
-                        <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                          <tr>
-                            <td class="FieldButton_bg">
-                              <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                            </td>
-                          </tr>
-                        </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td></td>
-              <td></td>
-            </tr>
-
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; display: none;" id="client_middle">
-          <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="tableId">
-
-            <tr class="DataGrid_Body_Row">
-              <th width="3%" class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpTodos" onclick="markAllPersonal(document.frmMain.inpcPaymentId, this.checked);return true;"></input></span></th>
-              <th width="10%" colspan="3" class="DataGrid_Header_Cell">Payment</th>
-              <th width="10%" class="DataGrid_Header_Cell">Invoice</th>
-              <th width="23%" colspan="4" class="DataGrid_Header_Cell">Account</th>
-            </tr>
-
-            <tr class="DataGrid_Body_Row">
-              <th class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox"></td>
-              <th width="8%" class="DataGrid_Header_Cell">Date</th>
-              <th width="12%" class="DataGrid_Header_Cell">Organization</th>
-              <th width="12%" class="DataGrid_Header_Cell">Currency</th>
-              <th width="12%" class="DataGrid_Header_Cell">Amount</th>
-              <th width="6%" class="DataGrid_Header_Cell">Conversion</th>
-              <th width="8%" class="DataGrid_Header_Cell">Proposal date</th>
-              <th width="6%" class="DataGrid_Header_Cell">Proposed</th>
-              <th width="6%" class="DataGrid_Header_Cell">Cost</th>
-            </tr>
-
-            <div id="sectionDetail">
-
-              <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="funcEvenOddRowxx">
-                <td class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_CheckBox" style="border-bottom-width:0px; border-bottom: none;"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpcPaymentId" value="" id="fieldCPaymentId" onclick="updatePrice(this);return true;"></input></span><input type="hidden" name="inpPricexx" value="" id="fieldPrice"></td>
-                <td class="DataGrid_Body_Cell" id="fieldPayment" colspan="3">xxUOM</td>
-                <td class="DataGrid_Body_Cell" id="fieldInvoice">xxInvoice</td>
-                <td class="DataGrid_Body_Cell" id="fieldBank" colspan="4">xx</td>
-              </tr>
-
-              <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy">
-                <td class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_CheckBox" style="border-bottom-width:3px"></td>
-                <td class="DataGrid_Body_Cell" id="fieldDate" style="border-bottom-width:3px">xxQuantity</td>
-                <td class="DataGrid_Body_Cell" id="fieldOrg" style="border-bottom-width:3px">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldCurrency" style="border-bottom-width:3px">xxProduct</td>
-                <td class="DataGrid_Body_Cell" id="fieldAmount" style="border-bottom-width:3px">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldConverted" style="border-bottom-width:3px">xx</td>
-                <td class="DataGrid_Body_Cell" style="border-bottom-width:3px"><input class="dojoValidateValid" name="inpplanneddatexx" type="text" id="inpterplanneddate" maxlength="10" size="9" value="" onkeyup="autoCompleteDate(this);return true;"></td>
-                <td class="DataGrid_Body_Cell" style="border-bottom-width:3px"><input class="dojoValidateValid" name="inpproposedxx" type="text" id="parameterProposed" maxlength="22" value="" outputformat="euroEdition" onfocus="numberInputEvent('onfocus', this);" onblur="numberInputEvent('onblur', this);" onkeydown="numberInputEvent('onkeydown', this, event);" onchange="numberInputEvent('onchange', this);"></td>
-                <td class="DataGrid_Body_Cell" style="border-bottom-width:3px"><input class="dojoValidateValid" name="inpcostxx" type="text" id="parameterCost" maxlength="22" value="" outputformat="euroEdition" onfocus="numberInputEvent('onfocus', this);" onblur="numberInputEvent('onblur', this);" onkeydown="numberInputEvent('onkeydown', this, event);" onchange="numberInputEvent('onchange', this);"></td>
-                <td id="isManual" style="visibility: hidden;" >xx</td>
-              </tr>
-
-            </div>
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; padding-bottom: 5px;" id="client_bottom">
-
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
-
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-
-
-            <tr>
-              <td></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonOK" 
-                    class="ButtonLink" 
-                    onclick="submitThisPage('SAVE');return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Accept'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Accept'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">OK</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonCancel" 
-                    class="ButtonLink" 
-                    onclick="closeThisPage();return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Cancel</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td></td>
-            </tr>
-          </table>
-        </div>
-      </td>
-    </tr>
-  </table>
-</div>
-</table>
-</form>
-</body>
-</html>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.xml	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2014 Openbravo SLU
- * All Rights Reserved.
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-
-<REPORT>
-<template file="CreateFrom_Bank.html"/>
-
-<PARAMETER id="fieldCalendar" name="calendar" attribute="src" replace="es" default="en"/>
-<PARAMETER id="paramDirectory" name="directory" default=""/>
-<PARAMETER id="paramLanguage" name="language" default=""/>
-<PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
-<PARAMETER id="paramKey" name="key" attribute="value"/>
-<PARAMETER id="paramTableId" name="tableId" attribute="value"/>
-<PARAMETER id="paramProcessId" name="processId" attribute="value"/>
-<PARAMETER id="paramPath" name="path" attribute="value"/>
-<PARAMETER id="paramWindowId" name="windowId" attribute="value"/>
-<PARAMETER id="paramTabName" name="tabName" attribute="value"/>
-<PARAMETER id="paramStatementDate" name="statementDate" attribute="value"/>
-<PARAMETER id="paramCBankaccountID" name="paramCBankaccountID"/>
-<PARAMETER id="parameterConstantCharge" name="constantCharge" default="Y"/>
-<PARAMETER id="keyMap" name="keyMap"/>
-<PARAMETER id="paramCharge" name="charge" boolean="checked" withId="parameterConstantCharge"/>
-<PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
-<PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
-<PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
-<PARAMETER id="fieldCBPartnerID" name="cbpartnerId" attribute="value"/>
-<PARAMETER id="inpCBPartnerID_DES" name="cbpartnerId_DES" attribute="value"/>
-<PARAMETER id="inpPlannedDateFrom" name="plannedDateFrom" attribute="value"/>
-	<PARAMETER id="inpPlannedDateFrom" name="plannedDateFromdisplayFormat" attribute="displayformat" replace="xx"/>
-	<PARAMETER id="inpPlannedDateFrom" name="plannedDateFromsaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="inpPlannedDateTo" name="plannedDateTo" attribute="value"/>
-	<PARAMETER id="inpPlannedDateTo" name="plannedDateTodisplayFormat" attribute="displayformat" replace="xx"/>
-	<PARAMETER id="inpPlannedDateTo" name="plannedDateTosaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramAmountFrom" name="amountFrom" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramAmountTo" name="amountTo" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramIsReceiptPago" name="paramIsReceiptPago" default="N"/>
-<PARAMETER id="fieldIsReceiptPago" name="isreceiptPago" boolean="selected" withId="paramIsReceiptPago"/>
-<PARAMETER id="paramIsReceiptCobro" name="paramIsReceiptCobro" default="Y"/>
-<PARAMETER id="fieldIsReceiptCobro" name="isreceiptCobro" boolean="selected" withId="paramIsReceiptCobro"/>
-<PARAMETER id="paramADOrgID" name="adOrgId"/>
-<PARAMETER id="paramPaymentRule" name="paymentRule"/>
-<PARAMETER name="paramPlannedDate" id="inpterplanneddate" attribute="value"/>
-<PARAMETER name="StatusPayment" id="StatusPayment" attribute="value"/>
-
-
-<PARAMETER id="inpDocumentNo" name="documentNo" attribute="value" default=""/>
-<PARAMETER name="paramplanneddate" id="inpterplanneddate" attribute="value"/>
-  <PARAMETER name="plannedDateFromdisplayFormat" id="inpterplanneddate" attribute="displayformat" replace="xx"/>
-	<PARAMETER name="plannedDateFromdisplayFormat" id="inpterplanneddate" attribute="saveformat" replace="yy"/>
-<PARAMETER name="paramcost" id="parameterCost" attribute="value" format="euroEdition"/>
-<PARAMETER name="paramproposed" id="parameterProposed" attribute="value" format="euroEdition"/>
-
-<SUBREPORT id="reportPaymentRule" name="reportPaymentRule" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramPaymentRule"/></SUBREPORT>
-
-<SUBREPORT id="reportC_BankAccount_ID" name="reportC_BankAccount_ID" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramCBankaccountID"/></SUBREPORT>
-
-<SUBREPORT id="reportAD_Org_ID" name="reportAD_Org_ID" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramADOrgID"/></SUBREPORT>
-
-<SUBREPORT id="reportStatus_S" name="reportStatus_S" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="StatusPayment"/></SUBREPORT>
-
-
-
-<structure name="structure1">
-
-
-
-<FIELD id="fieldCPaymentId" attribute="value">cDebtPaymentId</FIELD>
-<FIELD id="fieldPrice" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-<FIELD id="fieldPrice" attribute="value">amount2</FIELD>
-<FIELD id="isManual">IsManual</FIELD>
-<FIELD id="inpterplanneddate" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-<FIELD id="parameterCost" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-<FIELD id="parameterProposed" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-<FIELD id="parameterProposed" attribute="value" format="euroEdition">amount</FIELD>
-<FIELD id="fieldDate">dateplanned</FIELD>
-<FIELD id="fieldOrg">org</FIELD>
-<FIELD id="fieldPayment" replaceCharacters="html">debtPayment</FIELD>
-<FIELD id="fieldBank" replaceCharacters="html">bank</FIELD>
-<FIELD id="fieldCurrency" replaceCharacters="html">currency</FIELD>
-<FIELD id="fieldInvoice" replaceCharacters="html">invoice</FIELD>
-<FIELD id="fieldAmount" format="euroInform">pAmount</FIELD>
-<FIELD id="fieldConverted" format="euroInform">converted</FIELD>
-
-<SECTION id="sectionDetail"/>
-</structure>
-
-
-
-
-</REPORT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank_data.xsql	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,350 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2010 Openbravo SLU
- * All Rights Reserved.
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-<SqlClass name="CreateFromBankData" package="org.openbravo.erpCommon.ad_actionButton">
-  <SqlMethod name="select" type="preparedStatement" return="multiple">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT B.*,
-          (CASE Ad_Column_Identifier(to_char('C_Debt_Payment'), to_char(C_DEBT_Payment_ID), to_char(?))
-             WHEN '**' THEN to_char(description)
-             ELSE to_char(Ad_Column_Identifier(to_char('C_Debt_Payment'), to_char(C_DEBT_Payment_ID), to_char(?)))
-           END) AS DEBT_PAYMENT,
-          Ad_Column_Identifier(to_char('C_Invoice'), to_char(C_INVOICE_ID), to_char(?)) AS INVOICE,
-          Ad_Column_Identifier(to_char('C_BankAccount'), to_char(C_BankAccount_ID), to_char(?)) AS BANK,
-          (CASE IsReceipt WHEN 'Y' THEN (p_amount - p_woamount) ELSE (p_amount - p_woamount)*(-1) END) AS AMOUNT,
-	  (p_amount - p_woamount) AS AMOUNT2,
-          C_Currency_Convert((CASE IsReceipt WHEN 'Y' THEN (p_amount) ELSE (p_amount) END),b.C_Currency_ID,
-          	(select c_currency_id from c_bankaccount c where c.c_bankaccount_id = b.c_bankaccount_id),
-          	to_date(?),to_char(null),AD_Client_ID,AD_Org_ID
-          ) AS CONVERTED
-
-        FROM ( SELECT '0' AS RN1, A.* FROM (
-        SELECT p.DatePlanned, p.C_DEBT_Payment_ID,
-        p.description, p.c_invoice_id, p.c_bankaccount_id, p.ad_client_id, p.ad_org_id,
-        p.Amount as p_amount, p.WriteOffAmt as p_woamount,
-        p.C_Currency_ID,c.ISO_Code AS CURRENCY,
-        o.Name AS Org,
-        p.IsReceipt AS IsReceipt,
-        p.IsManual AS IsManual
-        FROM C_DEBT_Payment_v p,
-         C_Currency c,  AD_Org o
-        where p.C_Currency_ID=c.C_Currency_ID
-        AND p.IsActive = 'Y'
-        AND p.status != 'RT'
-        AND p.AD_Org_ID = o.AD_Org_ID
-        AND p.AD_CLIENT_ID IN ('1')
-        AND p.AD_ORG_ID IN ('1')
-        AND CASE
-              WHEN (p.ISVALID = 'N') THEN 'I'
-              WHEN (p.C_CASHLINE_ID IS NOT NULL OR p.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-              WHEN (p.CANCEL_PROCESSED = 'Y' AND p.ISPAID = 'N') THEN 'W'
-              WHEN (p.CANCEL_PROCESSED = 'Y' OR(p.C_Settlement_Cancel_ID IS NULL AND p.GENERATE_PROCESSED = 'Y' AND p.ISPAID = 'Y')) THEN 'A'
-              ELSE 'P'
-            END IN ('P', 'A')
-        AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)
-        ORDER BY p.DATEPLANNED DESC
-        ) A ) B
-        WHERE 1=1
-      ]]>
-    </Sql>
-    <Parameter name="adLanguage"/>
-    <Parameter name="adLanguage"/>
-    <Parameter name="adLanguage"/>
-    <Parameter name="adLanguage"/>
-    <Parameter name="statementdate"/>
-    <Parameter name="rownum" type="replace" optional="true" after="FROM ( SELECT " text="'0'" />
-    <Parameter name="userClient" optional="true" type="replace" after="AND p.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND p.AD_ORG_ID IN (" text="'1'"/>
-    <Parameter name="cBPartnerId" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)"><![CDATA[ AND p.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)"><![CDATA[ AND p.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="amountFrom" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)"><![CDATA[ AND p.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)"><![CDATA[ AND p.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.ISRECEIPT = ? "/>
-    <Parameter name="cBankaccountId" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.C_BankAccount_ID = ? "/>
-    <Parameter name="adOrgId" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.AD_ORG_ID = ? "/>
-    <Parameter name="ischarge" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.ISPAID = ? "/>
-    <Parameter name="invoice" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND EXISTS (SELECT 1 FROM C_INVOICE WHERE p.C_INVOICE_ID = C_INVOICE.C_INVOICE_ID AND DOCUMENTNO LIKE TO_CHAR(?))"/>
-    <Parameter name="StatusPayment" optional="true" after="AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)" text=" AND p.STATUS = TO_CHAR(?) "/>
-    <Parameter name="oraLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[AND RN1 <= ]]></Parameter>
-    <Parameter name="pgLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[LIMIT ]]></Parameter>
-  </SqlMethod>
-
-  <SqlMethod name="countRows" type="preparedStatement" return="String">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT COUNT(*) AS COUNT
-        FROM C_DEBT_Payment_v p
-        where
-            p.IsActive = 'Y'
-        AND p.AD_CLIENT_ID IN ('1')
-        AND p.AD_ORG_ID IN ('1')
-        AND CASE
-              WHEN (p.ISVALID = 'N') THEN 'I'
-              WHEN (p.C_CASHLINE_ID IS NOT NULL OR p.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-              WHEN (p.CANCEL_PROCESSED = 'Y' AND p.ISPAID = 'N') THEN 'W'
-              WHEN (p.CANCEL_PROCESSED = 'Y' OR(p.C_Settlement_Cancel_ID IS NULL AND p.GENERATE_PROCESSED = 'Y' AND p.ISPAID = 'Y')) THEN 'A'
-              ELSE 'P'
-            END in ('P', 'A')
-        AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)
-        AND 1=1
-      ]]>
-    </Sql>
-    <Parameter name="userClient" optional="true" type="replace" after="AND p.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND p.AD_ORG_ID IN (" text="'1'"/>
-    <Parameter name="cBPartnerId" optional="true" after="AND 1=1" text=" AND p.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND 1=1" text=" AND p.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND 1=1"><![CDATA[ AND p.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND 1=1"><![CDATA[ AND p.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="amountFrom" optional="true" after="AND 1=1"><![CDATA[ AND p.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND 1=1"><![CDATA[ AND p.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND 1=1" text=" AND p.ISRECEIPT = ? "/>
-    <Parameter name="cBankaccountId" optional="true" after="AND 1=1" text=" AND p.C_BankAccount_ID = ? "/>
-    <Parameter name="adOrgId" optional="true" after="AND 1=1" text=" AND p.AD_ORG_ID = ? "/>
-    <Parameter name="ischarge" optional="true" after="AND 1=1" text=" AND p.ISPAID = ? "/>
-    <Parameter name="invoice" optional="true" after="AND 1=1" text=" AND EXISTS (SELECT 1 FROM C_INVOICE WHERE p.C_INVOICE_ID = C_INVOICE.C_INVOICE_ID AND DOCUMENTNO LIKE TO_CHAR(?))"/>
-    <Parameter name="StatusPayment" optional="true" after="AND 1=1" text=" AND p.STATUS = ? "/>
-  </SqlMethod>
-
-  <SqlMethod name="NotIsReconcilied" type="preparedStatement" connection="true" return="boolean">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT COUNT(*) AS COUNT
-        FROM C_DEBT_Payment_v p
-        WHERE p.C_Debt_Payment_ID = ?
-        AND CASE
-              WHEN (p.ISVALID = 'N') THEN 'I'
-              WHEN (p.C_CASHLINE_ID IS NOT NULL OR p.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-              WHEN (p.CANCEL_PROCESSED = 'Y' AND p.ISPAID = 'N') THEN 'W'
-              WHEN (p.CANCEL_PROCESSED = 'Y' OR(p.C_Settlement_Cancel_ID IS NULL AND p.GENERATE_PROCESSED = 'Y' AND p.ISPAID = 'Y')) THEN 'A'
-              ELSE 'P'
-            END IN ('P', 'A')
-        AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)
-      ]]>
-    </Sql>
-    <Parameter name="cDebtPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="bpartner" type="preparedStatement" return="String" default="">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      SELECT NAME FROM C_BPARTNER WHERE C_BPARTNER_ID=?
-    </Sql>
-    <Parameter name="cBpartnerId"/>
-  </SqlMethod>
-  <SqlMethod name="insert" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        INSERT INTO C_BankStatementLine
-            (C_BankStatementLine_ID, AD_Client_ID,AD_Org_ID,
-            IsActive,Created,CreatedBy,
-            Updated,UpdatedBy, C_BankStatement_ID,
-            DateAcct,ValutaDate, Line,
-            C_Debt_Payment_ID, Description,
-            TrxAmt,
-            ChargeAmt,
-            C_Currency_ID,
-            StmtAmt)
-        SELECT ?,?,p.AD_ORG_ID,
-               'Y', now(), ?,
-               now(), ?, ?,
-               TO_DATE(?), TO_DATE(?), (SELECT (COALESCE(Max(Line),0))+10 FROM C_BankStatementLine WHERE C_BankStatement_ID = ?),
-               p.C_Debt_Payment_ID, Description,
-               C_Currency_Convert(p.Amount-coalesce(p.writeoffamt,0),p.C_Currency_ID, (SELECT A.C_CURRENCY_ID
-                                                              FROM C_BANKSTATEMENT S, C_BANKACCOUNT A
-                                                              WHERE S.C_BANKACCOUNT_ID = A.C_BANKACCOUNT_ID
-                                                              AND S.C_BankStatement_ID = ?),TO_DATE(?),null,p.AD_Client_ID,p.AD_Org_ID),
-               TO_NUMBER(?),
-               (SELECT A.C_CURRENCY_ID
-                  FROM C_BANKSTATEMENT S, C_BANKACCOUNT A
-                  WHERE S.C_BANKACCOUNT_ID = A.C_BANKACCOUNT_ID
-                  AND S.C_BankStatement_ID = ?),
-               C_Currency_Convert(p.Amount-coalesce(p.writeoffamt,0),p.C_Currency_ID, (SELECT A.C_CURRENCY_ID
-                                                                              FROM C_BANKSTATEMENT S, C_BANKACCOUNT A
-                                                                              WHERE S.C_BANKACCOUNT_ID = A.C_BANKACCOUNT_ID
-                                                                              AND S.C_BankStatement_ID = ?),TO_DATE(?),null,p.AD_Client_ID,p.AD_Org_ID)- TO_NUMBER(?)
-        FROM C_Debt_Payment_v p
-        WHERE p.C_Debt_Payment_ID=?
-      ]]>
-    </Sql>
-    <Parameter name="cBankstatementlineId"/>
-    <Parameter name="adClientId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="cBankstatementId"/>
-    <Parameter name="statementdate"/>
-    <Parameter name="statementdate"/>
-    <Parameter name="cBankstatementId"/>
-
-    <Parameter name="cBankstatementId"/>
-    <Parameter name="statementdate"/>
-
-    <Parameter name="cChargeAmt"/>
-
-
-    <Parameter name="cBankstatementId"/>
-
-
-    <Parameter name="cBankstatementId"/>
-    <Parameter name="statementdate"/>
-    <Parameter name="cChargeAmt"/>
-
-    <Parameter name="cPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="insertSettlement" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-    INSERT
-    INTO C_SETTLEMENT
-      (
-        C_SETTLEMENT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE,
-        CREATED, CREATEDBY, UPDATED, UPDATEDBY,
-        DOCUMENTNO, DATETRX, DATEACCT, SETTLEMENTTYPE,
-        C_DOCTYPE_ID, PROCESSING, PROCESSED, POSTED,
-        C_CURRENCY_ID, Description, ISGENERATED
-      )
-        select ?, C_DEBT_PAYMENT.AD_CLIENT_ID, C_DEBT_PAYMENT.AD_Org_ID, 'Y',
-        now(), ?, now(), ?,
-        '*DPS*'||?, TO_DATE(?), TO_DATE(?), 'C',
-        (SELECT MIN(C_DOCTYPE_ID) FROM C_DOCTYPE
-        WHERE DOCBASETYPE = 'STT' AND C_DOCTYPE.AD_CLIENT_ID = C_DEBT_PAYMENT.AD_CLIENT_ID
-        AND AD_ORG_ID = '0'), 'N', 'N', 'N',
-        C_DEBT_PAYMENT.C_CURRENCY_ID, COALESCE(C_DEBT_PAYMENT.DESCRIPTION, '(Splited) Nº ' || C_INVOICE.DOCUMENTNO), 'Y'
-        FROM C_DEBT_PAYMENT LEFT JOIN C_INVOICE ON C_DEBT_PAYMENT.C_INVOICE_ID = C_INVOICE.C_INVOICE_ID
-        WHERE C_DEBT_PAYMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="cSettlementId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="documentNo"/>
-    <Parameter name="date"/>
-    <Parameter name="date"/>
-    <!-- Parameter name="cDoctypeId"/ -->
-    <Parameter name="cPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="insertPayment" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-    INSERT
-    INTO C_DEBT_PAYMENT
-      (
-        C_DEBT_PAYMENT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE,
-        CREATED, CREATEDBY, UPDATED, UPDATEDBY,
-        ISRECEIPT, C_SETTLEMENT_GENERATE_ID, DESCRIPTION, C_INVOICE_ID,
-        C_BPARTNER_ID, C_CURRENCY_ID,
-        PAYMENTRULE, ISPAID, AMOUNT, WRITEOFFAMT, DATEPLANNED,
-        ISMANUAL, ISVALID,
-        CHANGESETTLEMENTCANCEL, CANCEL_PROCESSED, GENERATE_PROCESSED, STATUS_INITIAL, C_WITHHOLDING_ID, WITHHOLDINGAMOUNT
-      )
-      SELECT ?, C_DEBT_PAYMENT.AD_CLIENT_ID, C_DEBT_PAYMENT.AD_ORG_ID, C_DEBT_PAYMENT.ISACTIVE,
-        NOW(), ?, NOW(), ?,
-        C_DEBT_PAYMENT.ISRECEIPT, ?, COALESCE(C_DEBT_PAYMENT.DESCRIPTION, '(Splited) Nº ' || C_INVOICE.DOCUMENTNO), NULL,
-        C_DEBT_PAYMENT.C_BPARTNER_ID, C_DEBT_PAYMENT.C_CURRENCY_ID,
-        C_DEBT_PAYMENT.PAYMENTRULE, C_DEBT_PAYMENT.ISPAID, TO_NUMBER(?), C_DEBT_PAYMENT.WRITEOFFAMT, C_DEBT_PAYMENT.DATEPLANNED,
-        'N', 'N',
-        'N', 'N', 'N', STATUS, C_DEBT_PAYMENT.C_WITHHOLDING_ID, C_DEBT_PAYMENT.WITHHOLDINGAMOUNT*TO_NUMBER(?)/C_DEBT_PAYMENT.AMOUNT
-        FROM C_DEBT_PAYMENT LEFT JOIN C_INVOICE ON C_DEBT_PAYMENT.C_INVOICE_ID = C_INVOICE.C_INVOICE_ID
-        WHERE C_DEBT_PAYMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="cDebtPaymentId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="cSettlementId"/>
-    <Parameter name="amount"/>
-    <Parameter name="amount"/>
-    <Parameter name="cPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="insertSecondPayment" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-    INSERT
-    INTO C_DEBT_PAYMENT
-      (
-        C_DEBT_PAYMENT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE,
-        CREATED, CREATEDBY, UPDATED, UPDATEDBY,
-        ISRECEIPT, C_SETTLEMENT_GENERATE_ID, DESCRIPTION, C_INVOICE_ID,
-        C_BPARTNER_ID, C_CURRENCY_ID,
-        PAYMENTRULE, ISPAID, AMOUNT, WRITEOFFAMT, DATEPLANNED,
-        ISMANUAL, ISVALID,
-        CHANGESETTLEMENTCANCEL, CANCEL_PROCESSED, GENERATE_PROCESSED, STATUS_INITIAL, C_WITHHOLDING_ID, WITHHOLDINGAMOUNT
-      )
-      SELECT get_uuid(), C_DEBT_PAYMENT.AD_CLIENT_ID, C_DEBT_PAYMENT.AD_ORG_ID, C_DEBT_PAYMENT.ISACTIVE,
-        NOW(), ?, NOW(), ?,
-        C_DEBT_PAYMENT.ISRECEIPT, ?, COALESCE(C_DEBT_PAYMENT.DESCRIPTION, '(Splited) Nº ' || C_INVOICE.DOCUMENTNO), NULL,
-        C_DEBT_PAYMENT.C_BPARTNER_ID, C_DEBT_PAYMENT.C_CURRENCY_ID,
-        C_DEBT_PAYMENT.PAYMENTRULE, C_DEBT_PAYMENT.ISPAID, C_DEBT_PAYMENT.AMOUNT-TO_NUMBER(?), C_DEBT_PAYMENT.WRITEOFFAMT, C_DEBT_PAYMENT.DATEPLANNED,
-        'N', 'N',
-        'N', 'N', 'N', C_DEBT_PAYMENT.STATUS, C_DEBT_PAYMENT.C_WITHHOLDING_ID, C_DEBT_PAYMENT.WITHHOLDINGAMOUNT*(C_DEBT_PAYMENT.AMOUNT-TO_NUMBER(?))/C_DEBT_PAYMENT.AMOUNT
-        FROM C_DEBT_PAYMENT LEFT JOIN C_INVOICE ON C_DEBT_PAYMENT.C_INVOICE_ID = C_INVOICE.C_INVOICE_ID
-        WHERE C_DEBT_PAYMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="adUserId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="cSettlementId"/>
-    <Parameter name="amount"/>
-    <Parameter name="amount"/>
-    <Parameter name="cPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="cancelOriginalPayment" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        UPDATE C_DEBT_PAYMENT SET C_SETTLEMENT_CANCEL_ID = ?, ISVALID = 'Y'
-        WHERE C_DEBT_PAYMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="cSettlementId"/>
-    <Parameter name="cDebtPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="selectPaymentFinalAmount" type="preparedStatement" return="String">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT AMOUNT-COALESCE(WRITEOFFAMT,0) as FINALAMOUNT FROM C_DEBT_PAYMENT
-        WHERE C_DEBT_PAYMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="cDebtPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="processSettlement" connection="true" type="callableStatement"  return="object" object="CreateFromBankData">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        CALL C_SETTLEMENT_POST(NULL,?)
-      ]]>
-    </Sql>
-    <Parameter name="cSettlementId"/>
-  </SqlMethod>
-</SqlClass>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,658 +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) 2001-2011 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Create from Remittance</title>
-  <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
-  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"></link>
-  <script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
-  <script language="JavaScript" type="text/javascript" id="paramDirectory">var baseDirectory = "../../../../../web/";</script>
-  <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
-  <script type="text/javascript">
-    window.onunload = reloadOpener;
-    dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
-  </script>
-
-  <script language="JavaScript" type="text/javascript">
-    function closeThisPage() {
-      closePage();
-      return true;
-    }
-
-    function submitThisPage(strCommand) {
-      if (validate(strCommand)) {
-        submitCommandForm(strCommand, false, null, null);
-        return true;
-      }
-      return true;
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function enableLocalShortcuts() {
-    keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null");
-    }
-    function validate(action) {
-      var frm=document.frmMain;
-      if (action=="FIND_SETTLEMENT") {
-        if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(document.getElementById('paramPlannedDateFrom').value,document.getElementById('paramPlannedDateFrom').getAttribute('displayFormat'))) {
-          setWindowElementFocus(frm.inpplanneddateFrom);
-          frm.inpplanneddateFrom.select();
-          showJSMessage(5);
-          setTimeout('resizeAreaCreateFrom()',100);
-          return false;
-        } else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(document.getElementById('paramPlannedDateTo').value,document.getElementById('paramPlannedDateTo').getAttribute('displayFormat'))) {
-          setWindowElementFocus(frm.inpplanneddateTo);
-          frm.inpplanneddateTo.select();
-          showJSMessage(5);
-          setTimeout('resizeAreaCreateFrom()',100);
-          return false;
-        } else if (frm.inpamountFrom.value!=null && frm.inpamountFrom.value!="" && !validateNumberField(frm.inpamountFrom, true, true)) {
-          setWindowElementFocus(frm.inpamountFrom);
-          return false;
-        } else if (frm.inpamountTo.value!=null && frm.inpamountTo.value!="" && !validateNumberField(frm.inpamountTo, true, true)) {
-          setWindowElementFocus(frm.inpamountTo);
-          return false;
-        } else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !validateNumberField(frm.inpamount, true, true)) {
-          setWindowElementFocus(frm.inpamount);
-          return false;
-        }
-      } else if (radioValue(frm.inpcDebtPaymentId)==null) {
-        showJSMessage(1);
-        setTimeout('resizeAreaCreateFrom()',100);
-        return false;
-      }
-        return true;
-    }
-
-    function updateData(key, mark) {
-      if (mark==null) mark=false;
-      var frm = document.frmMain;
-      //frm.elements["inpwriteoff" + key].disabled=!mark;
-      //frm.elements["inpispaid" + key].disabled=!mark;
-      return true;
-    }
-
-    function loadData(mark) {
-      var radio=document.frmMain.inpcDebtPaymentId;
-      if (mark==null) mark=false;
-        var frm = document.frmMain;
-      if (!radio) return false;
-      else if (!radio.length) {
-          radio.checked = mark;
-      } else if (radio.length > 20) {
-        return submitCommandForm('FIND_SETTLEMENT', true);
-      } else {
-          var total = radio.length;
-        for (var i=0;i<total;i++) {
-              radio[i].checked=mark;
-        }
-      }
-      return true;
-    }
-
-    function onloadFunctions() {
-      enableLocalShortcuts();
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function onLoadDo(){
-      this.windowTables = new Array(
-        new windowTableId('client_top', 'buttonSearch'),
-        new windowTableId('client_middle', 'buttonOK'),
-        new windowTableId('client_bottom', 'buttonOK')
-      );
-      setWindowTableParentElement();
-      enableShortcuts('popup');
-      setBrowserAutoComplete(false);
-      
-      try {
-        onloadFunctions();
-      } catch (e) {}
-
-      setWindowElementFocus('firstElement');
-      resizeAreaCreateFrom();
-    }
-
-    function onResizeDo(){
-      resizeAreaCreateFrom();
-    }
-  </script>
-</head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onLoadDo();" onresize="onResizeDo();">
-<form id="form" method="post" action="../ad_actionButton/CreateFrom.html" name="frmMain">
-<input type="hidden" name="Command">
-<input type="hidden" name="IsPopUpCall" value="1"></input>
-<input type="hidden" name="inpKey" value="" id="paramKey"></input>
-<input type="hidden" name="inpTableId" value="" id="paramTableId"></input>
-<input type="hidden" name="inpProcessId" value="" id="paramProcessId"></input>
-<input type="hidden" name="inpPath" value="" id="paramPath"></input>
-<input type="hidden" name="inpWindowId" value="" id="paramWindowId"></input>
-<input type="hidden" name="inpTabName" value="" id="paramTabName"></input>
-  <div class="Popup_ContentPane_CircleLogo">
-    <div class="Popup_WindowLogo">
-      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
-    </div>
-  </div>
-  <table id="table_header" cellspacing="0" cellpadding="0" width="100%">
-
-    <tr>
-      <td>
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
-          <tr class="Popup_NavBar_bg"><td></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-            <td class="Popup_NavBar_bg_logo_left"></td>
-            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
-            <td class="Popup_NavBar_bg_logo_right"></td>
-            <td class="Popup_NavBar_Popup_title_cell"><span>Create from Remittance</span></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
-          <tr>
-            <td class="Popup_SeparatorBar_bg"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_messagebox">
-
-        <!-- MessageBox -->
-          <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
-            <tbody>
-              <tr class="MessageBox_TopMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr>
-                <td class="MessageBox_LeftMargin"></td>
-                <td>
-
-                  <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
-                    <tbody>
-                    <tr>
-                      <td class="MessageBox_LeftTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopLeft"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Left"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                      <td class="MessageBox_bg">
-
-                        <table class="MessageBox_Top">
-                        <tbody>
-                          <tr>
-                            <td>
-                              <span>
-                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
-                                <tbody>
-                                <tr>
-                                  <td class="MessageBox_Icon_ContentCell">
-                                    <div class="MessageBox_Icon"></div>
-                                  </td>
-                                  <td style="vertical-align: top;" id="messageBoxIDContent">
-                                    <span>
-                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
-                                        xxInfo: AccessTableWithNoView
-                                      </div>
-                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
-                                        xxThe current information is empty.
-                                      </div>
-                                      <div class="MessageBox_TextSeparator"></div>
-                                    </span>
-                                  </td>
-                                </tr>
-                                </tbody>
-                              </table>
-                              </span>
-                            </td>
-                          </tr>
-                          </tbody>
-                        </table>
-
-                      </td>
-                      <td class="MessageBox_RightTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopRight"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Right"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                    </tr>
-                    <tr>
-                      <td rowspan="2" class="MessageBox_BottomLeft">
-                      </td>
-                      <td class="MessageBox_BottomTrans MessageBox_bg">
-                      </td>
-                      <td rowspan="2" class="MessageBox_BottomRight">
-                      </td>
-                    </tr>
-                    <tr>
-                      <td class="MessageBox_Bottom">
-                      </td>
-                    </tr>
-                    </tbody>
-                  </table>
-                </td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr class="MessageBox_BottomMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-            </tbody>
-          </table>
-        <!-- MessageBox END -->
-        </div>
-      </tr>
-    </td>
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-            <tr>
-              <td colspan="6">
-                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                <tbody>
-                  <tr class="FieldGroup_TopMargin"/>
-                  <tr>
-                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupTitle">Filters</td>
-                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupContent"/>
-                  </tr>
-                  <tr class="FieldGroup_BottomMargin"/>
-                </tbody>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Business Partner</span></td>
-              <td class="TextBox_btn_ContentCell" colspan="2">
-                <table border="0" cellspacing="0" cellpadding="0" summary="" style="padding-top: 0px;">
-                  <tr>
-                    <td>
-                      <input type="hidden" name="inpcBpartnerId" id="fieldCBPartnerID" value="">
-                    </td>
-                    <td class="TextBox_ContentCell">
-                      <input type="text" class="dojoValidateValid TextBox_btn_TwoCells_width" maxlength="22" name="inpcBpartnerId_DES" id="fieldCBPartnerID_DES" value=""></input>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Business Partner'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;">
-                      <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Business Partner';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="fieldWindowID">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Business Partner" class="FieldButton_Icon FieldButton_Icon_BusinessPartner" title="Business Partner" src="../../../../../web/images/blank.gif" border="0" id="buttonBPartner"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"><span class="LabelText">Payment Rule</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inppaymentrule" class="Combo Combo_OneCell_width" id="inppaymentrule">
-                  <option value=""></option><div id="reportPaymentRule"></div>
-                </select>
-              </td>
-            </tr>
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Receipt type</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpisreceipt" id="inpisreceipt" class="Combo Combo_OneCell_width">
-                <option value="">All</option>
-                <option value="N" id="fieldIsReceiptPago">Payment</option>
-                <option value="Y" id="fieldIsReceiptCobro">Collection</option></select>
-              </td>
-
-              <td class="TitleCell"><span class="LabelText">From Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width"  type="text" name="inpplanneddateFrom" id="paramPlannedDateFrom" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramPlannedDateFrom");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateFrom', document.frmMain.inpplanneddateFrom.value, false);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText">To Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width"  type="text" name="inpplanneddateTo" id="paramPlannedDateTo" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramPlannedDateTo");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateTo', document.frmMain.inpplanneddateTo.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Amount From</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountFrom" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountFrom" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountFrom");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calculator'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseout="this.className='FieldButton';window.status='';return true;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Calculator';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText" id="AmountTo_lbl">Amount To</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input type="text"  dojoType="openbravo:RealNumberTextbox" id="paramAmountTo" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountTo" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountTo");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calculator'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Calculator';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText" id="Amount_lbl">Amount lower than</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramTotalAmount" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamount" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramTotalAmount");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calculator'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamount', document.frmMain.inpamount.value, false);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Calculator';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Status</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpStatusFrom" id="inpStatusFrom" class="Combo Combo_OneCell_width">
-                <option value=""></option>
-                <div id="reportStatusFrom"></div></select>
-              </td>
-              <td class="TitleCell"><span class="LabelText">Organization</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpadOrgId" id="inpadOrgId" class="Combo Combo_OneCell_width">
-                <div id="reportAD_Org_ID"></div></select>
-              </td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"> </td>
-            </tr>
-            <tr><td height="15px"></tr>
-            <tr>
-              <td class="TitleCell"></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonSearch" 
-                    class="ButtonLink" 
-                    onclick="removeOnUnload();submitCommandForm('FIND_SETTLEMENT', true);return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Search'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Search'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Search</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-              </td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"></td>
-              <td class="TitleCell"></td>
-            </tr>
-            <tr><td height="15px"></tr>
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; display: none;" id="client_middle">
-          <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
-
-            <tr class="Popup_Client_Selector_DataGrid_HeaderRow">
-              <td class="DataGrid_Body_LineNoCell" width="25"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpTodos" onclick="loadData(this);return true;" value="Y" id="fieldMarcarTodos"></input></span></td>
-              <th class="DataGrid_Header_Cell">Business Partner</th>
-              <th class="DataGrid_Header_Cell">Organization</th>
-              <th class="DataGrid_Header_Cell">Invoice</th>
-              <th class="DataGrid_Header_Cell">Payment rule</th>
-              <th class="DataGrid_Header_Cell">Planned date</th>
-              <th class="DataGrid_Header_Cell">Amount</th>
-              <th class="DataGrid_Header_Cell">Currency</th>
-              <th class="DataGrid_Header_Cell">Status</th>
-            </tr>
-
-            <div id="sectionDetail">
-              <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="inpRecord10000003">
-                <td class="DataGrid_Body_LineNoCell">
-                <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpcDebtPaymentId" value="" id="fieldCDebtPaymentId" onclick="updateData(this.value, this.checked);return true;"></input></span></td>
-                <td class="DataGrid_Body_Cell" id="fieldBpartner">xxQuantity</td>
-                <td class="DataGrid_Body_Cell" id="fieldOrg">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldInvoice">xxUOM</td>
-                <td class="DataGrid_Body_Cell" id="fieldPaymentRuleDes">xxProduct</td>
-                <td class="DataGrid_Body_Cell" id="fieldPlannedDate">xxP</td>
-                <td class="DataGrid_Body_Cell" id="fieldAmount">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldCurrency">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldStatus">xx</td>
-              </tr>
-            </div>
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; padding-bottom: 5px;" id="client_bottom">
-
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
-
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-
-            <tr>
-              <td></td>
-              <td></td>
-              <td class="TitleCell"><span class="LabelText">Total amount</span></td>
-              <td class="ReadOnly_Text_ContentCell"><span class="Label_ReadOnly_Text" id="fieldTotal">xxxx</span></td>
-            </tr>
-
-            <tr><td height="15px"></tr>
-
-            <tr>
-              <td></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonOK" 
-                    class="ButtonLink" 
-                    onclick="submitThisPage('SAVE');return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Accept'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Accept'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">OK</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonCancel" 
-                    class="ButtonLink" 
-                    onclick="closeThisPage();return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Cancel</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td></td>
-            </tr>
-          </table>
-        </div>
-      </td>
-    </tr>
-  </table>
-</form>
-</body>
-</html>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.xml	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2014 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-
-<REPORT>
-<template file="CreateFrom_CRemittance.html"/>
-<PARAMETER id="paramCheck" name="check" default="Y"/>
-
-<PARAMETER id="fieldCalendar" name="calendar" attribute="src" replace="es" default="en"/>
-<PARAMETER id="paramDirectory" name="directory" default=""/>
-<PARAMETER id="paramLanguage" name="language" default=""/>
-<PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
-<PARAMETER id="keyMap" name="keyMap"/>
-<PARAMETER id="paramKey" name="key" attribute="value"/>
-<PARAMETER id="paramTableId" name="tableId" attribute="value"/>
-<PARAMETER id="paramProcessId" name="processId" attribute="value"/>
-<PARAMETER id="paramPath" name="path" attribute="value"/>
-<PARAMETER id="paramWindowId" name="windowId" attribute="value"/>
-<PARAMETER id="paramTabName" name="tabName" attribute="value"/>
-
-
-<PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
-<PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
-<PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
-<PARAMETER id="fieldCBPartnerID" name="cbpartnerId" attribute="value"/>
-<PARAMETER id="fieldCBPartnerID_DES" name="cbpartnerId_DES" attribute="value"/>
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFrom" attribute="value"/>
-	<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromdisplayFormat" attribute="displayformat" replace="xx"/>
-	<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromsaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramPlannedDateTo" name="plannedDateTo" attribute="value"/>
-	<PARAMETER id="paramPlannedDateTo" name="plannedDateTodisplayFormat" attribute="displayformat" replace="xx"/>
-	<PARAMETER id="paramPlannedDateTo" name="plannedDateTosaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramIsReceiptPago" name="paramIsReceiptPago" default="N"/>
-<PARAMETER id="fieldIsReceiptPago" name="isreceiptPago" boolean="selected" withId="paramIsReceiptPago"/>
-<PARAMETER id="paramIsReceiptCobro" name="paramIsReceiptCobro" default="Y"/>
-<PARAMETER id="fieldIsReceiptCobro" name="isreceiptCobro" boolean="selected" withId="paramIsReceiptCobro"/>
-<PARAMETER id="paramAmountFrom" name="amountFrom" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramAmountTo" name="amountTo" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramTotalAmount" name="totalAmount" attribute="value" format="euroEdition"/>
-<!-- <PARAMETER id="fieldAutoCalculated" name="autoCalculated" boolean="checked" withId="paramCheck"/>
- --><PARAMETER id="paramPaymentRule" name="paymentRule"/>
-<SUBREPORT id="reportPaymentRule" name="reportPaymentRule" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramPaymentRule"/></SUBREPORT>
-
-<PARAMETER id="paramADOrgID" name="adOrgId"/>
-<SUBREPORT id="reportAD_Org_ID" name="reportAD_Org_ID" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramADOrgID"/></SUBREPORT>
-
-<PARAMETER id="paramStatusFrom" name="statusFrom"/>
-<SUBREPORT id="reportStatusFrom" name="reportStatusFrom" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramStatusFrom"/></SUBREPORT>
-
-<!-- <PARAMETER id="paramStatusTo" name="statusTo"/> -->
-<SUBREPORT id="reportStatusTo" name="reportStatusTo" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramStatusTo"/></SUBREPORT>
-
-
-<PARAMETER id="fieldMarcarTodos" name="marcarTodos" boolean="checked" withId="paramCheck"/>
-
-<PARAMETER id="param2" name="param2" default="2"/>
-<structure name="structure1">
-    <FIELD id="fieldRownum1">rownum</FIELD>
-    <FUNCTION id="inpRecord10000003" name="MODULE" arg1="fieldRownum1" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
-<FIELD id="fieldMarcarId">cDebtPaymentId</FIELD>
-<FIELD id="fieldCDebtPaymentId" attribute="value">cDebtPaymentId</FIELD>
-<FIELD id="fieldCDebtPaymentId" boolean="checked" withId="fieldMarcarId">marcarId</FIELD>
-<FIELD id="fieldBpartner" replaceCharacters="html">bpartner</FIELD>
-<FIELD id="fieldOrg" replaceCharacters="html">org</FIELD>
-<FIELD id="fieldInvoice" replaceCharacters="html">invoice</FIELD>
-<FIELD id="fieldPaymentRuleDes" replaceCharacters="html">paymentrule</FIELD>
-<FIELD id="fieldPlannedDate">dateplanned</FIELD>
-<FIELD id="fieldAmount" format="euroEdition">amount</FIELD>
-<FIELD id="fieldCurrency">isoCode</FIELD>
-<FIELD id="fieldStatus">status</FIELD>
-
-
-<FUNCTION id="fieldTotal" name="SUM" format="euroRelation">amount</FUNCTION>
-
-<SECTION id="sectionDetail"/>
-</structure>
-
-<DISCARD id="discard"/>
-
-
-</REPORT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance_data.xsql	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,172 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2010 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-<SqlClass name="CreateFromCRemittanceData" package="org.openbravo.erpCommon.ad_actionButton">
-  <SqlMethod name="select" type="preparedStatement" return="multiple">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT B.C_DEBT_PAYMENT_ID, L.NAME AS PAYMENTRULE, BP.NAME AS BPARTNER, 
-		        Ad_Column_Identifier(to_char('C_Invoice'), to_char(i.C_Invoice_ID), to_char(?)) AS INVOICE, B.DATEPLANNED, 
-		        B.AMOUNT, B.ISO_CODE,  B.Org, 
-		        (CASE ? WHEN 'Y' THEN B.C_DEBT_PAYMENT_ID ELSE '-1' END) AS MARCAR_ID, 
-		        (CASE ? WHEN 'Y' THEN '-1' ELSE B.C_DEBT_PAYMENT_ID END) AS DISABLE_INPUTS, L1.name as status, '' as line
-		   FROM ( SELECT '0' AS RN1, A.* FROM (
-		      SELECT DP.C_DEBT_PAYMENT_ID, DP.AMOUNT, DP.PAYMENTRULE, DP.DATEPLANNED, DP.C_BPARTNER_ID,
-		             DP.C_INVOICE_ID, DP.STATUS, C.ISO_CODE, O.NAME AS ORG
-		        FROM C_DEBT_PAYMENT DP, C_CURRENCY C, AD_Org O 
-		        WHERE DP.ISACTIVE = 'Y' 
-		        AND DP.AD_Org_ID = O.AD_Org_ID 
-		        AND DP.AD_CLIENT_ID IN ('1') 
-		        AND DP.AD_ORG_ID IN ('1') 
-		        AND  DP.AD_ORG_ID IN ('2') 
-		        AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID 
-		        AND CASE
-		            WHEN (DP.ISVALID = 'N') THEN 'I'
-		            WHEN (DP.C_CASHLINE_ID IS NOT NULL OR DP.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-		            WHEN (DP.CANCEL_PROCESSED = 'Y' AND DP.ISPAID = 'N') THEN 'W'
-		            WHEN (DP.CANCEL_PROCESSED = 'Y' OR(DP.C_Settlement_Cancel_ID IS NULL AND DP.GENERATE_PROCESSED = 'Y' AND DP.ISPAID = 'Y')) THEN 'A'
-		            ELSE 'P'
-		          END = 'P' 
-		        AND NOT EXISTS (SELECT 1 FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-		        AND NOT EXISTS (SELECT 1 FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-		        AND NOT EXISTS (SELECT 1 FROM C_RemittanceLine rl, C_Remittance r, C_REMITTANCE_TYPE rt 
-																		 WHERE r.C_REMITTANCE_ID = rl.C_REMITTANCE_ID
-																		 AND rt.C_REMITTANCE_TYPE_ID = r.C_REMITTANCE_TYPE_ID
-																		   AND r.PROCESSED = 'Y'
-																		   AND rt.STATUS_RETURNED <> dp.STATUS
-																			 AND rl.C_DEBT_PAYMENT_ID = dp.C_DEBT_PAYMENT_ID)
-		        ORDER BY DP.DATEPLANNED DESC) A ) B LEFT JOIN AD_REF_LIST_V L ON B.PAYMENTRULE = L.VALUE
-		                                                                     AND L.AD_REFERENCE_ID = '195'
-		                                                                     AND L.AD_LANGUAGE = ?
-		                                             left join C_BPARTNER BP    on B.C_BPARTNER_ID = BP.C_BPARTNER_ID 
-		                                             left join C_INVOICE I     on B.C_INVOICE_ID = I.C_INVOICE_ID
-		                                             left join AD_REF_LIST_V L1 on B.STATUS = L1.value
-		                                                                       and l1.ad_reference_id = '800070'
-		                                                                       and l1.Ad_Language = ?
-		     WHERE 1=1
-      ]]>
-    </Sql>
-    <Field name="rownum" value="count"/>
-    <Parameter name="language"/>
-    <Parameter name="marcartodos"/>
-    <Parameter name="marcartodos"/>
-    <Parameter name="rownum" type="replace" optional="true" after="FROM ( SELECT " text="'0'" />
-    <Parameter name="userClient" optional="true" type="replace" after="AND DP.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND DP.AD_ORG_ID IN (" text="'1'"/>    
-    <Parameter name="adOrgId" optional="true" type="replace" after="AND  DP.AD_ORG_ID IN (" text="'2'"/>    
-    <Parameter name="cBPartnerId" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.ISRECEIPT = ? "/>
-    <Parameter name="amountFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amount" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND ABS(DP.AMOUNT) < TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="statusFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.STATUS = ? "/>
-    <Parameter name="language"/>
-    <Parameter name="language"/>
-    <Parameter name="oraLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[AND RN1 <= ]]></Parameter>
-    <Parameter name="pgLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[LIMIT ]]></Parameter>
-  </SqlMethod>
-  <SqlMethod name="countRows" type="preparedStatement" return="string">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-		      SELECT COUNT(*) AS AMOUNT
-		        FROM C_DEBT_PAYMENT DP, C_CURRENCY C, AD_Org O 
-		        WHERE DP.ISACTIVE = 'Y' 
-		        AND DP.AD_Org_ID = O.AD_Org_ID 
-		        AND DP.AD_CLIENT_ID IN ('1') 
-		        AND DP.AD_ORG_ID IN ('1') 
-		        AND  DP.AD_ORG_ID IN ('2') 
-		        AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID 
-		        AND CASE
-		            WHEN (DP.ISVALID = 'N') THEN 'I'
-		            WHEN (DP.C_CASHLINE_ID IS NOT NULL OR DP.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-		            WHEN (DP.CANCEL_PROCESSED = 'Y' AND DP.ISPAID = 'N') THEN 'W'
-		            WHEN (DP.CANCEL_PROCESSED = 'Y' OR(DP.C_Settlement_Cancel_ID IS NULL AND DP.GENERATE_PROCESSED = 'Y' AND DP.ISPAID = 'Y')) THEN 'A'
-		            ELSE 'P'
-		          END = 'P' 
-		        AND NOT EXISTS (SELECT 1 FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-		        AND NOT EXISTS (SELECT 1 FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-		        AND NOT EXISTS (SELECT 1 FROM C_RemittanceLine rl, C_Remittance r, C_REMITTANCE_TYPE rt 
-																		 WHERE r.C_REMITTANCE_ID = rl.C_REMITTANCE_ID
-																		 AND rt.C_REMITTANCE_TYPE_ID = r.C_REMITTANCE_TYPE_ID
-																		   AND r.PROCESSED = 'Y'
-																		   AND rt.STATUS_RETURNED <> dp.STATUS
-																			 AND rl.C_DEBT_PAYMENT_ID = dp.C_DEBT_PAYMENT_ID)
-      ]]>
-    </Sql>
-    <Field name="rownum" value="count"/>   
-    <Parameter name="userClient" optional="true" type="replace" after="AND DP.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND DP.AD_ORG_ID IN (" text="'1'"/>    
-    <Parameter name="adOrgId" optional="true" type="replace" after="AND  DP.AD_ORG_ID IN (" text="'2'"/>    
-    <Parameter name="cBPartnerId" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.ISRECEIPT = ? "/>
-    <Parameter name="amountFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amount" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND ABS(DP.AMOUNT) < TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="statusFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.STATUS = ? "/>
-  </SqlMethod>
-  
-  <SqlMethod name="insert" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        insert into C_RemittanceLine(C_REMITTANCELINE_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, 
-                                     CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_REMITTANCE_ID, LINE, C_DEBT_PAYMENT_ID)
-         SELECT ?,?, AD_ORG_ID ,'Y', 
-                now(), ?, now(), ?, ?,TO_NUMBER(?), C_DEBT_PAYMENT_ID
-                FROM C_DEBT_PAYMENT
-                WHERE C_DEBT_PAYMENT_ID = ?
-        ]]>
-    </Sql>
-    <Parameter name="LineID"/>
-    <Parameter name="client"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="key"/>
-    <Parameter name="lineNo"/>
-    <Parameter name="dpId"/>
-  </SqlMethod>
-
-  
-
-  <SqlMethod name="selectLineNo" type="preparedStatement" return="string" default="0">
-    <Sql>
-      <![CDATA[
-          SELECT COALESCE(MAX(LINE),0) AS LINE
-            FROM C_REMITTANCELINE 
-           WHERE C_REMITTANCE_ID = ?
-        ]]>
-    </Sql>
-    <Parameter name="remittaceID"/>
-   </SqlMethod>
-   
- </SqlClass>
-
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,709 +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) 2001-2011 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Create from Settlement</title>
-  <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
-  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"></link>
-  <script language="JavaScript" type="text/javascript" id="paramDirectory">
-    var baseDirectory="../../../../../web/";
-  </script>
-  <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></script>
-  <script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
-  <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
-  <script language="JavaScript" type="text/javascript">
-
-    window.onunload = reloadOpener; // reloads opener on closing
-
-    function closeThisPage() {
-      closePage();
-      return true;
-    }
-
-    function submitThisPage(strCommand) {
-      if (validate(strCommand)) {
-        submitCommandForm(strCommand, false, null, null);
-        return true;
-      }
-      return true;
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-
-    function enableLocalShortcuts() {
-    keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
-    }
-
-    function validate(action) {
-        var frm=document.frmMain;
-      if (action=="FIND_SETTLEMENT") {
-        if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, document.getElementById('paramPlannedDateFrom').getAttribute('displayFormat'))) {
-          setWindowElementFocus(frm.inpplanneddateFrom);
-          frm.inpplanneddateFrom.select();
-          showJSMessage(5);
-          setTimeout('resizeAreaCreateFrom()',100);
-          return false;
-        } else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, document.getElementById('paramPlannedDateTo').getAttribute('displayFormat'))) {
-          setWindowElementFocus(frm.inpplanneddateTo);
-          frm.inpplanneddateTo.select();
-          showJSMessage(5);
-          setTimeout('resizeAreaCreateFrom()',100);
-          return false;
-        } else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !validateNumberField(frm.inpamount, true, true)) {
-          setWindowElementFocus(frm.inpamount);
-          return false;
-        }
-      } else if (radioValue(frm.inpcDebtPaymentId)==null) {
-        showJSMessage(1);
-        setTimeout('resizeAreaCreateFrom()',100);
-        return false;
-      }
-      
-      if ((action=="SAVE") && (frm.inpStatusTo.value == null || frm.inpStatusTo.value == "")) {
-  		setWindowElementFocus(frm.inpStatusTo);
-  		showJSMessage(7);
-  		return false;
-  	  }
-  	  
-        return true;
-    }
-
-    function updateData(key, mark) {
-      if (mark==null) mark=false;
-      var frm = document.frmMain;
-    //    frm.elements["inpwriteoff" + key].disabled=!mark;
-    //    frm.elements["inpispaid" + key].disabled=!mark;
-      return true;
-    }
-
-    function loadData(mark) {
-      var radio=document.frmMain.inpcDebtPaymentId;
-      if (mark==null) mark=false;
-        var frm = document.frmMain;
-      if (!radio) return false;
-      else if (!radio.length) {
-          radio.checked = mark;
-    //    	frm.elements["inpwriteoff" + radio.value].disabled=!mark;
-    //    	frm.elements["inpispaid" + radio.value].disabled=!mark;
-      } else if (radio.length > 20) {
-        return submitCommandForm('FIND_SETTLEMENT', true);
-      } else {
-          var total = radio.length;
-        for (var i=0;i<total;i++) {
-              radio[i].checked=mark;
-    //      		frm.elements["inpwriteoff" + radio[i].value].disabled=!mark;
-    //      		frm.elements["inpispaid" + radio[i].value].disabled=!mark;
-        }
-      }
-      return true;
-    }
-
-    function onloadFunctions() {
-      enableLocalShortcuts();
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function onLoadDo(){
-      this.windowTables = new Array(
-        new windowTableId('client_top', 'buttonSearch'),
-        new windowTableId('client_middle', 'buttonOK'),
-        new windowTableId('client_bottom', 'buttonOK')
-      );
-      setWindowTableParentElement();
-      enableShortcuts('popup');
-      setBrowserAutoComplete(false);
-      
-      try {
-        onloadFunctions();
-      } catch (e) {}
-
-      setWindowElementFocus('firstElement');
-      resizeAreaCreateFrom();
-    }
-
-    function onResizeDo(){
-      resizeAreaCreateFrom();
-    }
-  </script>
-</head>
-
-
-
-
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
-<form id="form" method="post" action="../ad_actionButton/CreateFrom.html" name="frmMain">
-<input type="hidden" name="Command">
-<input type="hidden" name="IsPopUpCall" value="1"></input>
-<input type="hidden" name="inpKey" value="" id="paramKey"></input>
-<input type="hidden" name="inpTableId" value="" id="paramTableId"></input>
-<input type="hidden" name="inpProcessId" value="" id="paramProcessId"></input>
-<input type="hidden" name="inpPath" value="" id="paramPath"></input>
-<input type="hidden" name="inpWindowId" value="" id="paramWindowId"></input>
-<input type="hidden" name="inpTabName" value="" id="paramTabName"></input>
-
-  <div class="Popup_ContentPane_CircleLogo">
-    <div class="Popup_WindowLogo">
-      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
-    </div>
-  </div>
-
-  <table id="table_header" cellspacing="0" cellpadding="0" width="100%">
-
-    <tr>
-      <td>
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
-          <tr class="Popup_NavBar_bg"><td></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-            <td class="Popup_NavBar_bg_logo_left"></td>
-            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
-            <td class="Popup_NavBar_bg_logo_right"></td>
-            <td class="Popup_NavBar_Popup_title_cell"><span>DP Management</span></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-    <tr>
-      <td id="tdSeparator">
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
-          <tr>
-            <td class="Popup_SeparatorBar_bg"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_messagebox">
-
-        <!-- MessageBox -->
-          <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
-            <tbody>
-              <tr class="MessageBox_TopMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr>
-                <td class="MessageBox_LeftMargin"></td>
-                <td>
-
-                  <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
-                    <tbody>
-                    <tr>
-                      <td class="MessageBox_LeftTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopLeft"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Left"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                      <td class="MessageBox_bg">
-
-                        <table class="MessageBox_Top">
-                        <tbody>
-                          <tr>
-                            <td>
-                              <span>
-                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
-                                <tbody>
-                                <tr>
-                                  <td class="MessageBox_Icon_ContentCell">
-                                    <div class="MessageBox_Icon"></div>
-                                  </td>
-                                  <td style="vertical-align: top;" id="messageBoxIDContent">
-                                    <span>
-                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
-                                        xxInfo: AccessTableWithNoView
-                                      </div>
-                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
-                                        xxThe current information is empty.
-                                      </div>
-                                      <div class="MessageBox_TextSeparator"></div>
-                                    </span>
-                                  </td>
-                                </tr>
-                                </tbody>
-                              </table>
-                              </span>
-                            </td>
-                          </tr>
-                          </tbody>
-                        </table>
-
-                      </td>
-                      <td class="MessageBox_RightTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopRight"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Right"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                    </tr>
-                    <tr>
-                      <td rowspan="2" class="MessageBox_BottomLeft">
-                      </td>
-                      <td class="MessageBox_BottomTrans MessageBox_bg">
-                      </td>
-                      <td rowspan="2" class="MessageBox_BottomRight">
-                      </td>
-                    </tr>
-                    <tr>
-                      <td class="MessageBox_Bottom">
-                      </td>
-                    </tr>
-                    </tbody>
-                  </table>
-                </td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr class="MessageBox_BottomMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-            </tbody>
-          </table>
-        <!-- MessageBox END -->
-        </div>
-      </tr>
-    </td>
-  </table>
-    <!-- MessageBox END -->
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-
-            <tr>
-              <td colspan="6">
-                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                <tbody>
-                  <tr class="FieldGroup_TopMargin"/>
-                  <tr>
-                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupTitle">Filters</td>
-                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupContent"/>
-                  </tr>
-                  <tr class="FieldGroup_BottomMargin"/>
-                </tbody>
-                </table>
-              </td>
-            </tr>
-            <tr>
-              <td class="TitleCell">
-                <span class="LabelText">Business Partner</span>
-              </td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input type="hidden" name="inpNewcInvoiceId" value="">
-                      <input type="hidden" name="inpcBpartnerId" id="fieldCBPartnerID" value="">
-                      <input type="text" class="dojoValidateValid TextBox_btn_TwoCells_width" maxlength="22" name="inpBpartnerId_DES" id="fieldCBPartnerID_DES" value=""></input>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Business Partner'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Business Partner';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                              <img border="0" id="buttonBusinessPartner" src="../../../../../web/images/blank.gif" title="Business Partner " class="FieldButton_Icon FieldButton_Icon_BusinessPartner" alt="Business Partner "/>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText">Payment Rule</span></td>
-              <td class="Combo_ContentCell" colspan="2">
-                <select name="inppaymentrule" class="Combo Combo_TwoCells_width" onchange="submitCommandForm('FIND_PO', false, null, null, '_self');return true;" id="inppaymentrule">
-                  <option value=""></option><div id="reportPaymentRule"></div>
-                </select>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Receipt type</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpisreceipt" id="inpisreceipt" class="Combo Combo_OneCell_width">
-                <option value="">All</option>
-                <option value="N" id="fieldIsReceiptPago">Payment</option>
-                <option value="Y" id="fieldIsReceiptCobro">Collection</option></select>
-              </td>
-
-              <td class="TitleCell"><span class="LabelText">From Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateFrom" id="paramPlannedDateFrom" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramPlannedDateFrom");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Show calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateFrom', document.frmMain.inpplanneddateFrom.value, false);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText">To Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateTo" id="paramPlannedDateTo" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramPlannedDateTo");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Show calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateTo', document.frmMain.inpplanneddateTo.value, false);return false;" >
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-
-            <tr><td class="TitleCell">
-
-                <span class="LabelText" id="NoPackages_lbl">
-                  Amount From </span>
-
-                </td><td class="TextBox_btn_ContentCell">
-                <div id="editDiscard">
-                  <table border="0" cellspacing="0" cellpadding="0" summary="" class="">
-                    <tr>
-                      <td class="TextBox_ContentCell">
-                        <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountFrom" class="TextBox_btn_OneCell_width" value="" maxlength="10" name="inpamountFrom" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountFrom");</script>
-                      </td>
-                      <td class="FieldButton_ContentCell">
-                        <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;" >
-                          <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Amount From';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                            <tr>
-                              <td class="FieldButton_bg">
-                                <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount From" src="../../../../../web/images/blank.gif" border="0"></img>
-                              </td>
-                            </tr>
-                          </table>
-                        </a>
-                      </td>
-                    </tr>
-                  </table>
-                </div>
-              </td>
-              <td class="TitleCell">
-
-                <span class="LabelText" id="NoPackages_lbl">
-                  Amount To</span>
-
-                </td><td class="TextBox_btn_ContentCell">
-                <div id="editDiscard">
-
-                    <table border="0" cellspacing="0" cellpadding="0" summary="" class="">
-                      <tr>
-                        <td class="TextBox_ContentCell">
-                          <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountTo" class="TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountTo" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountTo");</script>
-                        </td>
-                        <td class="FieldButton_ContentCell">
-                          <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount to'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;" >
-                            <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Amount to';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                              <tr>
-                                <td class="FieldButton_bg">
-                                <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0"></img>
-                                </td>
-                              </tr>
-                            </table>
-                          </a>
-                        </td>
-                      </tr>
-                    </table>
-                </div>
-              </td>
-              <td class="TitleCell">
-
-                <span class="LabelText" id="NoPackages_lbl">
-                  Amount lower than</span>
-
-                </td><td class="TextBox_btn_ContentCell">
-                <div id="editDiscard">
-
-                    <table border="0" cellspacing="0" cellpadding="0" summary="" class="">
-                      <tr>
-                        <td class="TextBox_ContentCell">
-                          <input type="text" dojoType="openbravo:RealNumberTextbox" id="paramTotalAmount" class="TextBox_btn_OneCell_width" value="" maxlength="10" name="inpamount" onkeyup="" onchange="logChanges(this);return true;" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramTotalAmount");</script>
-                        </td>
-                        <td class="FieldButton_ContentCell">
-                          <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount lower than'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamount', document.frmMain.inpamount.value, false);return false;" id="NoPackageslinkCalc">
-                            <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Amount lower than';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                              <tr>
-                                <td class="FieldButton_bg">
-                                <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount lower than" src="../../../../../web/images/blank.gif" border="0"></img>
-                                </td>
-                              </tr>
-                            </table>
-                          </a>
-                        </td>
-                      </tr>
-                    </table>
-                </div>
-              </td>
-
-            <tr>
-
-              <td class="TitleCell"><span class="LabelText">Status</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpStatusFrom" id="inpStatusFrom" class="Combo Combo_OneCell_width">
-                <option value=""></option>
-                <div id="reportStatusFrom"></div></select>
-              </td>
-              <td class="TitleCell"><span class="LabelText">Organization</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpadOrgId" id="inpadOrgId" class="Combo Combo_OneCell_width">
-                <option value=""></option>
-                <div id="reportAD_Org_ID"></div></select>
-              </td>
-            </tr>
-            <tr>
-              <td></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonSearch" 
-                    class="ButtonLink" 
-                    onclick="removeOnUnload();submitCommandForm('FIND_SETTLEMENT', true);return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Search'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Search'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Search</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-              </td>
-              <td></td>
-              <td></td>
-              <td></td>
-            </tr>
-
-
-            <tr>
-              <td colspan="6">
-                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                <tbody>
-                  <tr class="FieldGroup_TopMargin"/>
-                  <tr>
-                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupTitle">Final status</td>
-                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupContent"/>
-                  </tr>
-                  <tr class="FieldGroup_BottomMargin"/>
-                </tbody>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Status</span></td>
-              <td class="Combo_ContentCell">
-                <select class="Combo Combo_OneCell_width required" required="true" name="inpStatusTo" id="inpStatusTo">
-                <option value=""></option>
-                <div id="reportStatusTo"></div></select>
-              </td>
-            </tr>
-
-            <tr><td height="15px"></td></tr>
-
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; display: none;" id="client_middle">
-          <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
-
-            <tr class="Popup_Client_Selector_DataGrid_HeaderRow"> 
-              <th width="15" class="DataGrid_Header_LineNoCell"> <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpTodos" onclick="loadData(this.checked);return true;" value="Y" id="fieldMarcarTodos"></input></span></th>
-              <th width="175" class="DataGrid_Header_Cell">Business Partner</th>
-              <th width="109" class="DataGrid_Header_Cell">Organization</th>
-              <th width="136" class="DataGrid_Header_Cell">Invoice</th>
-              <th width="137" class="DataGrid_Header_Cell">Payment rule</th>
-              <th width="100" class="DataGrid_Header_Cell">Planned date</th>
-              <th width="73" class="DataGrid_Header_Cell">Amount</th>
-              <th width="54" class="DataGrid_Header_Cell">Currency</th>
-              <th width="54" class="DataGrid_Header_Cell">Status</th>
-            </tr>
-            <div id="sectionDetail">
-              <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="inpRecord10000003"> 
-                <td class="DataGrid_Body_LineNoCell">
-                <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpcDebtPaymentId" value="" id="fieldCDebtPaymentId" onclick="updateData(this.value, this.checked);return true;"></input></span></td>
-                <td class="DataGrid_Body_Cell" id="fieldBpartner">xxQuantity</td>
-                <td class="DataGrid_Body_Cell" id="fieldOrg">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldInvoice">xxUOM</td>
-                <td class="DataGrid_Body_Cell" id="fieldPaymentRuleDes">xxProduct</td>
-                <td class="DataGrid_Body_Cell" id="fieldPlannedDate">xxP</td>
-                <td class="DataGrid_Body_Cell" id="fieldAmount">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldCurrency">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldStatus">xx</td>
-              </tr>
-            </div>
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; padding-bottom: 5px;" id="client_bottom">
-
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
-
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-
-
-            <tr>
-              <td></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonOK" 
-                    class="ButtonLink" 
-                    onclick="submitThisPage('SAVE', true);return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Accept'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Accept'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">OK</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonCancel" 
-                    class="ButtonLink" 
-                    onclick="closeThisPage();return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Cancel</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td></td>
-            </tr>
-          </table>
-        </div>
-      </td>
-    </tr>
-  </table>
-</form>
-</body>
-</html>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.xml	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2010 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-
-<REPORT>
-<template file="CreateFrom_DPManagement.html"/>
-<PARAMETER id="paramCheck" name="check" default="Y"/>
-
-<PARAMETER id="fieldCalendar" name="calendar" attribute="src" replace="es" default="en"/>
-<PARAMETER id="paramDirectory" name="directory" default=""/>
-<PARAMETER id="paramLanguage" name="language" default=""/>
-<PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
-<PARAMETER id="paramKey" name="key" attribute="value"/>
-<PARAMETER id="paramTableId" name="tableId" attribute="value"/>
-<PARAMETER id="paramProcessId" name="processId" attribute="value"/>
-<PARAMETER id="paramPath" name="path" attribute="value"/>
-<PARAMETER id="paramWindowId" name="windowId" attribute="value"/>
-<PARAMETER id="paramTabName" name="tabName" attribute="value"/>
-
-<PARAMETER id="buttonOk" name="ok" default="" attribute="title" replace="xx"/>
-<PARAMETER id="buttonCancel" name="cancel" default="" attribute="title" replace="xx"/>
-
-<PARAMETER id="keyMap" name="keyMap"/>
-
-<PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
-<PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
-<PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
-
-<PARAMETER id="fieldCBPartnerID" name="cbpartnerId" attribute="value"/>
-<PARAMETER id="fieldCBPartnerID_DES" name="cbpartnerId_DES" attribute="value"/>
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFrom" attribute="value"/>
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromdisplayFormat" attribute="displayformat" replace="xx"/>
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromsaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramPlannedDateTo" name="plannedDateTo" attribute="value"/>
-<PARAMETER id="paramPlannedDateTo" name="plannedDateTodisplayFormat" attribute="displayformat" replace="xx"/>
-<PARAMETER id="paramPlannedDateTo" name="plannedDateTosaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramIsReceiptPago" name="paramIsReceiptPago" default="N"/>
-<PARAMETER id="fieldIsReceiptPago" name="isreceiptPago" boolean="selected" withId="paramIsReceiptPago"/>
-<PARAMETER id="paramIsReceiptCobro" name="paramIsReceiptCobro" default="Y"/>
-<PARAMETER id="fieldIsReceiptCobro" name="isreceiptCobro" boolean="selected" withId="paramIsReceiptCobro"/>
-<PARAMETER id="paramAmountFrom" name="amountFrom" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramAmountTo" name="amountTo" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramTotalAmount" name="totalAmount" attribute="value" format="euroEdition"/>
-<!-- <PARAMETER id="fieldAutoCalculated" name="autoCalculated" boolean="checked" withId="paramCheck"/>
- --><PARAMETER id="paramPaymentRule" name="paymentRule"/>
-<SUBREPORT id="reportPaymentRule" name="reportPaymentRule" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramPaymentRule"/></SUBREPORT>
-
-<PARAMETER id="paramADOrgID" name="adOrgId"/>
-<SUBREPORT id="reportAD_Org_ID" name="reportAD_Org_ID" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramADOrgID"/></SUBREPORT>
-
-<PARAMETER id="paramStatusFrom" name="statusFrom"/>
-<SUBREPORT id="reportStatusFrom" name="reportStatusFrom" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramStatusFrom"/></SUBREPORT>
-
-<PARAMETER id="paramStatusTo" name="statusTo"/>
-<SUBREPORT id="reportStatusTo" name="reportStatusTo" report="org/openbravo/erpCommon/reference/List">
-<ARGUMENT name="parameterListSelected" withId="paramStatusTo"/></SUBREPORT>
-
-
-<PARAMETER id="fieldMarcarTodos" name="marcarTodos" boolean="checked" withId="paramCheck"/>
-
-<PARAMETER id="param2" name="param2" default="2"/>
-<structure name="structure1">
-    <FIELD id="fieldRownum1">rownum</FIELD>
-    <FUNCTION id="inpRecord10000003" name="MODULE" arg1="fieldRownum1" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
-<FIELD id="fieldMarcarId">cDebtPaymentId</FIELD>
-<FIELD id="fieldCDebtPaymentId" attribute="value">cDebtPaymentId</FIELD>
-<FIELD id="fieldCDebtPaymentId" boolean="checked" withId="fieldMarcarId">marcarId</FIELD>
-<FIELD id="fieldBpartner">bpartner</FIELD>
-<FIELD id="fieldOrg">org</FIELD>
-<FIELD id="fieldInvoice">invoice</FIELD>
-<FIELD id="fieldPaymentRuleDes">paymentrule</FIELD>
-<FIELD id="fieldPlannedDate">dateplanned</FIELD>
-<FIELD id="fieldAmount" format="euroEdition">amount</FIELD>
-<FIELD id="fieldCurrency">isoCode</FIELD>
-<FIELD id="fieldStatus">status</FIELD>
-
-
-<FUNCTION id="fieldTotal" name="SUM" format="euroRelation">amount</FUNCTION>
-
-<SECTION id="sectionDetail"/>
-</structure>
-
-
-
-
-</REPORT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement_data.xsql	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,195 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2010 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-<SqlClass name="CreateFromDPManagementData" package="org.openbravo.erpCommon.ad_actionButton">
-  <SqlMethod name="select" type="preparedStatement" return="multiple">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT B.*,
-            Ad_Column_Identifier(to_char('C_Invoice'), to_char(C_Invoice_ID), to_char(?)) AS INVOICE,
-            (SELECT NAME FROM C_BPARTNER BP WHERE BP.C_BPARTNER_ID = b.C_BPARTNER_ID) AS BPARTNER,
-            COALESCE(
-            	(SELECT NAME FROM AD_REF_LIST_V L1 where dp_status = L1.VALUE AND L1.AD_REFERENCE_ID = '800070' AND L1.AD_LANGUAGE = ?),
-            	dp_status
-            ) AS status,
-            COALESCE(
-            	(SELECT NAME FROM AD_REF_LIST_V L where dp_paymentrule = L.VALUE AND L.AD_REFERENCE_ID = '195' AND L.AD_LANGUAGE = ?),
-            	dp_paymentrule
-            ) AS paymentrule
-        FROM ( SELECT '0' AS RN1, A.* FROM (
-        SELECT DP.C_DEBT_PAYMENT_ID, 
-        dp.paymentrule  as dp_paymentrule,
-        DP.DATEPLANNED, 
-        dp.C_Invoice_ID, dp.c_bpartner_id,
-        DP.AMOUNT, C.ISO_CODE,  O.Name as Org, DP.status as dp_status,
-        (CASE ? WHEN 'Y' THEN DP.C_DEBT_PAYMENT_ID ELSE '-1' END) AS MARCAR_ID, 
-        (CASE ? WHEN 'Y' THEN '-1' ELSE DP.C_DEBT_PAYMENT_ID END) AS DISABLE_INPUTS,
-        '' AS LINE
-        FROM C_DEBT_PAYMENT DP,
-           C_CURRENCY C, AD_Org O 
-        WHERE DP.ISACTIVE = 'Y' 
-        AND DP.AD_Org_ID = O.AD_Org_ID 
-        AND DP.AD_CLIENT_ID IN ('1') 
-        AND DP.AD_ORG_ID IN ('1') 
-        AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID 
-        AND CASE
-              WHEN (DP.ISVALID = 'N') THEN 'I'
-              WHEN (DP.C_CASHLINE_ID IS NOT NULL OR DP.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-              WHEN (DP.CANCEL_PROCESSED = 'Y' AND DP.ISPAID = 'N') THEN 'W'
-              WHEN (DP.CANCEL_PROCESSED = 'Y' OR(DP.C_Settlement_Cancel_ID IS NULL AND DP.GENERATE_PROCESSED = 'Y' AND DP.ISPAID = 'Y')) THEN 'A'
-              ELSE 'P'
-            END = 'P'
-        AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-        AND NOT EXISTS (SELECT * FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-        ORDER BY DP.DATEPLANNED DESC 
-        ) A ) B
-        WHERE 1=1
-
-
-      ]]>
-    </Sql>
-    <Field name="rownum" value="count"/>
-
-    <Parameter name="language"/>
-    <Parameter name="language"/>
-    <Parameter name="language"/>
-
-    <Parameter name="rownum" type="replace" optional="true" after="FROM ( SELECT " text="'0'" />        
-
-    <Parameter name="marcartodos"/>
-    <Parameter name="marcartodos"/>
-    
-    <Parameter name="userClient" optional="true" type="replace" after="AND DP.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND DP.AD_ORG_ID IN (" text="'1'"/>
-    
-    <Parameter name="cBPartnerId" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.ISRECEIPT = ? "/>
-    <Parameter name="amountFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amount" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND ABS(DP.AMOUNT) < TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="statusFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.STATUS = ? ]]></Parameter>
-    <Parameter name="adOrgId" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.AD_Org_ID = ? "/>
-    <Parameter name="oraLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[AND RN1 <= ]]></Parameter>
-    <Parameter name="pgLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[LIMIT ]]></Parameter>
-
-  </SqlMethod>
-  
-  <SqlMethod name="countRows" type="preparedStatement" return="String">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT COUNT(*) AS COUNT 
-        FROM C_DEBT_PAYMENT DP
-        WHERE DP.ISACTIVE = 'Y' 
-        AND DP.AD_CLIENT_ID IN ('1') 
-        AND DP.AD_ORG_ID IN ('1') 
-        AND 1=1
-        AND CASE
-              WHEN (DP.ISVALID = 'N') THEN 'I'
-              WHEN (DP.C_CASHLINE_ID IS NOT NULL OR DP.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-              WHEN (DP.CANCEL_PROCESSED = 'Y' AND DP.ISPAID = 'N') THEN 'W'
-              WHEN (DP.CANCEL_PROCESSED = 'Y' OR(DP.C_Settlement_Cancel_ID IS NULL AND DP.GENERATE_PROCESSED = 'Y' AND DP.ISPAID = 'Y')) THEN 'A'
-              ELSE 'P'
-            END = 'P'
-        AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-        AND NOT EXISTS (SELECT * FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)
-      ]]>
-    </Sql>
-    <Field name="rownum" value="count"/>
-    
-    <Parameter name="userClient" optional="true" type="replace" after="AND DP.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND DP.AD_ORG_ID IN (" text="'1'"/>
-    
-    <Parameter name="cBPartnerId" optional="true" after="AND 1=1" text=" AND DP.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND 1=1" text=" AND DP.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND 1=1"><![CDATA[ AND DP.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND 1=1"><![CDATA[ AND DP.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND 1=1" text=" AND DP.ISRECEIPT = ? "/>
-    <Parameter name="amountFrom" optional="true" after="AND 1=1"><![CDATA[ AND DP.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND 1=1"><![CDATA[ AND DP.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amount" optional="true" after="AND 1=1"><![CDATA[ AND ABS(DP.AMOUNT) < TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="statusFrom" optional="true" after="AND 1=1"><![CDATA[ AND DP.STATUS = ? ]]></Parameter>
-    <Parameter name="adOrgId" optional="true" after="AND 1=1" text=" AND DP.AD_Org_ID = ? "/>
-  </SqlMethod>
-
-  <SqlMethod name="bpartner" type="preparedStatement" return="String" default="">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      SELECT NAME FROM C_BPARTNER WHERE C_BPARTNER_ID=?
-    </Sql>
-    <Parameter name="cBpartnerId"/>
-  </SqlMethod>
-  <SqlMethod name="NotIsCancelled" type="preparedStatement" connection="true" return="boolean">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql><![CDATA[
-      SELECT COUNT(*) 
-      FROM C_DEBT_PAYMENT DP 
-      WHERE DP.C_DEBT_PAYMENT_ID = ? 
-      AND C_DEBT_PAYMENT_STATUS(DP.C_Settlement_Cancel_ID, DP.Cancel_Processed, DP.Generate_Processed, 
-      DP.IsPaid, DP.IsValid, DP.C_CashLine_ID, DP.C_BankStatementLine_ID)='P' 
-      AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-      AND NOT EXISTS (SELECT * FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-    ]]></Sql>
-    <Parameter name="cDebtPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="insert" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        insert into C_DP_ManagementLine (C_DP_MANAGEMENTLINE_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, 
-                                         CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_DP_MANAGEMENT_ID, STATUS_TO,C_DEBT_PAYMENT_ID, LINE)
-        SELECT ?,?, ad_org_id,'Y', now(), ?, now(), ?, ?,?,C_DEBT_PAYMENT_ID, TO_NUMBER(?)
-        FROM C_DEBT_PAYMENT
-        WHERE C_DEBT_PAYMENT_ID = ?
-
-      ]]>
-    </Sql>
-    <Parameter name="LineID"/>
-    <Parameter name="client"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="adUserId"/>
-    <Parameter name="key"/>
-    <Parameter name="statusTo"/>
-	<Parameter name="line"/>
-    <Parameter name="dpId"/>
-  </SqlMethod>
-    <SqlMethod name="getLine" type="preparedStatement" return="String">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-	    SELECT COALESCE(MAX(LINE),0) AS LINE
-		  FROM C_DP_ManagementLine
-		 WHERE C_DP_MANAGEMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="dpmId"/>
-  </SqlMethod>
-  
-  
-  </SqlClass>
-
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,689 +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) 2001-2011 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-<html>
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <title>Create from Settlement</title>
-  <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
-  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS" />
-  <script language="JavaScript" type="text/javascript" id="paramDirectory">var baseDirectory = "../../../../../web/";</script>
-  <script language="JavaScript" type="text/javascript" id="paramLanguage">	defaultLang="en_US";</script>  
-  <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
-  <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
-  <script type="text/javascript">
-    window.onunload = reloadOpener; // reloads opener on closing
-    dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function closeThisPage() {
-      closePage();
-      return true;
-    }
-
-    function submitThisPage(strCommand) {
-      if (validate(strCommand)) {
-        submitCommandForm(strCommand, false, null, null);
-        return true;
-      }
-      return true;
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-
-    function enableLocalShortcuts() {
-      keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
-    }
-
-    function validate(action) {
-      return true;
-    }
-
-    function updatePrice(obj) {
-      if (obj==null) return false;
-      var price = document.frmMain.inpTotalPrice;
-      var actualValue = Number(eval("document.frmMain.inpPrice" + obj.value + ".value"));
-      var radio = document.frmMain.inpcDebtPaymentId;
-      var flag = true
-      if (obj.checked) {
-    	 for (var i=0;i<radio.length;i++) { 
-           if (!radio[i].checked)
-             flag = false;
-         }
-         if(flag)
-           document.frmMain.inpTodos.checked=true; 
-         price.value = round(Number(price.value),2) + actualValue;
-      } else {
-    	document.frmMain.inpTodos.checked=false;
-        price.value = round(Number(price.value),2) - actualValue;
-      }
-
-      if (isNaN(price.value)) {
-         price.value = 0;
-      }
-
-      var decSeparator = getGlobalDecSeparator();
-      var groupSeparator = getGlobalGroupSeparator();
-      var groupInterval = getGlobalGroupInterval();
-      var maskNumeric = formatNameToMask("euroEdition");
-      round(price.value, 2);
-      var formattedValue = returnCalcToFormatted(price.value, maskNumeric, decSeparator, groupSeparator, groupInterval);
-      layer("paramTotalPrice", formattedValue, true);
-      return true;
-    }
-    function updateData(obj) {
-      if (obj==null) marcar=false;
-      var frm = document.frmMain;
-      frm.elements["inpwriteoff" + obj.value].disabled=!obj.checked;
-      frm.elements["inpispaid" + obj.value].disabled=!obj.checked;
-      updatePrice(obj);
-      return true;
-    }
-
-    function loadData(obj) {
-      var radio=document.frmMain.inpcDebtPaymentId;
-      if (obj.checked==null) obj.checked=false;
-        var frm = document.frmMain;
-      if (!radio) return false;
-      else if (!radio.length) {
-          radio.checked = obj.checked;
-          frm.elements["inpwriteoff" + radio.value].disabled=!obj.checked;
-          frm.elements["inpispaid" + radio.value].disabled=!obj.checked;
-          updatePrice(obj);
-      } else if (radio.length > 100) {
-        return submitCommandForm('FIND_SETTLEMENT', true);
-      } else {
-          var total = radio.length;
-          for (var i=0;i<total;i++) {
-        	  if (obj.checked) {
-        	     if (!radio[i].checked) {
-                    radio[i].checked=obj.checked;
-                    frm.elements["inpwriteoff" + radio[i].value].disabled=!obj.checked;
-                    frm.elements["inpispaid" + radio[i].value].disabled=!obj.checked;
-                    updatePrice(radio[i]);
-        	     }
-        	  }
-        	  else {
-                radio[i].checked=obj.checked;
-                frm.elements["inpwriteoff" + radio[i].value].disabled=!obj.checked;
-                frm.elements["inpispaid" + radio[i].value].disabled=!obj.checked;
-                updatePrice(radio[i]);
-        	  }
-          }
-      }
-      return true;
-    }
-
-    function onloadFunctions() {
-      enableLocalShortcuts();
-    }
-  </script>
-  <script language="JavaScript" type="text/javascript">
-    function onLoadDo(){
-      this.windowTables = new Array(
-        new windowTableId('client_top', 'buttonSearch'),
-        new windowTableId('client_middle', 'buttonOK'),
-        new windowTableId('client_bottom', 'buttonOK')
-      );
-      setWindowTableParentElement();
-      enableShortcuts('popup');
-      setBrowserAutoComplete(false);
-      
-      try {
-        onloadFunctions();
-      } catch (e) {}
-
-      setWindowElementFocus('firstElement');
-      resizeAreaCreateFrom();
-    }
-
-    function onResizeDo(){
-      resizeAreaCreateFrom();
-    }
-  </script>
-</head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
-<form id="form" method="post" action="../ad_actionButton/CreateFrom.html" name="frmMain">
-<input type="hidden" name="Command">
-<input type="hidden" name="IsPopUpCall" value="1"></input>
-<input type="hidden" name="inpKey" value="" id="paramKey"></input>
-<input type="hidden" name="inpTableId" value="" id="paramTableId"></input>
-<input type="hidden" name="inpProcessId" value="" id="paramProcessId"></input>
-<input type="hidden" name="inpPath" value="" id="paramPath"></input>
-<input type="hidden" name="inpWindowId" value="" id="paramWindowId"></input>
-<input type="hidden" name="inpTabName" value="" id="paramTabName"></input>
-
-  <div class="Popup_ContentPane_CircleLogo">
-    <div class="Popup_WindowLogo">
-      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
-    </div>
-  </div>
-
-  <table id="table_header" cellspacing="0" cellpadding="0" width="100%">
-    <tr>
-      <td id="tdNavigation">
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
-          <tr class="Popup_NavBar_bg"><td></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-            <td class="Popup_NavBar_bg_logo_left"></td>
-            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img 
-  src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
-            <td class="Popup_NavBar_bg_logo_right"></td>
-            <td class="Popup_NavBar_Popup_title_cell"><span>Create From Settlement</span></td>
-            <td class="Popup_NavBar_separator_cell"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-    <tr>
-      <td id="tdSeparator">
-        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
-          <tr>
-            <td class="Popup_SeparatorBar_bg"></td>
-          </tr>
-        </table>
-      </td>
-    </tr>
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_messagebox">
-
-        <!-- MessageBox -->
-          <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
-            <tbody>
-              <tr class="MessageBox_TopMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr>
-                <td class="MessageBox_LeftMargin"></td>
-                <td>
-
-                  <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
-                    <tbody>
-                    <tr>
-                      <td class="MessageBox_LeftTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopLeft"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Left"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                      <td class="MessageBox_bg">
-
-                        <table class="MessageBox_Top">
-                        <tbody>
-                          <tr>
-                            <td>
-                              <span>
-                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
-                                <tbody>
-                                <tr>
-                                  <td class="MessageBox_Icon_ContentCell">
-                                    <div class="MessageBox_Icon"></div>
-                                  </td>
-                                  <td style="vertical-align: top;" id="messageBoxIDContent">
-                                    <span>
-                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
-                                        xxInfo: AccessTableWithNoView
-                                      </div>
-                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
-                                        xxThe current information is empty.
-                                      </div>
-                                      <div class="MessageBox_TextSeparator"></div>
-                                    </span>
-                                  </td>
-                                </tr>
-                                </tbody>
-                              </table>
-                              </span>
-                            </td>
-                          </tr>
-                          </tbody>
-                        </table>
-
-                      </td>
-                      <td class="MessageBox_RightTrans">
-                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
-                          <tbody>
-                          <tr>
-                            <td class="MessageBox_TopRight"></td>
-                          </tr>
-                          <tr>
-                            <td class="MessageBox_Right"></td>
-                          </tr>
-                          </tbody>
-                        </table>
-                      </td>
-                    </tr>
-                    <tr>
-                      <td rowspan="2" class="MessageBox_BottomLeft">
-                      </td>
-                      <td class="MessageBox_BottomTrans MessageBox_bg">
-                      </td>
-                      <td rowspan="2" class="MessageBox_BottomRight">
-                      </td>
-                    </tr>
-                    <tr>
-                      <td class="MessageBox_Bottom">
-                      </td>
-                    </tr>
-                    </tbody>
-                  </table>
-                </td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-              <tr class="MessageBox_BottomMargin">
-                <td class="MessageBox_LeftMargin"></td>
-                <td></td>
-                <td class="MessageBox_RightMargin"></td>
-              </tr>
-            </tbody>
-          </table>
-        <!-- MessageBox END -->
-        </div>
-      </tr>
-    </td>
-  </table>
-
-  <table width="100%" cellpadding="0" cellspacing="0">
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
-
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-
-            <tr>
-              <td colspan="6">
-                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
-                <tbody>
-                  <tr class="FieldGroup_TopMargin"/>
-                  <tr>
-                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupTitle">Primary Filters</td>
-                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
-                    <td class="FieldGroupContent"/>
-                  </tr>
-                  <tr class="FieldGroup_BottomMargin"/>
-                </tbody>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell">
-                <span class="LabelText">Business Partner</span>
-              </td>
-              <td class="TextBox_ContentCell" colspan="2">
-                <table border="0" cellspacing="0" cellpadding="0" summary="" style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_btn_OneCell">
-                      <input type="hidden" name="inpNewcInvoiceId" value="">
-                      <input type="hidden" name="inpcBpartnerId" id="inpcBpartnerId" value="">
-                      <input type="text" class="dojoValidateValid TextBox_btn_TwoCells_width" maxlength="22" name="inpBpartnerId_DES" value=""  id="inpBpartnerId_DES"></input>
-                    </td>
-                  <td class="TextBox_btn_OneCell">
-                    <a onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'WindowID', 'xx');return false;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onblur="window.status=''; return true;" onfocus="setWindowElementFocus(this); window.status='Business Partner '; return true;" href="#" class="FieldButtonLink">
-                      <table id="C_Bpartner_IDlinkBusinessPartner" onmouseout="this.className='FieldButton'; window.status=''; return true;" onmouseover="this.className='FieldButton_hover'; window.status='Business Partner '; return true;" onmouseup="this.className='FieldButton'; return true;" onmousedown="this.className='FieldButton_active'; return true;" class="FieldButton">
-                        <tbody>
-                          <tr>
-                            <td class="FieldButton_bg">
-                              <img alt="Business Partner" class="FieldButton_Icon FieldButton_Icon_BusinessPartner" title="Business Partner" src="../../../../../web/images/blank.gif" border="0" id="buttonBusinessPartner">
-                          </td>
-                        </tr>
-                      </tbody>
-                      </table>
-                    </a>
-                  </td>
-                  </tr>
-                </table>
-              </td>
-              <td></td>
-              <td class="TitleCell"><span class="LabelText">Payment Rule</span></td>
-              <td class="Combo_ContentCell">
-                <select id="inppaymentrule" class="Combo Combo_OneCell_width" name="inppaymentrule">
-                  <option value=""></option><div id="reportPaymentRule"></div>
-                </select>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Receipt type</span></td>
-              <td class="Combo_ContentCell">
-                <select id="inpisreceipt" class="Combo Combo_OneCell_width" name="inpisreceipt">
-                  <option value="">All</option>
-                  <option value="N" id="fieldIsReceiptPago">Payment</option>
-                  <option value="Y" id="fieldIsReceiptCobro">Collection</option>
-                </select>
-              </td>
-              <td class="TitleCell"><span class="LabelText">From Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateFrom" id="paramPlannedDateFrom" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramPlannedDateFrom");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Show calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.paramPlannedDateFrom', document.frmMain.paramPlannedDateFrom.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;">
-                        <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                          <tr>
-                            <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Show calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                            </td>
-                          </tr>
-                        </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell"><span class="LabelText">To Date planned</span></td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                    <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateTo" id="paramPlannedDateTo" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;"></input><script>djConfig.searchIds.push("paramPlannedDateTo");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Show calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.paramPlannedDateTo', document.frmMain.paramPlannedDateTo.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;">
-                        <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                          <tr>
-                            <td class="FieldButton_bg">
-                            <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
-                            </td>
-                          </tr>
-                        </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-
-
-            <tr>
-            <td class="TitleCell"><span class="LabelText">Amount From</span></td>
-            <td class="TextBox_btn_ContentCell">
-              <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                <tr>
-                  <td class="TextBox_ContentCell">
-                    <input dojoType="openbravo:RealNumberTextbox" type="text" id="paramAmountFrom" class="TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountFrom" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountFrom");</script>
-                  </td>
-                  <td class="FieldButton_ContentCell">
-                    <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;">
-                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Amount From';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                        <tr>
-                          <td class="FieldButton_bg">
-                          <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount From" src="../../../../../web/images/blank.gif" border="0"></img>
-                          </td>
-                        </tr>
-                      </table>
-                    </a>
-                   </td>
-                 </tr>
-                </table>
-              </td>
-              <td class="TitleCell">
-                <span class="LabelText" id="AmountTo_lbl">Amount To</span>
-              </td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:RealNumberTextbox" type="text" id="paramAmountTo" class="TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountTo" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramAmountTo");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount to'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;">
-                        <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Amount to';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                          <tr>
-                            <td class="FieldButton_bg">
-                            <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0"></img>
-                            </td>
-                          </tr>
-                        </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-              <td class="TitleCell">
-                <span class="LabelText" id="NoPackages_lbl">Amount lower than</span>
-              </td>
-              <td class="TextBox_btn_ContentCell">
-                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
-                  <tr>
-                    <td class="TextBox_ContentCell">
-                      <input dojoType="openbravo:RealNumberTextbox" type="text" id="paramTotalAmount" class="TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamount" outputformat="euroEdition"></input><script>djConfig.searchIds.push("paramTotalAmount");</script>
-                    </td>
-                    <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount lower than'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamount', document.frmMain.inpamount.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;">
-                        <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Amount lower than';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
-                          <tr>
-                            <td class="FieldButton_bg">
-                            <img alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount lower than" src="../../../../../web/images/blank.gif" border="0"></img>
-                            </td>
-                          </tr>
-                        </table>
-                      </a>
-                    </td>
-                  </tr>
-                </table>
-              </td>
-            </tr>
-
-            <tr>
-              <td class="TitleCell"><span class="LabelText">Organization</span></td>
-              <td class="Combo_ContentCell">
-                <select name="inpadOrgId" class="Combo Combo_OneCell_width" id="inpadOrgId">
-                  <option value=""></option>
-                  <div id="reportAD_Org_ID"></div>
-                </select>
-              </td>
-              <td class="TitleCell"><span class="LabelText">Autocalculated</span></td>
-              <td class="Radio_Check_ContentCell">
-                <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpAutoClaculated" value="Y" id="paramAutoCalculated"></input></span></td>
-              <td>
-            </tr>
-
-            <tr><td height="15px"></tr>
-
-            <tr>
-              <td></td>
-              <td class="Button_CenterAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonSearch" 
-                    class="ButtonLink" 
-                    onclick="removeOnUnload();submitCommandForm('FIND_SETTLEMENT', true);return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Search'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Search'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Search</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td colspan="4"></td>
-            </tr>
-            <tr><td height="15px"></tr>
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; display: none;" id="client_middle">
-          <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
-
-            <tr class="Popup_Client_Selector_DataGrid_HeaderRow"> 
-              <td width="27" class="DataGrid_Body_LineNoCell"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpTodos" onclick="loadData(this);return true;" value="Y" id="fieldMarcarTodos"></input></span></td>
-              <th width="175" class="DataGrid_Header_Cell">Business Partner</th>
-              <th width="109" class="DataGrid_Header_Cell">Organization</th>
-              <th width="136" class="DataGrid_Header_Cell">Invoice</th>
-              <th width="137" class="DataGrid_Header_Cell">Payment rule</th>
-              <th width="100" class="DataGrid_Header_Cell">Planned date</th>
-              <th width="73" class="DataGrid_Header_Cell">Amount</th>
-              <th width="54" class="DataGrid_Header_Cell">Currency</th>
-              <th width="77" class="DataGrid_Header_Cell">Canceled</th>
-              <th width="49" class="DataGrid_Header_Cell" style="display:none;">Paid</th></tr>
-            </tr>
-            <div id="sectionDetail">
-              <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="inpRecord10000003"> 
-                <td class="DataGrid_Body_LineNoCell"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpcDebtPaymentId" value="" id="fieldCDebtPaymentId" onclick="updateData(this);return true;"></span><input type="hidden" name="inpPricexx" value="" id="fieldPrice"></td>
-                <td class="DataGrid_Body_Cell" id="fieldBpartner">xxQuantity</td>
-                <td class="DataGrid_Body_Cell" id="fieldOrg">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldInvoice">xxUOM</td>
-                <td class="DataGrid_Body_Cell" id="fieldPaymentRuleDes">xxProduct</td>
-                <td class="DataGrid_Body_Cell" id="fieldPlannedDate">xxP</td>
-                <td class="DataGrid_Body_Cell" id="fieldAmount">xx</td>
-                <td class="DataGrid_Body_Cell" id="fieldCurrency">xx</td>
-                <td class="DataGrid_Body_Cell"><input name="inpwriteoffxx" type="text" id="fieldWriteOff" size="8" value="0" outputformat="euroEdition" class="dojoValidateValid" onfocus="numberInputEvent('onfocus', this);" onblur="numberInputEvent('onblur', this);" onkeydown="numberInputEvent('onkeydown', this, event);" onchange="numberInputEvent('onchange', this);" ></input></td>
-                <td class="DataGrid_Body_Cell" style="display:none;"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpispaidxx" value="Y" id="fieldIsPaid"></input></span></td>
-              </tr>
-            </div>
-          </table>
-        </div>
-      </td>
-    </tr>
-
-    <tr>
-      <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto; padding-bottom: 5px;" id="client_bottom">
-
-          <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
-
-            <tr>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-              <td class="TableEdition_OneCell_width"></td>
-            </tr>
-
-            <tr>
-              <td></td>
-              <td></td>
-              <td class="TitleCell"><span class="LabelText">Total amount</span></td>
-              <td class="ReadOnly_Text_ContentCell"><span class="Label_ReadOnly_Text" id="paramTotalPrice">0</span></td>
-              <input type="hidden" name="inpTotalPrice" value="0">
-            </tr>
-
-            <tr><td height="15px"></tr>
-
-            <tr>
-              <td></td>
-              <td class="Button_RightAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonOK" 
-                    class="ButtonLink" 
-                    onclick="submitThisPage('SAVE');return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Accept'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Accept'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">OK</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td class="Button_LeftAlign_ContentCell">
-                <div>
-                  <button type="button" 
-                    id="buttonCancel" 
-                    class="ButtonLink" 
-                    onclick="closeThisPage();return false;" 
-                    onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;" 
-                    onblur="buttonEvent('onblur', this);" 
-                    onkeyup="buttonEvent('onkeyup', this);" 
-                    onkeydown="buttonEvent('onkeydown', this);" 
-                    onkeypress="buttonEvent('onkeypress', this);" 
-                    onmouseup="buttonEvent('onmouseup', this);" 
-                    onmousedown="buttonEvent('onmousedown', this);" 
-                    onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;" 
-                    onmouseout="buttonEvent('onmouseout', this);">
-                    <table class="Button">
-                      <tr>
-                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
-                        <td class="Button_text Button_width">Cancel</td>
-                        <td class="Button_right"></td>
-                      </tr>
-                    </table>
-                  </button>
-                </div>
-              </td>
-              <td></td>
-            </tr>
-          </table>
-        </div>
-      </td>
-    </tr>
-  </table>
-</form>
-</body>
-</html>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.xml	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2014 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-
-<REPORT>
-<template file="CreateFrom_Settlement.html"/>
-<PARAMETER id="paramCheck" name="check" default="Y"/>
-
-<PARAMETER id="fieldCalendar" name="calendar" attribute="src" replace="es" default="en"/>
-<PARAMETER id="paramDirectory" name="directory" default=""/>
-<PARAMETER id="paramLanguage" name="language" default=""/>
-<PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
-<!-- Process Parameters -->
-<PARAMETER id="paramKey" name="key" attribute="value"/>
-<PARAMETER id="paramTableId" name="tableId" attribute="value"/>
-<PARAMETER id="paramProcessId" name="processId" attribute="value"/>
-<PARAMETER id="paramPath" name="path" attribute="value"/>
-<PARAMETER id="paramWindowId" name="windowId" attribute="value"/>
-<PARAMETER id="paramTabName" name="tabName" attribute="value"/>
-
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromdisplayFormat" attribute="displayformat" replace="xx"/>
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromsaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramPlannedDateFrom" name="plannedDateFromValue" attribute="value"/>
-
-<PARAMETER id="paramPlannedDateTo" name="plannedDateTodisplayFormat" attribute="displayformat" replace="xx"/>
-<PARAMETER id="paramPlannedDateTo" name="plannedDateTosaveFormat" attribute="saveformat" replace="yy"/>
-<PARAMETER id="paramPlannedDateTo" name="plannedDateToValue" attribute="value"/>
-
-  <PARAMETER id="keyMap" name="keyMap"/>
-<PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
-<PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
-<PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
-
-
-<PARAMETER id="inpcBpartnerId" name="inpcBpartnerId" attribute="value"/>
-<PARAMETER id="inpBpartnerId_DES" name="inpBpartnerId_DES" attribute="value"/>
-<PARAMETER id="paramIsReceiptPago" name="paramIsReceiptPago" default="N"/>
-<PARAMETER id="fieldIsReceiptPago" name="isreceiptPago" boolean="selected" withId="paramIsReceiptPago"/>
-<PARAMETER id="paramIsReceiptCobro" name="paramIsReceiptCobro" default="Y"/>
-<PARAMETER id="fieldIsReceiptCobro" name="isreceiptCobro" boolean="selected" withId="paramIsReceiptCobro"/>
-
-<PARAMETER id="paramAmountFrom" name="amountFrom" attribute="value" format="euroEdition"/>
-<PARAMETER id="paramAmountTo" name="amountTo" attribute="value" format="euroEdition"/>
-
-<PARAMETER id="paramTotalAmount" name="totalAmount" attribute="value" format="euroEdition"/>
-
-<PARAMETER id="paramAutoCalculated" name="autoCalculated" boolean="checked" withId="paramCheck"/>
-
-<PARAMETER id="paramPaymentRule" name="paymentRule"/>
-  <SUBREPORT id="reportPaymentRule" name="reportPaymentRule" report="org/openbravo/erpCommon/reference/List">
-  <ARGUMENT name="parameterListSelected" withId="paramPaymentRule"/></SUBREPORT>
-
-<PARAMETER id="paramADOrgID" name="adOrgId"/>
-  <SUBREPORT id="reportAD_Org_ID" name="reportAD_Org_ID" report="org/openbravo/erpCommon/reference/List">
-  <ARGUMENT name="parameterListSelected" withId="paramADOrgID"/></SUBREPORT>
-
-
-<PARAMETER id="fieldMarcarTodos" name="marcarTodos" boolean="checked" withId="paramCheck"/>
-
-<PARAMETER id="param2" name="param2" default="2"/>
-<structure name="structure1">
-    <FIELD id="fieldRownum1">rownum</FIELD>
-    <FUNCTION id="inpRecord10000003" name="MODULE" arg1="fieldRownum1" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
-<FIELD id="fieldMarcarId">cDebtPaymentId</FIELD>
-<FIELD id="fieldCDebtPaymentId" attribute="value">cDebtPaymentId</FIELD>
-<FIELD id="fieldPrice" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-<FIELD id="fieldPrice" attribute="value">amount</FIELD>
-<FIELD id="fieldCDebtPaymentId" boolean="checked" withId="fieldMarcarId">marcarId</FIELD>
-<FIELD id="fieldBpartner" replaceCharacters="html">bpartner</FIELD>
-<FIELD id="fieldOrg" replaceCharacters="html">org</FIELD>
-<FIELD id="fieldInvoice" replaceCharacters="html">invoice</FIELD>
-<FIELD id="fieldPaymentRuleDes" replaceCharacters="html">paymentrule</FIELD>
-<FIELD id="fieldPlannedDate">dateplanned</FIELD>
-<FIELD id="fieldAmount" format="euroEdition">amount</FIELD>
-<FIELD id="fieldCurrency" replaceCharacters="html">isoCode</FIELD>
-<FIELD id="fieldWriteOff" attribute="value" format="euroEdition">writeoffamt</FIELD>
-<FIELD id="fieldWriteOff" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-<FIELD id="fieldWriteOff" boolean="disabled" withId="fieldMarcarId">disableInputs</FIELD>
-<FIELD id="fieldIsPaid" boolean="checked" withId="paramCheck">ispaid</FIELD>
-<FIELD id="fieldIsPaid" boolean="disabled" withId="fieldMarcarId">disableInputs</FIELD>
-<FIELD id="fieldIsPaid" attribute="name" replace="xx">cDebtPaymentId</FIELD>
-
-<!--FUNCTION id="fieldTotal" name="SUM" format="euroRelation">amount</FUNCTION-->
-<SECTION id="sectionDetail"/>
-</structure>
-
-
-
-
-</REPORT>
-
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement_data.xsql	Thu Apr 25 14:49:30 2019 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,153 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- *************************************************************************
- * 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) 2001-2010 Openbravo SLU 
- * All Rights Reserved. 
- * Contributor(s):  ______________________________________.
- ************************************************************************
--->
-
-
-
-
-
-<SqlClass name="CreateFromSettlementData" package="org.openbravo.erpCommon.ad_actionButton">
-  <SqlMethod name="select" type="preparedStatement" return="multiple">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-       SELECT B.C_DEBT_PAYMENT_ID, L.NAME AS PAYMENTRULE, BP.NAME AS BPARTNER, 
-        Ad_Column_Identifier(to_char('C_Invoice'), to_char(i.C_Invoice_ID), to_char(?)) AS INVOICE, B.DATEPLANNED, 
-        B.AMOUNT, B.ISO_CODE, B.WRITEOFFAMT, B.ISPAID, B.ORG, 
-        (CASE ? WHEN 'Y' THEN B.C_DEBT_PAYMENT_ID ELSE '-1' END) AS MARCAR_ID, 
-        (CASE ? WHEN 'Y' THEN '-1' ELSE B.C_DEBT_PAYMENT_ID END) AS DISABLE_INPUTS 
-		  FROM ( SELECT '0' AS RN1, A.* FROM (
-		  SELECT DP.C_DEBT_PAYMENT_ID, DP.DATEPLANNED, DP.AMOUNT, DP.WRITEOFFAMT AS WRITEOFFAMT, DP.ISPAID, DP.PAYMENTRULE, DP.C_BPARTNER_ID, DP.C_INVOICE_ID,
-		         O.Name AS ORG, C.Iso_Code
-		    FROM C_DEBT_PAYMENT DP, C_CURRENCY C, AD_ORG O
-		   WHERE DP.ISACTIVE = 'Y' 
-		     AND DP.AD_Org_ID = O.AD_Org_ID 
-		     AND DP.AD_CLIENT_ID IN ('1') 
-		     AND DP.AD_ORG_ID IN ('1') 
-		    AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID 
-		    AND CASE
-	              WHEN (DP.ISVALID = 'N') THEN 'I'
-	              WHEN (DP.C_CASHLINE_ID IS NOT NULL OR DP.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-	              WHEN (DP.CANCEL_PROCESSED = 'Y' AND DP.ISPAID = 'N') THEN 'W'
-	              WHEN (DP.CANCEL_PROCESSED = 'Y' OR(DP.C_Settlement_Cancel_ID IS NULL AND DP.GENERATE_PROCESSED = 'Y' AND DP.ISPAID = 'Y')) THEN 'A'
-	              ELSE 'P'
-                END = 'P' 
-		    AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-		    AND NOT EXISTS (SELECT * FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)
-		    ORDER BY DP.DATEPLANNED DESC) A) B LEFT JOIN AD_REF_LIST_V L ON B.PAYMENTRULE = L.VALUE
-		                                                                AND L.AD_REFERENCE_ID = '195'
-		                                                                AND L.AD_LANGUAGE = ?
-		                                       LEFT JOIN C_BPARTNER BP ON B.C_BPARTNER_ID = BP.C_BPARTNER_ID 
-		                                       LEFT JOIN C_INVOICE I ON B.C_INVOICE_ID = I.C_INVOICE_ID
-		  WHERE 1=1
-      ]]>
-    </Sql>
-    <Field name="rownum" value="count"/>
-    <Parameter name="language"/>
-    <Parameter name="marcartodos"/>
-    <Parameter name="marcartodos"/>
-    <Parameter name="rownum" type="replace" optional="true" after="FROM ( SELECT " text="'0'" />
-    <Parameter name="isautocalculated" optional="true" type="replace" after="DP.AMOUNT, DP." text="WRITEOFFAMT"/>
-    <Parameter name="userClient" optional="true" type="replace" after="AND DP.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND DP.AD_ORG_ID IN (" text="'1'"/>
-    <Parameter name="cBPartnerId" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.ISRECEIPT = ? "/>
-    <Parameter name="amountFrom" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND DP.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amount" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID "><![CDATA[ AND ABS(DP.AMOUNT) < TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="adOrgId" optional="true" after="AND DP.C_CURRENCY_ID = C.C_CURRENCY_ID " text=" AND DP.AD_Org_ID = ? "/>
-    <Parameter name="language"/>
-    <Parameter name="oraLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[AND RN1 <= ]]></Parameter>
-    <Parameter name="pgLimit" type="argument" optional="true" after="WHERE 1=1"><![CDATA[LIMIT ]]></Parameter>
-  </SqlMethod>
-  
-  <SqlMethod name="countRows" type="preparedStatement" return="string">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        SELECT COUNT(*) AS AMOUNT
-        FROM C_DEBT_PAYMENT DP
-        WHERE DP.ISACTIVE = 'Y'
-        AND DP.AD_CLIENT_ID IN ('1') 
-        AND DP.AD_ORG_ID IN ('1')        
-        AND CASE
-                  WHEN (DP.ISVALID = 'N') THEN 'I'
-                  WHEN (DP.C_CASHLINE_ID IS NOT NULL OR DP.C_BANKSTATEMENTLINE_ID IS NOT NULL) THEN 'C'
-                  WHEN (DP.CANCEL_PROCESSED = 'Y' AND DP.ISPAID = 'N') THEN 'W'
-                  WHEN (DP.CANCEL_PROCESSED = 'Y' OR(DP.C_Settlement_Cancel_ID IS NULL AND DP.GENERATE_PROCESSED = 'Y' AND DP.ISPAID = 'Y')) THEN 'A'
-                  ELSE 'P'
-                END = 'P'
-        AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-        AND NOT EXISTS (SELECT * FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID)
-      ]]>
-    </Sql>
-    <Field name="rownum" value="count"/>
-    
-    <Parameter name="userClient" optional="true" type="replace" after="AND DP.AD_CLIENT_ID IN (" text="'1'"/>
-    <Parameter name="userOrg" optional="true" type="replace" after="AND DP.AD_ORG_ID IN (" text="'1'"/>    
-    <Parameter name="cBPartnerId" optional="true" after="END = 'P'" text=" AND DP.C_BPARTNER_ID = ? "/>
-    <Parameter name="paymentrule" optional="true" after="END = 'P'" text=" AND DP.PAYMENTRULE = ? "/>
-    <Parameter name="planneddateFrom" optional="true" after="END = 'P'"><![CDATA[ AND DP.DATEPLANNED >= TO_DATE(?) ]]></Parameter>
-    <Parameter name="planneddateTo" optional="true" after="END = 'P'"><![CDATA[ AND DP.DATEPLANNED <= TO_DATE(?) ]]></Parameter>
-    <Parameter name="isreceipt" optional="true" after="END = 'P'" text=" AND DP.ISRECEIPT = ? "/>
-    <Parameter name="amountFrom" optional="true" after="END = 'P'"><![CDATA[ AND DP.AMOUNT >= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amountTo" optional="true" after="END = 'P'"><![CDATA[ AND DP.AMOUNT <= TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="amount" optional="true" after="END = 'P'"><![CDATA[ AND ABS(DP.AMOUNT) < TO_NUMBER(?) ]]></Parameter>
-    <Parameter name="adOrgId" optional="true" after="END = 'P'" text=" AND DP.AD_Org_ID = ? "/>
-  </SqlMethod>
-
-  <SqlMethod name="bpartner" type="preparedStatement" return="String" default="">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      SELECT NAME FROM C_BPARTNER WHERE C_BPARTNER_ID=?
-    </Sql>
-    <Parameter name="cBpartnerId"/>
-  </SqlMethod>
-
-  <SqlMethod name="NotIsCancelled" type="preparedStatement" connection="true" return="boolean">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql><![CDATA[
-      SELECT COUNT(*) AS TOTAL
-      FROM C_DEBT_PAYMENT DP 
-      WHERE DP.C_DEBT_PAYMENT_ID = ? 
-      AND C_DEBT_PAYMENT_STATUS(DP.C_Settlement_Cancel_ID, DP.Cancel_Processed, DP.Generate_Processed, 
-      DP.IsPaid, DP.IsValid, DP.C_CashLine_ID, DP.C_BankStatementLine_ID)='P' 
-      AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-      AND NOT EXISTS (SELECT * FROM C_CashLine l WHERE DP.C_DEBT_Payment_ID=l.C_DEBT_PAYMENT_ID) 
-    ]]></Sql>
-    <Parameter name="cDebtPaymentId"/>
-  </SqlMethod>
-  <SqlMethod name="update" connection="true" type="preparedStatement" return="rowCount">
-    <SqlMethodComment></SqlMethodComment>
-    <Sql>
-      <![CDATA[
-        UPDATE C_DEBT_PAYMENT SET UPDATED=now(), UPDATEDBY = ?, C_SETTLEMENT_CANCEL_id = ?, WRITEOFFAMT=TO_NUMBER(?), ISPAID=? 
-        WHERE C_DEBT_PAYMENT_ID = ?
-      ]]>
-    </Sql>
-    <Parameter name="adUserId"/>
-    <Parameter name="cSettlementCancelId"/>
-    <Parameter name="writeoffamt"/>
-    <Parameter name="ispaid"/>
-    <Parameter name="cDebtPaymentId"/>
-  </SqlMethod>
-  </SqlClass>