Fixed bug 30143: Add Multiple Payments in Financial Account
authorVíctor Martínez Romanos <victor.martinez@openbravo.com>
Thu, 25 Jun 2015 10:20:46 +0200
changeset 27044 7e2d0fb062fa
parent 27043 e28ea5f9e072
child 27046 e147ba9d5635
Fixed bug 30143: Add Multiple Payments in Financial Account

Due to the Add Transaction refactor, the ability to create transactions from several payments in a batch was missed.
This development adds a new button in Financial Account window (Add Multiple Payments) where the user must enter a transaction date and select one or more payments. The system will create a transaction per selected payment and it will process all of them. If any exception is raised at any point in time, no transactions will be created.

The payments shown in the P&E are exactly the same as in the payment selector at Transaction tab.
The great advantage of this process is that you can select multiple payments at the same time, and that the transactions are automatically processed, so it is very agile from the user point of view.
modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_FINANCIAL_ACCOUNT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TAB.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_WINDOW.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PROCESS.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_REF_WINDOW.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddMultiplePaymentsHandler.java
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_FINANCIAL_ACCOUNT.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_FINANCIAL_ACCOUNT.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -29,5 +29,9 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="EM_APRM_ADDMULTIPLEPAYMENTS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault/>
+      </column>
     </table>
   </database>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -407,7 +407,7 @@
 <!--0F5C7245380C4C96841D3452F3C1FE47-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--0F5C7245380C4C96841D3452F3C1FE47-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--0F5C7245380C4C96841D3452F3C1FE47-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--0F5C7245380C4C96841D3452F3C1FE47-->  <POSITION><![CDATA[41]]></POSITION>
+<!--0F5C7245380C4C96841D3452F3C1FE47-->  <POSITION><![CDATA[40]]></POSITION>
 <!--0F5C7245380C4C96841D3452F3C1FE47-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--0F5C7245380C4C96841D3452F3C1FE47-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--0F5C7245380C4C96841D3452F3C1FE47-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -1830,7 +1830,7 @@
 <!--394FD1143C904A8C9E6A2AD42085CB9B-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--394FD1143C904A8C9E6A2AD42085CB9B-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--394FD1143C904A8C9E6A2AD42085CB9B-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--394FD1143C904A8C9E6A2AD42085CB9B-->  <POSITION><![CDATA[43]]></POSITION>
+<!--394FD1143C904A8C9E6A2AD42085CB9B-->  <POSITION><![CDATA[41]]></POSITION>
 <!--394FD1143C904A8C9E6A2AD42085CB9B-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--394FD1143C904A8C9E6A2AD42085CB9B-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--394FD1143C904A8C9E6A2AD42085CB9B-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -6909,7 +6909,7 @@
 <!--9DC8500B414640E09BF61A3D14FE13D1-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--9DC8500B414640E09BF61A3D14FE13D1-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--9DC8500B414640E09BF61A3D14FE13D1-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--9DC8500B414640E09BF61A3D14FE13D1-->  <POSITION><![CDATA[40]]></POSITION>
+<!--9DC8500B414640E09BF61A3D14FE13D1-->  <POSITION><![CDATA[39]]></POSITION>
 <!--9DC8500B414640E09BF61A3D14FE13D1-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--9DC8500B414640E09BF61A3D14FE13D1-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--9DC8500B414640E09BF61A3D14FE13D1-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -7082,7 +7082,7 @@
 <!--A028C07508878CB9E040007F01007210-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A028C07508878CB9E040007F01007210-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A028C07508878CB9E040007F01007210-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A028C07508878CB9E040007F01007210-->  <POSITION><![CDATA[36]]></POSITION>
+<!--A028C07508878CB9E040007F01007210-->  <POSITION><![CDATA[35]]></POSITION>
 <!--A028C07508878CB9E040007F01007210-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A028C07508878CB9E040007F01007210-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A028C07508878CB9E040007F01007210-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -7115,7 +7115,7 @@
 <!--A04179EAC69DF848E040007F01004523-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A04179EAC69DF848E040007F01004523-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A04179EAC69DF848E040007F01004523-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A04179EAC69DF848E040007F01004523-->  <POSITION><![CDATA[37]]></POSITION>
+<!--A04179EAC69DF848E040007F01004523-->  <POSITION><![CDATA[36]]></POSITION>
 <!--A04179EAC69DF848E040007F01004523-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A04179EAC69DF848E040007F01004523-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A04179EAC69DF848E040007F01004523-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -7150,7 +7150,7 @@
 <!--A04179EAC69EF848E040007F01004523-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A04179EAC69EF848E040007F01004523-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A04179EAC69EF848E040007F01004523-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A04179EAC69EF848E040007F01004523-->  <POSITION><![CDATA[38]]></POSITION>
+<!--A04179EAC69EF848E040007F01004523-->  <POSITION><![CDATA[37]]></POSITION>
 <!--A04179EAC69EF848E040007F01004523-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A04179EAC69EF848E040007F01004523-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A04179EAC69EF848E040007F01004523-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -7186,7 +7186,7 @@
 <!--A04179EAC69FF848E040007F01004523-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A04179EAC69FF848E040007F01004523-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A04179EAC69FF848E040007F01004523-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A04179EAC69FF848E040007F01004523-->  <POSITION><![CDATA[39]]></POSITION>
+<!--A04179EAC69FF848E040007F01004523-->  <POSITION><![CDATA[38]]></POSITION>
 <!--A04179EAC69FF848E040007F01004523-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A04179EAC69FF848E040007F01004523-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A04179EAC69FF848E040007F01004523-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -10127,6 +10127,43 @@
 <!--CBAF582C3F674FEEB1D38C2A10E03E2F-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--CBAF582C3F674FEEB1D38C2A10E03E2F--></AD_COLUMN>
 
