[APRM Enhancement ForwardPort] Added bank statement process for manually entered statements.
authorMikel Irurita <mikel.irurita@openbravo.com>
Mon, 23 May 2011 17:19:07 +0200
changeset 12395 5667de630802
parent 12394 718a9a45dc69
child 12396 5e6126bd179a
[APRM Enhancement ForwardPort] Added bank statement process for manually entered statements.
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_MODEL_OBJECT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Mon May 23 17:19:07 2011 +0200
@@ -4167,6 +4167,40 @@
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
 <!--A3A1CA451F85C5FBE040007F0100386C--></AD_COLUMN>
 
+<!--A28B0A82995C87F5E040007F010067A0--><AD_COLUMN>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_COLUMN_ID><![CDATA[A28B0A82995C87F5E040007F010067A0]]></AD_COLUMN_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A28B0A82995C87F5E040007F010067A0-->  <NAME><![CDATA[EM_APRM_Process Bank Statement]]></NAME>
+<!--A28B0A82995C87F5E040007F010067A0-->  <COLUMNNAME><![CDATA[EM_APRM_Process_BS]]></COLUMNNAME>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_TABLE_ID><![CDATA[D4C23A17190649E7B78F55A05AF3438C]]></AD_TABLE_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_REFERENCE_VALUE_ID><![CDATA[EC75B6F5A9504DB6B3F3356EA85F15EE]]></AD_REFERENCE_VALUE_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <FIELDLENGTH><![CDATA[60]]></FIELDLENGTH>
+<!--A28B0A82995C87F5E040007F010067A0-->  <DEFAULTVALUE><![CDATA[P]]></DEFAULTVALUE>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--A28B0A82995C87F5E040007F010067A0-->  <SEQNO><![CDATA[210]]></SEQNO>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_ELEMENT_ID><![CDATA[A28B183E6A9B34C0E040007F010067F9]]></AD_ELEMENT_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_PROCESS_ID><![CDATA[58A9261BACEF45DDA526F29D8557272D]]></AD_PROCESS_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--A28B0A82995C87F5E040007F010067A0-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--A28B0A82995C87F5E040007F010067A0-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A28B0A82995C87F5E040007F010067A0-->  <POSITION><![CDATA[21]]></POSITION>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--A28B0A82995C87F5E040007F010067A0-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--A28B0A82995C87F5E040007F010067A0-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--A28B0A82995C87F5E040007F010067A0--></AD_COLUMN>
+
 <!--A6B405E9791D4BC685220C11CCA916C0--><AD_COLUMN>
 <!--A6B405E9791D4BC685220C11CCA916C0-->  <AD_COLUMN_ID><![CDATA[A6B405E9791D4BC685220C11CCA916C0]]></AD_COLUMN_ID>
 <!--A6B405E9791D4BC685220C11CCA916C0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Mon May 23 17:19:07 2011 +0200
@@ -339,6 +339,17 @@
 <!--A37C6F84AA463F50E040007F01006E35-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--A37C6F84AA463F50E040007F01006E35--></AD_ELEMENT>
 
+<!--A28B183E6A9B34C0E040007F010067F9--><AD_ELEMENT>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <AD_ELEMENT_ID><![CDATA[A28B183E6A9B34C0E040007F010067F9]]></AD_ELEMENT_ID>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <COLUMNNAME><![CDATA[EM_APRM_Process_BS]]></COLUMNNAME>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <NAME><![CDATA[EM_APRM_Process Bank Statement]]></NAME>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <PRINTNAME><![CDATA[EM_APRM_Process Bank Statement]]></PRINTNAME>
+<!--A28B183E6A9B34C0E040007F010067F9-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A28B183E6A9B34C0E040007F010067F9--></AD_ELEMENT>
+
 <!--C8E8009C6BF5427EA930515F217F768E--><AD_ELEMENT>
 <!--C8E8009C6BF5427EA930515F217F768E-->  <AD_ELEMENT_ID><![CDATA[C8E8009C6BF5427EA930515F217F768E]]></AD_ELEMENT_ID>
 <!--C8E8009C6BF5427EA930515F217F768E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Mon May 23 17:19:07 2011 +0200