+<!--CD644D952B4945158005088D474CC529--><AD_COLUMN>
+<!--CD644D952B4945158005088D474CC529-->  <AD_COLUMN_ID><![CDATA[CD644D952B4945158005088D474CC529]]></AD_COLUMN_ID>
+<!--CD644D952B4945158005088D474CC529-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CD644D952B4945158005088D474CC529-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CD644D952B4945158005088D474CC529-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CD644D952B4945158005088D474CC529-->  <NAME><![CDATA[EM_Aprm_AddMultiplePayments]]></NAME>
+<!--CD644D952B4945158005088D474CC529-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--CD644D952B4945158005088D474CC529-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--CD644D952B4945158005088D474CC529-->  <COLUMNNAME><![CDATA[EM_Aprm_AddMultiplePayments]]></COLUMNNAME>
+<!--CD644D952B4945158005088D474CC529-->  <AD_TABLE_ID><![CDATA[B129E53BC0E747879F7BA17F0AECEC32]]></AD_TABLE_ID>
+<!--CD644D952B4945158005088D474CC529-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
+<!--CD644D952B4945158005088D474CC529-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--CD644D952B4945158005088D474CC529-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--CD644D952B4945158005088D474CC529-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--CD644D952B4945158005088D474CC529-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--CD644D952B4945158005088D474CC529-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--CD644D952B4945158005088D474CC529-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--CD644D952B4945158005088D474CC529-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--CD644D952B4945158005088D474CC529-->  <SEQNO><![CDATA[500]]></SEQNO>
+<!--CD644D952B4945158005088D474CC529-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--CD644D952B4945158005088D474CC529-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--CD644D952B4945158005088D474CC529-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--CD644D952B4945158005088D474CC529-->  <AD_ELEMENT_ID><![CDATA[FC01C8BFAB68409497398AB4C6D923F1]]></AD_ELEMENT_ID>
+<!--CD644D952B4945158005088D474CC529-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--CD644D952B4945158005088D474CC529-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--CD644D952B4945158005088D474CC529-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--CD644D952B4945158005088D474CC529-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--CD644D952B4945158005088D474CC529-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--CD644D952B4945158005088D474CC529-->  <POSITION><![CDATA[42]]></POSITION>
+<!--CD644D952B4945158005088D474CC529-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--CD644D952B4945158005088D474CC529-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--CD644D952B4945158005088D474CC529-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--CD644D952B4945158005088D474CC529-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--CD644D952B4945158005088D474CC529-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--CD644D952B4945158005088D474CC529-->  <EM_OBUIAPP_PROCESS_ID><![CDATA[4CE463C04CA0412CAC57EF58FE0F8498]]></EM_OBUIAPP_PROCESS_ID>
+<!--CD644D952B4945158005088D474CC529--></AD_COLUMN>
+
 <!--D06818A44BBB4E2CA7463CB4F03F8C04--><AD_COLUMN>
 <!--D06818A44BBB4E2CA7463CB4F03F8C04-->  <AD_COLUMN_ID><![CDATA[D06818A44BBB4E2CA7463CB4F03F8C04]]></AD_COLUMN_ID>
 <!--D06818A44BBB4E2CA7463CB4F03F8C04-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -1620,6 +1620,20 @@
 <!--F8CF71B37C84442EB5526AF3998BEBBF-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--F8CF71B37C84442EB5526AF3998BEBBF--></AD_ELEMENT>
 
+<!--FC01C8BFAB68409497398AB4C6D923F1--><AD_ELEMENT>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <AD_ELEMENT_ID><![CDATA[FC01C8BFAB68409497398AB4C6D923F1]]></AD_ELEMENT_ID>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <COLUMNNAME><![CDATA[EM_Aprm_AddMultiplePayments]]></COLUMNNAME>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <NAME><![CDATA[Add Multiple Payments]]></NAME>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <PRINTNAME><![CDATA[Add Multiple Payments]]></PRINTNAME>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FC01C8BFAB68409497398AB4C6D923F1-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--FC01C8BFAB68409497398AB4C6D923F1--></AD_ELEMENT>
+
 <!--FC780C136EFA4D98B2435A9448FA44AD--><AD_ELEMENT>
 <!--FC780C136EFA4D98B2435A9448FA44AD-->  <AD_ELEMENT_ID><![CDATA[FC780C136EFA4D98B2435A9448FA44AD]]></AD_ELEMENT_ID>
 <!--FC780C136EFA4D98B2435A9448FA44AD-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -583,6 +583,33 @@
 <!--07EC2EF3577B4AAC84EBABCC8DA7C292-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--07EC2EF3577B4AAC84EBABCC8DA7C292--></AD_FIELD>
 
+<!--07FA7810A55745B8BCC4BC590253DA6A--><AD_FIELD>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <AD_FIELD_ID><![CDATA[07FA7810A55745B8BCC4BC590253DA6A]]></AD_FIELD_ID>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <NAME><![CDATA[Amount]]></NAME>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <AD_COLUMN_ID><![CDATA[7891269C83DD655DE040007F010155CE]]></AD_COLUMN_ID>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <PROPERTY><![CDATA[amount]]></PROPERTY>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <SEQNO><![CDATA[50]]></SEQNO>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--07FA7810A55745B8BCC4BC590253DA6A-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--07FA7810A55745B8BCC4BC590253DA6A--></AD_FIELD>
+
 <!--0820A1FC00504292BC9280D5CBA30BB5--><AD_FIELD>
 <!--0820A1FC00504292BC9280D5CBA30BB5-->  <AD_FIELD_ID><![CDATA[0820A1FC00504292BC9280D5CBA30BB5]]></AD_FIELD_ID>
 <!--0820A1FC00504292BC9280D5CBA30BB5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -3166,6 +3193,34 @@
 <!--2FF77BE337D74C23BE0AF89A815C2FD3-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--2FF77BE337D74C23BE0AF89A815C2FD3--></AD_FIELD>
 
+<!--30B197597EBD41FE98B013F412583A6F--><AD_FIELD>
+<!--30B197597EBD41FE98B013F412583A6F-->  <AD_FIELD_ID><![CDATA[30B197597EBD41FE98B013F412583A6F]]></AD_FIELD_ID>
+<!--30B197597EBD41FE98B013F412583A6F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--30B197597EBD41FE98B013F412583A6F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--30B197597EBD41FE98B013F412583A6F-->  <NAME><![CDATA[Currency]]></NAME>
+<!--30B197597EBD41FE98B013F412583A6F-->  <DESCRIPTION><![CDATA[An accepted medium of monetary exchange that may vary across countries.]]></DESCRIPTION>
+<!--30B197597EBD41FE98B013F412583A6F-->  <HELP><![CDATA[Indicates the currency to be used when processing this document.]]></HELP>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--30B197597EBD41FE98B013F412583A6F-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--30B197597EBD41FE98B013F412583A6F-->  <AD_COLUMN_ID><![CDATA[7891269C83DC655DE040007F010155CE]]></AD_COLUMN_ID>
+<!--30B197597EBD41FE98B013F412583A6F-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--30B197597EBD41FE98B013F412583A6F-->  <DISPLAYLENGTH><![CDATA[3]]></DISPLAYLENGTH>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--30B197597EBD41FE98B013F412583A6F-->  <SEQNO><![CDATA[60]]></SEQNO>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--30B197597EBD41FE98B013F412583A6F-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--30B197597EBD41FE98B013F412583A6F-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--30B197597EBD41FE98B013F412583A6F-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--30B197597EBD41FE98B013F412583A6F-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--30B197597EBD41FE98B013F412583A6F-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--30B197597EBD41FE98B013F412583A6F-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--30B197597EBD41FE98B013F412583A6F--></AD_FIELD>
+
 <!--3146FC101A9E422E93BE575164E758D6--><AD_FIELD>
 <!--3146FC101A9E422E93BE575164E758D6-->  <AD_FIELD_ID><![CDATA[3146FC101A9E422E93BE575164E758D6]]></AD_FIELD_ID>
 <!--3146FC101A9E422E93BE575164E758D6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -7593,6 +7648,35 @@
 <!--6A187B6CB94548AAA3ABE7629099D1A1-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--6A187B6CB94548AAA3ABE7629099D1A1--></AD_FIELD>
 
+<!--6AACBA272E5347899B134AD4FEBADB9A--><AD_FIELD>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <AD_FIELD_ID><![CDATA[6AACBA272E5347899B134AD4FEBADB9A]]></AD_FIELD_ID>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <NAME><![CDATA[Add Multiple Payments]]></NAME>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <AD_TAB_ID><![CDATA[2845D761A8394468BD3BA4710AA888D4]]></AD_TAB_ID>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <AD_COLUMN_ID><![CDATA[CD644D952B4945158005088D474CC529]]></AD_COLUMN_ID>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <SEQNO><![CDATA[265]]></SEQNO>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <GRID_SEQNO><![CDATA[90]]></GRID_SEQNO>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--6AACBA272E5347899B134AD4FEBADB9A-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--6AACBA272E5347899B134AD4FEBADB9A--></AD_FIELD>
+
 <!--6AC5E4662B404E019E4B610AFBCC309D--><AD_FIELD>
 <!--6AC5E4662B404E019E4B610AFBCC309D-->  <AD_FIELD_ID><![CDATA[6AC5E4662B404E019E4B610AFBCC309D]]></AD_FIELD_ID>
 <!--6AC5E4662B404E019E4B610AFBCC309D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -12181,6 +12265,34 @@
 <!--8A0E2CF96C0E48D69B2652BB355AA6A6-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--8A0E2CF96C0E48D69B2652BB355AA6A6--></AD_FIELD>
 
+<!--8AA33C2BAE2F447680A672A3B8C16837--><AD_FIELD>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <AD_FIELD_ID><![CDATA[8AA33C2BAE2F447680A672A3B8C16837]]></AD_FIELD_ID>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <NAME><![CDATA[Status]]></NAME>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <DESCRIPTION><![CDATA[A defined state or position of a payment.]]></DESCRIPTION>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <HELP><![CDATA[Current status of a debt/payment.]]></HELP>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <AD_COLUMN_ID><![CDATA[7891269C83E2655DE040007F010155CE]]></AD_COLUMN_ID>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <DISPLAYLENGTH><![CDATA[15]]></DISPLAYLENGTH>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <SEQNO><![CDATA[80]]></SEQNO>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--8AA33C2BAE2F447680A672A3B8C16837-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--8AA33C2BAE2F447680A672A3B8C16837--></AD_FIELD>
+
 <!--8AFD30956A0E4A079AA0D80B41A0A494--><AD_FIELD>
 <!--8AFD30956A0E4A079AA0D80B41A0A494-->  <AD_FIELD_ID><![CDATA[8AFD30956A0E4A079AA0D80B41A0A494]]></AD_FIELD_ID>
 <!--8AFD30956A0E4A079AA0D80B41A0A494-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -16663,6 +16775,35 @@
 <!--B2010E9A0AC95338E040A8C0280132CB-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--B2010E9A0AC95338E040A8C0280132CB--></AD_FIELD>
 
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A--><AD_FIELD>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <AD_FIELD_ID><![CDATA[B283607F4D9A4EE6BF2FF2BB7ADCF36A]]></AD_FIELD_ID>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <NAME><![CDATA[Document No.]]></NAME>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <DESCRIPTION><![CDATA[An often automatically generated identifier for all documents.]]></DESCRIPTION>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <HELP><![CDATA[The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice).  If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).]]></HELP>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <AD_COLUMN_ID><![CDATA[7891269C83E0655DE040007F010155CE]]></AD_COLUMN_ID>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <PROPERTY><![CDATA[documentNo]]></PROPERTY>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--B283607F4D9A4EE6BF2FF2BB7ADCF36A--></AD_FIELD>
+
 <!--B29D7911F878431EA9434EA4FACBA023--><AD_FIELD>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <AD_FIELD_ID><![CDATA[B29D7911F878431EA9434EA4FACBA023]]></AD_FIELD_ID>
 <!--B29D7911F878431EA9434EA4FACBA023-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -16723,6 +16864,34 @@
 <!--B2F1D76CA33240B69A4012D5CA370476-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--B2F1D76CA33240B69A4012D5CA370476--></AD_FIELD>
 