@@ -5729,6 +5729,27 @@
 <!--A15C847258924926970BD52CABDE7480-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
 <!--A15C847258924926970BD52CABDE7480--></AD_FIELD>
 
+<!--A28B0A82995D87F5E040007F010067A0--><AD_FIELD>
+<!--A28B0A82995D87F5E040007F010067A0-->  <AD_FIELD_ID><![CDATA[A28B0A82995D87F5E040007F010067A0]]></AD_FIELD_ID>
+<!--A28B0A82995D87F5E040007F010067A0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A28B0A82995D87F5E040007F010067A0-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A28B0A82995D87F5E040007F010067A0-->  <NAME><![CDATA[Bank Statement Process]]></NAME>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--A28B0A82995D87F5E040007F010067A0-->  <AD_TAB_ID><![CDATA[C56E698100314ABBBBD3A89626CA551C]]></AD_TAB_ID>
+<!--A28B0A82995D87F5E040007F010067A0-->  <AD_COLUMN_ID><![CDATA[A28B0A82995C87F5E040007F010067A0]]></AD_COLUMN_ID>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--A28B0A82995D87F5E040007F010067A0-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--A28B0A82995D87F5E040007F010067A0-->  <SEQNO><![CDATA[130]]></SEQNO>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--A28B0A82995D87F5E040007F010067A0-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--A28B0A82995D87F5E040007F010067A0-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--A28B0A82995D87F5E040007F010067A0-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A28B0A82995D87F5E040007F010067A0--></AD_FIELD>
+
 <!--A29EED82E5C9497D8A61F5985686E299--><AD_FIELD>
 <!--A29EED82E5C9497D8A61F5985686E299-->  <AD_FIELD_ID><![CDATA[A29EED82E5C9497D8A61F5985686E299]]></AD_FIELD_ID>
 <!--A29EED82E5C9497D8A61F5985686E299-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Mon May 23 17:19:07 2011 +0200
@@ -407,6 +407,17 @@
 <!--9C50BA94A0294449A16B26A91F8F06C4-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--9C50BA94A0294449A16B26A91F8F06C4--></AD_MESSAGE>
 
+<!--A12B892B27E84089A80A6D96919C04BD--><AD_MESSAGE>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <AD_MESSAGE_ID><![CDATA[A12B892B27E84089A80A6D96919C04BD]]></AD_MESSAGE_ID>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <VALUE><![CDATA[APRM_ReconciledDocument]]></VALUE>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <MSGTEXT><![CDATA[Document already reconciled]]></MSGTEXT>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--A12B892B27E84089A80A6D96919C04BD-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A12B892B27E84089A80A6D96919C04BD--></AD_MESSAGE>
+
 <!--A170443009114AFE88C11A0EFD059DF1--><AD_MESSAGE>
 <!--A170443009114AFE88C11A0EFD059DF1-->  <AD_MESSAGE_ID><![CDATA[A170443009114AFE88C11A0EFD059DF1]]></AD_MESSAGE_ID>
 <!--A170443009114AFE88C11A0EFD059DF1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -451,6 +462,17 @@
 <!--AEAD317E14D64FECBD3C753616891EB7-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--AEAD317E14D64FECBD3C753616891EB7--></AD_MESSAGE>
 
+<!--B1CBFC308F82467C8E3FC87091E24522--><AD_MESSAGE>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <AD_MESSAGE_ID><![CDATA[B1CBFC308F82467C8E3FC87091E24522]]></AD_MESSAGE_ID>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <VALUE><![CDATA[APRM_BSLineReconciled]]></VALUE>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <MSGTEXT><![CDATA[The Bank Statement has a reconciled line]]></MSGTEXT>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--B1CBFC308F82467C8E3FC87091E24522-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--B1CBFC308F82467C8E3FC87091E24522--></AD_MESSAGE>
+
 <!--B3D6AF0669DD4DF5BDF48A4D55F84C3C--><AD_MESSAGE>
 <!--B3D6AF0669DD4DF5BDF48A4D55F84C3C-->  <AD_MESSAGE_ID><![CDATA[B3D6AF0669DD4DF5BDF48A4D55F84C3C]]></AD_MESSAGE_ID>
 <!--B3D6AF0669DD4DF5BDF48A4D55F84C3C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Mon May 23 17:19:07 2011 +0200