+<!--B3035C3662CF4A33B574693E8AB317C6--><AD_FIELD>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <AD_FIELD_ID><![CDATA[B3035C3662CF4A33B574693E8AB317C6]]></AD_FIELD_ID>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <NAME><![CDATA[Document Type]]></NAME>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <DESCRIPTION><![CDATA[A value defining what sequence and process setup are used to handle this document.]]></DESCRIPTION>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <HELP><![CDATA[The Document Type determines document sequence and processing rules]]></HELP>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <AD_COLUMN_ID><![CDATA[8032E178607750D5E040007F01004282]]></AD_COLUMN_ID>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <DISPLAYLENGTH><![CDATA[20]]></DISPLAYLENGTH>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--B3035C3662CF4A33B574693E8AB317C6-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--B3035C3662CF4A33B574693E8AB317C6--></AD_FIELD>
+
 <!--B30DFFA1BDD8442DA159BC24117DA96C--><AD_FIELD>
 <!--B30DFFA1BDD8442DA159BC24117DA96C-->  <AD_FIELD_ID><![CDATA[B30DFFA1BDD8442DA159BC24117DA96C]]></AD_FIELD_ID>
 <!--B30DFFA1BDD8442DA159BC24117DA96C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -17598,6 +17767,34 @@
 <!--BB0C947FC413441D98D676868EC89D94-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--BB0C947FC413441D98D676868EC89D94--></AD_FIELD>
 
+<!--BB3881C8631049FDB8BCB0176C2D8D21--><AD_FIELD>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <AD_FIELD_ID><![CDATA[BB3881C8631049FDB8BCB0176C2D8D21]]></AD_FIELD_ID>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <NAME><![CDATA[Received (Financial Account)]]></NAME>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <DESCRIPTION><![CDATA[Amount received in currency of financial account]]></DESCRIPTION>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <HELP><![CDATA[The total amount of the payment, converted to the currency of the financial account.]]></HELP>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <AD_COLUMN_ID><![CDATA[4028C9BC2DA5C491012DA689D11F03BD]]></AD_COLUMN_ID>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--BB3881C8631049FDB8BCB0176C2D8D21-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--BB3881C8631049FDB8BCB0176C2D8D21--></AD_FIELD>
+
 <!--BB7E2DFBDCF94FBCA31B53E736CF9D57--><AD_FIELD>
 <!--BB7E2DFBDCF94FBCA31B53E736CF9D57-->  <AD_FIELD_ID><![CDATA[BB7E2DFBDCF94FBCA31B53E736CF9D57]]></AD_FIELD_ID>
 <!--BB7E2DFBDCF94FBCA31B53E736CF9D57-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -19569,6 +19766,32 @@
 <!--D75020C6BCC34E84ACDB10F8C95983AF-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--D75020C6BCC34E84ACDB10F8C95983AF--></AD_FIELD>
 
+<!--D82958A43B8D4FC18F9C24467ED00115--><AD_FIELD>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <AD_FIELD_ID><![CDATA[D82958A43B8D4FC18F9C24467ED00115]]></AD_FIELD_ID>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <NAME><![CDATA[Payment Date]]></NAME>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <AD_COLUMN_ID><![CDATA[7891269C83DB655DE040007F010155CE]]></AD_COLUMN_ID>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <DISPLAYLENGTH><![CDATA[9]]></DISPLAYLENGTH>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <SEQNO><![CDATA[30]]></SEQNO>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--D82958A43B8D4FC18F9C24467ED00115-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--D82958A43B8D4FC18F9C24467ED00115--></AD_FIELD>
+
 <!--D8A3451B12AC4E0C964D9F53D9699449--><AD_FIELD>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <AD_FIELD_ID><![CDATA[D8A3451B12AC4E0C964D9F53D9699449]]></AD_FIELD_ID>
 <!--D8A3451B12AC4E0C964D9F53D9699449-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -21808,6 +22031,34 @@
 <!--F9616FD8600E4650A96A241C1901ECFA-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--F9616FD8600E4650A96A241C1901ECFA--></AD_FIELD>
 
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5--><AD_FIELD>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <AD_FIELD_ID><![CDATA[F98BFF6DF6EA41CB96E0B3042E5181A5]]></AD_FIELD_ID>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <NAME><![CDATA[Business Partner]]></NAME>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <DESCRIPTION><![CDATA[Anyone who takes part in daily business operations by acting as a customer, employee, etc.]]></DESCRIPTION>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <HELP><![CDATA[A Business Partner is anyone with whom you transact.  This can include a customer, vendor, employee or any combination of these.]]></HELP>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <AD_COLUMN_ID><![CDATA[7891269C83D9655DE040007F010155CE]]></AD_COLUMN_ID>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <DISPLAYLENGTH><![CDATA[0]]></DISPLAYLENGTH>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <SEQNO><![CDATA[40]]></SEQNO>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--F98BFF6DF6EA41CB96E0B3042E5181A5--></AD_FIELD>
+
 <!--F9AE3E6335AF43F0B179C808694CFE90--><AD_FIELD>
 <!--F9AE3E6335AF43F0B179C808694CFE90-->  <AD_FIELD_ID><![CDATA[F9AE3E6335AF43F0B179C808694CFE90]]></AD_FIELD_ID>
 <!--F9AE3E6335AF43F0B179C808694CFE90-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -769,6 +769,18 @@
 <!--8444D07DF4214ED793366B83F5BDD042-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--8444D07DF4214ED793366B83F5BDD042--></AD_MESSAGE>
 