@@ -84,6 +84,18 @@
 <!--9313D44D9A13480388AD5A55B455EDCB-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
 <!--9313D44D9A13480388AD5A55B455EDCB--></AD_MODEL_OBJECT>
 
+<!--95620B3F5CA04222A12CD446B0581DF3--><AD_MODEL_OBJECT>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <AD_MODEL_OBJECT_ID><![CDATA[95620B3F5CA04222A12CD446B0581DF3]]></AD_MODEL_OBJECT_ID>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <ACTION><![CDATA[P]]></ACTION>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <CLASSNAME><![CDATA[org.openbravo.advpaymentmngt.process.FIN_BankStatementProcess]]></CLASSNAME>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <AD_PROCESS_ID><![CDATA[58A9261BACEF45DDA526F29D8557272D]]></AD_PROCESS_ID>
+<!--95620B3F5CA04222A12CD446B0581DF3-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
+<!--95620B3F5CA04222A12CD446B0581DF3--></AD_MODEL_OBJECT>
+
 <!--A7A562CD91CB42D9977E12B098CBC9EC--><AD_MODEL_OBJECT>
 <!--A7A562CD91CB42D9977E12B098CBC9EC-->  <AD_MODEL_OBJECT_ID><![CDATA[A7A562CD91CB42D9977E12B098CBC9EC]]></AD_MODEL_OBJECT_ID>
 <!--A7A562CD91CB42D9977E12B098CBC9EC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml	Mon May 23 17:19:07 2011 +0200
@@ -77,6 +77,24 @@
 <!--4A059E4F79294640AD37B1B718C56E5D-->  <UIPATTERN><![CDATA[M]]></UIPATTERN>
 <!--4A059E4F79294640AD37B1B718C56E5D--></AD_PROCESS>
 
+<!--58A9261BACEF45DDA526F29D8557272D--><AD_PROCESS>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <AD_PROCESS_ID><![CDATA[58A9261BACEF45DDA526F29D8557272D]]></AD_PROCESS_ID>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <VALUE><![CDATA[BankStatementProcess]]></VALUE>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <NAME><![CDATA[Bank Statement Process]]></NAME>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <ISEXTERNALSERVICE><![CDATA[N]]></ISEXTERNALSERVICE>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--58A9261BACEF45DDA526F29D8557272D-->  <UIPATTERN><![CDATA[S]]></UIPATTERN>
+<!--58A9261BACEF45DDA526F29D8557272D--></AD_PROCESS>
+
 <!--6255BE488882480599C81284B70CD9B3--><AD_PROCESS>
 <!--6255BE488882480599C81284B70CD9B3-->  <AD_PROCESS_ID><![CDATA[6255BE488882480599C81284B70CD9B3]]></AD_PROCESS_ID>
 <!--6255BE488882480599C81284B70CD9B3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml	Mon May 23 17:19:07 2011 +0200
@@ -22,6 +22,27 @@
 <!--800BEB6BDA99409194CADF23988D7B6D-->  <AD_ELEMENT_ID><![CDATA[152]]></AD_ELEMENT_ID>
 <!--800BEB6BDA99409194CADF23988D7B6D--></AD_PROCESS_PARA>
 