+<!--84E37050C028475886A8988DB250D0EB--><AD_MESSAGE>
+<!--84E37050C028475886A8988DB250D0EB-->  <AD_MESSAGE_ID><![CDATA[84E37050C028475886A8988DB250D0EB]]></AD_MESSAGE_ID>
+<!--84E37050C028475886A8988DB250D0EB-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--84E37050C028475886A8988DB250D0EB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--84E37050C028475886A8988DB250D0EB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--84E37050C028475886A8988DB250D0EB-->  <VALUE><![CDATA[APRM_MULTIPLE_TRANSACTIONS_ADDED]]></VALUE>
+<!--84E37050C028475886A8988DB250D0EB-->  <MSGTEXT><![CDATA[%d transaction(s) added to the Financial Account.]]></MSGTEXT>
+<!--84E37050C028475886A8988DB250D0EB-->  <MSGTYPE><![CDATA[S]]></MSGTYPE>
+<!--84E37050C028475886A8988DB250D0EB-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--84E37050C028475886A8988DB250D0EB-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--84E37050C028475886A8988DB250D0EB--></AD_MESSAGE>
+
 <!--89C77284A85346C6923D858E3AB3D363--><AD_MESSAGE>
 <!--89C77284A85346C6923D858E3AB3D363-->  <AD_MESSAGE_ID><![CDATA[89C77284A85346C6923D858E3AB3D363]]></AD_MESSAGE_ID>
 <!--89C77284A85346C6923D858E3AB3D363-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -1453,6 +1465,18 @@
 <!--F0BBB5C1155F46378B6FF74A8F561046-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--F0BBB5C1155F46378B6FF74A8F561046--></AD_MESSAGE>
 
+<!--F1570980691E4FB1983519F8F6A9CD31--><AD_MESSAGE>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <AD_MESSAGE_ID><![CDATA[F1570980691E4FB1983519F8F6A9CD31]]></AD_MESSAGE_ID>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <VALUE><![CDATA[APRM_NO_PAYMENTS_SELECTED]]></VALUE>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <MSGTEXT><![CDATA[One or more payments must be selected]]></MSGTEXT>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--F1570980691E4FB1983519F8F6A9CD31-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--F1570980691E4FB1983519F8F6A9CD31--></AD_MESSAGE>
+
 <!--F302E4040E1B45318BA270BDFA37179C--><AD_MESSAGE>
 <!--F302E4040E1B45318BA270BDFA37179C-->  <AD_MESSAGE_ID><![CDATA[F302E4040E1B45318BA270BDFA37179C]]></AD_MESSAGE_ID>
 <!--F302E4040E1B45318BA270BDFA37179C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -337,6 +337,20 @@
 <!--C20E5E22588E40E5B8CC6D80ED3015C5-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--C20E5E22588E40E5B8CC6D80ED3015C5--></AD_REFERENCE>
 
+<!--D9B6068A6D3E4B7487470E7D2F033A54--><AD_REFERENCE>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <AD_REFERENCE_ID><![CDATA[D9B6068A6D3E4B7487470E7D2F033A54]]></AD_REFERENCE_ID>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <NAME><![CDATA[Add Multiple Payments P&E]]></NAME>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <PARENTREFERENCE_ID><![CDATA[FF80818132D8F0F30132D9BC395D0038]]></PARENTREFERENCE_ID>
+<!--D9B6068A6D3E4B7487470E7D2F033A54-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--D9B6068A6D3E4B7487470E7D2F033A54--></AD_REFERENCE>
+
 <!--DA5377445D8D468DB17743F8082B3CFD--><AD_REFERENCE>
 <!--DA5377445D8D468DB17743F8082B3CFD-->  <AD_REFERENCE_ID><![CDATA[DA5377445D8D468DB17743F8082B3CFD]]></AD_REFERENCE_ID>
 <!--DA5377445D8D468DB17743F8082B3CFD-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TAB.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TAB.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -68,6 +68,40 @@
 <!--1EA4A3F31A27483A8C6E93176AE912D3-->  <EM_OBUIAPP_SHOW_SELECT><![CDATA[Y]]></EM_OBUIAPP_SHOW_SELECT>
 <!--1EA4A3F31A27483A8C6E93176AE912D3--></AD_TAB>
 