+<!--8A8E1C0D38F144D797698E48F464F97B--><AD_PROCESS_PARA>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_PROCESS_PARA_ID><![CDATA[8A8E1C0D38F144D797698E48F464F97B]]></AD_PROCESS_PARA_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <NAME><![CDATA[Action]]></NAME>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <DESCRIPTION><![CDATA[A drop down list box indicating the next step to take.]]></DESCRIPTION>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <HELP><![CDATA[The Action field indicates the Action to be performed for this element.]]></HELP>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_PROCESS_ID><![CDATA[58A9261BACEF45DDA526F29D8557272D]]></AD_PROCESS_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_REFERENCE_ID><![CDATA[17]]></AD_REFERENCE_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_REFERENCE_VALUE_ID><![CDATA[EC75B6F5A9504DB6B3F3356EA85F15EE]]></AD_REFERENCE_VALUE_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <COLUMNNAME><![CDATA[action]]></COLUMNNAME>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <DEFAULTVALUE><![CDATA[@EM_APRM_Process_BS@]]></DEFAULTVALUE>
+<!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_ELEMENT_ID><![CDATA[152]]></AD_ELEMENT_ID>
+<!--8A8E1C0D38F144D797698E48F464F97B--></AD_PROCESS_PARA>
+
 <!--FF8080812E2F8EAE012E2F98D9680030--><AD_PROCESS_PARA>
 <!--FF8080812E2F8EAE012E2F98D9680030-->  <AD_PROCESS_PARA_ID><![CDATA[FF8080812E2F8EAE012E2F98D9680030]]></AD_PROCESS_PARA_ID>
 <!--FF8080812E2F8EAE012E2F98D9680030-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Mon May 23 17:19:07 2011 +0200
@@ -84,6 +84,18 @@
 <!--DB71FC312327430EAEACF42918405BF9-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--DB71FC312327430EAEACF42918405BF9--></AD_REFERENCE>
 
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE--><AD_REFERENCE>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <AD_REFERENCE_ID><![CDATA[EC75B6F5A9504DB6B3F3356EA85F15EE]]></AD_REFERENCE_ID>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <NAME><![CDATA[FIN_BankStatement Process Actions]]></NAME>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <PARENTREFERENCE_ID><![CDATA[17]]></PARENTREFERENCE_ID>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--EC75B6F5A9504DB6B3F3356EA85F15EE--></AD_REFERENCE>
+
 <!--F15C13A199A748F1B0B00E985A64C036--><AD_REFERENCE>
 <!--F15C13A199A748F1B0B00E985A64C036-->  <AD_REFERENCE_ID><![CDATA[F15C13A199A748F1B0B00E985A64C036]]></AD_REFERENCE_ID>
 <!--F15C13A199A748F1B0B00E985A64C036-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml	Mon May 23 17:19:07 2011 +0200
@@ -35,6 +35,17 @@
 <!--4A633A692495425FA27BEF840905D29E-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--4A633A692495425FA27BEF840905D29E--></AD_REF_LIST>
 
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA--><AD_REF_LIST>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <AD_REF_LIST_ID><![CDATA[4A647396E4CE4E8B90D58E9FE4C12BBA]]></AD_REF_LIST_ID>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <VALUE><![CDATA[P]]></VALUE>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <NAME><![CDATA[Process]]></NAME>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <AD_REFERENCE_ID><![CDATA[EC75B6F5A9504DB6B3F3356EA85F15EE]]></AD_REFERENCE_ID>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--4A647396E4CE4E8B90D58E9FE4C12BBA--></AD_REF_LIST>
+
 <!--5A9398A729924B7EAB9494E722992B55--><AD_REF_LIST>
 <!--5A9398A729924B7EAB9494E722992B55-->  <AD_REF_LIST_ID><![CDATA[5A9398A729924B7EAB9494E722992B55]]></AD_REF_LIST_ID>
 <!--5A9398A729924B7EAB9494E722992B55-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -83,6 +94,17 @@
 <!--7178525D7629435B98DFDF97EF4A3631-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--7178525D7629435B98DFDF97EF4A3631--></AD_REF_LIST>
 