+<!--2700A962BC484D4C9B3E30B1C3C66BFB--><AD_TAB>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <AD_TAB_ID><![CDATA[2700A962BC484D4C9B3E30B1C3C66BFB]]></AD_TAB_ID>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <NAME><![CDATA[Add Multiple Payments P&E]]></NAME>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <AD_TABLE_ID><![CDATA[D1A97202E832470285C9B1EB026D54E2]]></AD_TABLE_ID>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <AD_WINDOW_ID><![CDATA[A73B5E3D037A49CC8ACCE8B844FF7D14]]></AD_WINDOW_ID>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <TABLEVEL><![CDATA[0]]></TABLEVEL>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISSINGLEROW><![CDATA[N]]></ISSINGLEROW>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISINFOTAB><![CDATA[N]]></ISINFOTAB>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISTRANSLATIONTAB><![CDATA[N]]></ISTRANSLATIONTAB>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <HASTREE><![CDATA[N]]></HASTREE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <PROCESSING><![CDATA[N]]></PROCESSING>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <IMPORTFIELDS><![CDATA[N]]></IMPORTFIELDS>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISSORTTAB><![CDATA[N]]></ISSORTTAB>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <UIPATTERN><![CDATA[RO]]></UIPATTERN>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <HQLWHERECLAUSE><![CDATA[e.status in ('RPR', 'PPM') and e.amount <>0 and exists ( select 1 from FinancialMgmtFinAccPaymentMethod as  fapm join fapm.account as fa where fapm.paymentMethod = e.paymentMethod and fa.id = @FIN_Financial_Account.id@ and (case when e.receipt = true then fapm.payinAllow else fapm.payoutAllow end) = true and fa.currency = e.account.currency) and not exists (select 1 from FIN_Finacc_Transaction as ft where e = ft.finPayment) and AD_ISORGINCLUDED(e.organization.id, @FIN_Financial_Account.organization@, e.client.id)<>-1]]></HQLWHERECLAUSE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <HQLORDERBYCLAUSE><![CDATA[paymentDate, documentNo]]></HQLORDERBYCLAUSE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <SHOWPARENTBUTTONS><![CDATA[Y]]></SHOWPARENTBUTTONS>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <DISABLE_PARENT_KEY_PROPERTY><![CDATA[N]]></DISABLE_PARENT_KEY_PROPERTY>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISREADONLYTREE><![CDATA[N]]></ISREADONLYTREE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <ISSHOWTREENODEICONS><![CDATA[Y]]></ISSHOWTREENODEICONS>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <EM_OBUIAPP_CAN_ADD><![CDATA[N]]></EM_OBUIAPP_CAN_ADD>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <EM_OBUIAPP_CAN_DELETE><![CDATA[N]]></EM_OBUIAPP_CAN_DELETE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <EM_OBUIAPP_SHOW_SELECT><![CDATA[Y]]></EM_OBUIAPP_SHOW_SELECT>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB-->  <EM_OBUIAPP_SELECTION_TYPE><![CDATA[M]]></EM_OBUIAPP_SELECTION_TYPE>
+<!--2700A962BC484D4C9B3E30B1C3C66BFB--></AD_TAB>
+
 <!--2A9BA5FDA0F8470D881F8EA9DEDCC598--><AD_TAB>
 <!--2A9BA5FDA0F8470D881F8EA9DEDCC598-->  <AD_TAB_ID><![CDATA[2A9BA5FDA0F8470D881F8EA9DEDCC598]]></AD_TAB_ID>
 <!--2A9BA5FDA0F8470D881F8EA9DEDCC598-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_WINDOW.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_WINDOW.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -115,6 +115,23 @@
 <!--81BAC97FE7754C669254C9CF4FA20292-->  <ISADVANCEDFEATURE><![CDATA[N]]></ISADVANCEDFEATURE>
 <!--81BAC97FE7754C669254C9CF4FA20292--></AD_WINDOW>
 
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14--><AD_WINDOW>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <AD_WINDOW_ID><![CDATA[A73B5E3D037A49CC8ACCE8B844FF7D14]]></AD_WINDOW_ID>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <NAME><![CDATA[Add Multiple Payments P&E]]></NAME>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <WINDOWTYPE><![CDATA[OBUIAPP_PickAndExecute]]></WINDOWTYPE>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <ISSOTRX><![CDATA[Y]]></ISSOTRX>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <PROCESSING><![CDATA[N]]></PROCESSING>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <ISDEFAULT><![CDATA[N]]></ISDEFAULT>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <ISTHREADSAFE><![CDATA[N]]></ISTHREADSAFE>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14-->  <ISADVANCEDFEATURE><![CDATA[N]]></ISADVANCEDFEATURE>
+<!--A73B5E3D037A49CC8ACCE8B844FF7D14--></AD_WINDOW>
+
 <!--C57DED2495184380AFBAAA3CA720C3DA--><AD_WINDOW>
 <!--C57DED2495184380AFBAAA3CA720C3DA-->  <AD_WINDOW_ID><![CDATA[C57DED2495184380AFBAAA3CA720C3DA]]></AD_WINDOW_ID>
 <!--C57DED2495184380AFBAAA3CA720C3DA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -673,6 +673,31 @@
 <!--61059745E59240A998ED90DC83E5DA4F-->  <DISPLAYTITLE><![CDATA[N]]></DISPLAYTITLE>
 <!--61059745E59240A998ED90DC83E5DA4F--></OBUIAPP_PARAMETER>
 
+<!--65AFBD9140014688A842ACF5ECF9E5A1--><OBUIAPP_PARAMETER>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <OBUIAPP_PARAMETER_ID><![CDATA[65AFBD9140014688A842ACF5ECF9E5A1]]></OBUIAPP_PARAMETER_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <NAME><![CDATA[Transaction Date]]></NAME>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <DESCRIPTION><![CDATA[The date the transaction is carried out and registered in the cash journal.]]></DESCRIPTION>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <HELP><![CDATA[The Statement Date field defines the date of the statement being processed.]]></HELP>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <AD_REFERENCE_ID><![CDATA[15]]></AD_REFERENCE_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <COLUMNNAME><![CDATA[statementDate]]></COLUMNNAME>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <FIELDLENGTH><![CDATA[19]]></FIELDLENGTH>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <DEFAULTVALUE><![CDATA[OB.getSession().getAttribute('#DATE')]]></DEFAULTVALUE>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <AD_ELEMENT_ID><![CDATA[1434]]></AD_ELEMENT_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <OBUIAPP_PROCESS_ID><![CDATA[4CE463C04CA0412CAC57EF58FE0F8498]]></OBUIAPP_PROCESS_ID>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <DISPLAYEDROWS><![CDATA[5]]></DISPLAYEDROWS>
+<!--65AFBD9140014688A842ACF5ECF9E5A1-->  <DISPLAYTITLE><![CDATA[Y]]></DISPLAYTITLE>
+<!--65AFBD9140014688A842ACF5ECF9E5A1--></OBUIAPP_PARAMETER>
+
 <!--6AF091FD5F1440BB9F0E0C674A168144--><OBUIAPP_PARAMETER>
 <!--6AF091FD5F1440BB9F0E0C674A168144-->  <OBUIAPP_PARAMETER_ID><![CDATA[6AF091FD5F1440BB9F0E0C674A168144]]></OBUIAPP_PARAMETER_ID>
 <!--6AF091FD5F1440BB9F0E0C674A168144-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -779,6 +804,29 @@
 <!--6F1DACE3F9744318948C5A0154FAFEF2-->  <DISPLAYTITLE><![CDATA[Y]]></DISPLAYTITLE>
 <!--6F1DACE3F9744318948C5A0154FAFEF2--></OBUIAPP_PARAMETER>
 
+<!--74479AE073FF4FA5A527DC79EC0A1C82--><OBUIAPP_PARAMETER>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <OBUIAPP_PARAMETER_ID><![CDATA[74479AE073FF4FA5A527DC79EC0A1C82]]></OBUIAPP_PARAMETER_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <NAME><![CDATA[Payment]]></NAME>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <AD_REFERENCE_ID><![CDATA[FF80818132D8F0F30132D9BC395D0038]]></AD_REFERENCE_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <AD_REFERENCE_VALUE_ID><![CDATA[D9B6068A6D3E4B7487470E7D2F033A54]]></AD_REFERENCE_VALUE_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <COLUMNNAME><![CDATA[payments]]></COLUMNNAME>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <ISCENTRALLYMAINTAINED><![CDATA[N]]></ISCENTRALLYMAINTAINED>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <AD_ELEMENT_ID><![CDATA[7891269C83EA655DE040007F010155CE]]></AD_ELEMENT_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <OBUIAPP_PROCESS_ID><![CDATA[4CE463C04CA0412CAC57EF58FE0F8498]]></OBUIAPP_PROCESS_ID>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <DISPLAYEDROWS><![CDATA[18]]></DISPLAYEDROWS>
+<!--74479AE073FF4FA5A527DC79EC0A1C82-->  <DISPLAYTITLE><![CDATA[N]]></DISPLAYTITLE>
+<!--74479AE073FF4FA5A527DC79EC0A1C82--></OBUIAPP_PARAMETER>
+
 <!--76E43D5C34244BBDA6FE6678F94C3B7C--><OBUIAPP_PARAMETER>
 <!--76E43D5C34244BBDA6FE6678F94C3B7C-->  <OBUIAPP_PARAMETER_ID><![CDATA[76E43D5C34244BBDA6FE6678F94C3B7C]]></OBUIAPP_PARAMETER_ID>
 <!--76E43D5C34244BBDA6FE6678F94C3B7C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -19,6 +19,26 @@
 <!--154CB4F9274A479CB38A285E16984539-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
 <!--154CB4F9274A479CB38A285E16984539--></OBUIAPP_PROCESS>
 
+<!--4CE463C04CA0412CAC57EF58FE0F8498--><OBUIAPP_PROCESS>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <OBUIAPP_PROCESS_ID><![CDATA[4CE463C04CA0412CAC57EF58FE0F8498]]></OBUIAPP_PROCESS_ID>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <VALUE><![CDATA[Add Multiple Payments]]></VALUE>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <NAME><![CDATA[Add Multiple Payments]]></NAME>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <DESCRIPTION><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></DESCRIPTION>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <HELP><![CDATA[User can select multiple payments at the same time. The system will create a separate transaction per selected payment]]></HELP>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <CLASSNAME><![CDATA[org.openbravo.advpaymentmngt.actionHandler.AddMultiplePaymentsHandler]]></CLASSNAME>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <UIPATTERN><![CDATA[OBUIAPP_PickAndExecute]]></UIPATTERN>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <ISMULTIRECORD><![CDATA[N]]></ISMULTIRECORD>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <IS_EXPLICIT_ACCESS><![CDATA[N]]></IS_EXPLICIT_ACCESS>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <ISGRIDLEGACY><![CDATA[N]]></ISGRIDLEGACY>
+<!--4CE463C04CA0412CAC57EF58FE0F8498-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
+<!--4CE463C04CA0412CAC57EF58FE0F8498--></OBUIAPP_PROCESS>
+
 <!--4EEB3497082C4F2182E16A4371CD5D96--><OBUIAPP_PROCESS>
 <!--4EEB3497082C4F2182E16A4371CD5D96-->  <OBUIAPP_PROCESS_ID><![CDATA[4EEB3497082C4F2182E16A4371CD5D96]]></OBUIAPP_PROCESS_ID>
 <!--4EEB3497082C4F2182E16A4371CD5D96-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_REF_WINDOW.xml	Thu Jun 25 16:37:07 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_REF_WINDOW.xml	Thu Jun 25 10:20:46 2015 +0200
@@ -72,4 +72,13 @@
 <!--98B655EC65BF4D669F3474F07CF22131-->  <AD_WINDOW_ID><![CDATA[C57DED2495184380AFBAAA3CA720C3DA]]></AD_WINDOW_ID>
 <!--98B655EC65BF4D669F3474F07CF22131--></OBUIAPP_REF_WINDOW>
 