+<!--A29540336120479B825D190E5B51C79E--><AD_REF_LIST>
+<!--A29540336120479B825D190E5B51C79E-->  <AD_REF_LIST_ID><![CDATA[A29540336120479B825D190E5B51C79E]]></AD_REF_LIST_ID>
+<!--A29540336120479B825D190E5B51C79E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A29540336120479B825D190E5B51C79E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A29540336120479B825D190E5B51C79E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A29540336120479B825D190E5B51C79E-->  <VALUE><![CDATA[R]]></VALUE>
+<!--A29540336120479B825D190E5B51C79E-->  <NAME><![CDATA[Reactivate]]></NAME>
+<!--A29540336120479B825D190E5B51C79E-->  <AD_REFERENCE_ID><![CDATA[EC75B6F5A9504DB6B3F3356EA85F15EE]]></AD_REFERENCE_ID>
+<!--A29540336120479B825D190E5B51C79E-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A29540336120479B825D190E5B51C79E--></AD_REF_LIST>
+
 <!--AA18A706616845D183B63BE88C967C89--><AD_REF_LIST>
 <!--AA18A706616845D183B63BE88C967C89-->  <AD_REF_LIST_ID><![CDATA[AA18A706616845D183B63BE88C967C89]]></AD_REF_LIST_ID>
 <!--AA18A706616845D183B63BE88C967C89-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/MatchTransaction.java	Mon May 23 17:19:07 2011 +0200
@@ -197,8 +197,6 @@
                   FIN_FinaccTransaction.class, strTransaction);
               transactionLine.setReconciliation(MatchTransactionDao.getObject(
                   FIN_Reconciliation.class, strReconciliationId));
-              item.getBankStatement().setFINReconciliation(
-                  MatchTransactionDao.getObject(FIN_Reconciliation.class, strReconciliationId));
               if (isInArray(strRecordsChecked, item.getId())) {
                 transactionLine.setStatus("RPPC");
                 if (transactionLine.getFinPayment() != null) {
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java	Mon May 23 17:19:07 2011 +0200
@@ -753,4 +753,31 @@
     myMessage = (OBError) pb.getResult();
     return myMessage;
   }
+
+  /**
+   * It calls the Bank Statement Process for the given bank statement and action.
+   * 
+   * @param vars
+   *          VariablesSecureApp with the session data.
+   * @param conn
+   *          ConnectionProvider with the connection being used.
+   * @param strBankStatementAction
+   *          String with the action of the process. {P, R}
+   * @param strBankStatementId
+   *          String with FIN_BankStatement Id to be processed.
+   * @return a OBError with the result message of the process.
+   * @throws Exception
+   */
+  public static OBError processBankStatement(VariablesSecureApp vars, ConnectionProvider conn,
+      String strBankStatementAction, String strBankStatementId) throws Exception {
+    ProcessBundle pb = new ProcessBundle("58A9261BACEF45DDA526F29D8557272D", vars).init(conn);
+    HashMap<String, Object> parameters = new HashMap<String, Object>();
+    parameters.put("action", strBankStatementAction);
+    parameters.put("FIN_Bankstatement_ID", strBankStatementId);
+    pb.setParams(parameters);
+    OBError myMessage = null;
+    new FIN_BankStatementProcess().execute(pb);
+    myMessage = (OBError) pb.getResult();
+    return myMessage;
+  }
 }
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java	Mon May 23 13:52:21 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java	Mon May 23 17:19:07 2011 +0200
@@ -29,6 +29,7 @@
 import org.apache.commons.fileupload.FileItem;
 import org.openbravo.advpaymentmngt.dao.AdvPaymentMngtDao;
 import org.openbravo.advpaymentmngt.dao.TransactionsDao;
+import org.openbravo.advpaymentmngt.process.FIN_AddPayment;
 import org.openbravo.base.exception.OBException;
 import org.openbravo.base.provider.OBProvider;
 import org.openbravo.base.secureApp.VariablesSecureApp;
@@ -151,7 +152,7 @@
 
     try {
       numberOfLines = saveFINBankStatementLines(bankStatementLines);
-      process(bankStatement);
+      FIN_AddPayment.processBankStatement(vars, conn, "P", bankStatement.getId());
     } catch (Exception e) {
       OBDal.getInstance().rollbackAndClose();
       return getMyError();
@@ -259,14 +260,6 @@
 
   }
 
-  private void process(FIN_BankStatement bankStatement) {
-    bankStatement.setProcessed(true);
-    OBDal.getInstance().save(bankStatement);
-    OBDal.getInstance().flush();
-    return;
-
-  }
-
   BusinessPartner matchBusinessPartner(String partnername) {
     // TODO extend with other matching methods. It will make it easier to later reconcile
     BusinessPartner bp = matchBusinessPartnerByName(partnername);