+<!--B1A15F9CDFA34F459B7B9A7011625D29--><OBUIAPP_REF_WINDOW>
+<!--B1A15F9CDFA34F459B7B9A7011625D29-->  <OBUIAPP_REF_WINDOW_ID><![CDATA[B1A15F9CDFA34F459B7B9A7011625D29]]></OBUIAPP_REF_WINDOW_ID>
+<!--B1A15F9CDFA34F459B7B9A7011625D29-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B1A15F9CDFA34F459B7B9A7011625D29-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B1A15F9CDFA34F459B7B9A7011625D29-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B1A15F9CDFA34F459B7B9A7011625D29-->  <AD_REFERENCE_ID><![CDATA[D9B6068A6D3E4B7487470E7D2F033A54]]></AD_REFERENCE_ID>
+<!--B1A15F9CDFA34F459B7B9A7011625D29-->  <AD_WINDOW_ID><![CDATA[A73B5E3D037A49CC8ACCE8B844FF7D14]]></AD_WINDOW_ID>
+<!--B1A15F9CDFA34F459B7B9A7011625D29--></OBUIAPP_REF_WINDOW>
+
 </data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddMultiplePaymentsHandler.java	Thu Jun 25 10:20:46 2015 +0200
@@ -0,0 +1,143 @@
+/*
+ *************************************************************************
+ * 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) 2015 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+package org.openbravo.advpaymentmngt.actionHandler;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.codehaus.jettison.json.JSONArray;
+import org.codehaus.jettison.json.JSONException;
+import org.codehaus.jettison.json.JSONObject;
+import org.openbravo.advpaymentmngt.dao.TransactionsDao;
+import org.openbravo.advpaymentmngt.process.FIN_TransactionProcess;
+import org.openbravo.client.application.process.BaseProcessActionHandler;
+import org.openbravo.dal.core.OBContext;
+import org.openbravo.dal.service.OBDal;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
+import org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction;
+import org.openbravo.model.financialmgmt.payment.FIN_Payment;
+import org.openbravo.service.db.DbUtility;
+import org.openbravo.service.json.JsonUtils;
+
+public class AddMultiplePaymentsHandler extends BaseProcessActionHandler {
+  private static final Logger log = Logger.getLogger(AddMultiplePaymentsHandler.class);
+  private static final SimpleDateFormat jsDateFormat = JsonUtils.createDateFormat();
+  private static final String ACTION_PROCESS_TRANSACTION = "P";
+
+  @Override
+  protected JSONObject doExecute(Map<String, Object> parameters, String data) {
+    try {
+      final JSONObject jsonData = new JSONObject(data);
+      final JSONObject jsonparams = jsonData.getJSONObject("_params");
+
+      final JSONArray selectedPayments = jsonparams.getJSONObject("payments").getJSONArray(
+          "_selection");
+      final Date statementDate = jsDateFormat.parse(jsonparams.getString("statementDate"));
+
+      int selectedInvoiceLinesLength = selectedPayments.length();
+      if (selectedInvoiceLinesLength == 0) {
+        // Validation error: No lines selected
+        return getErrorMessage(OBMessageUtils.messageBD("APRM_NO_PAYMENTS_SELECTED"));
+      }
+
+      for (int i = 0; i < selectedInvoiceLinesLength; i++) {
+        final JSONObject paymentJS = selectedPayments.getJSONObject(i);
+        createAndProcessTransactionFromPayment(paymentJS, statementDate);
+      }
+      // Success Message
+      return getSuccessMessage(String.format(
+          OBMessageUtils.messageBD("APRM_MULTIPLE_TRANSACTIONS_ADDED"), selectedInvoiceLinesLength));
+
+    } catch (Exception e) {
+      OBDal.getInstance().rollbackAndClose();
+      log.error("Exception creating multiple transactions from payments", e);
+
+      try {
+        Throwable ex = DbUtility.getUnderlyingSQLException(e);
+        String message = OBMessageUtils.translateError(ex.getMessage()).getMessage();
+        return getErrorMessage(message);
+      } catch (Exception ignore) {
+      }
+    }
+
+    return new JSONObject();
+  }
+
+  /**
+   * Creates a new transaction from the payment and then it processes the transaction
+   */
+  private void createAndProcessTransactionFromPayment(final JSONObject paymentJS,
+      final Date transactionDate) throws JSONException {
+    try {
+      OBContext.setAdminMode(true);
+      final String paymentId = paymentJS.getString("id");
+      log.debug("Creating transaction for FIN_Payment_ID: " + paymentId);
+      final FIN_Payment payment = OBDal.getInstance().get(FIN_Payment.class, paymentId);
+      if (payment != null) {
+        final FIN_FinaccTransaction transaction = TransactionsDao.createFinAccTransaction(payment);
+        transaction.setTransactionDate(transactionDate);
+        FIN_TransactionProcess.doTransactionProcess(ACTION_PROCESS_TRANSACTION, transaction);
+      }
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+  }
+
+  /**
+   * Returns a JSONObject with the success message to be printed
+   */
+  private static JSONObject getSuccessMessage(final String msgText) {
+    final JSONObject result = new JSONObject();
+    try {
+      final JSONArray actions = new JSONArray();
+      final JSONObject msgInBPTab = new JSONObject();
+      msgInBPTab.put("msgType", "success");
+      msgInBPTab.put("msgTitle", OBMessageUtils.messageBD("success"));
+      msgInBPTab.put("msgText", msgText);
+      final JSONObject msgInBPTabAction = new JSONObject();
+      msgInBPTabAction.put("showMsgInProcessView", msgInBPTab);
+      actions.put(msgInBPTabAction);
+      result.put("responseActions", actions);
+    } catch (Exception e) {
+      log.error(e);
+    }
+
+    return result;
+  }
+
+  /**
+   * Returns a JSONObject with the error message to be printed and retry execution
+   */
+  private static JSONObject getErrorMessage(final String msgText) {
+    final JSONObject result = new JSONObject();
+    try {
+      final JSONObject msg = new JSONObject();
+      msg.put("severity", "error");
+      msg.put("text", msgText);
+      result.put("message", msg);
+      result.put("retryExecution", true);
+    } catch (Exception e) {
+      log.error(e);
+    }
+    return result;
+  }
+
+}