Adds modify button to transactions (type GL Item)
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Wed, 02 Nov 2011 20:16:39 +0100
changeset 14184 83bc004cd965
parent 14183 20ac7617274d
child 14185 a2a611dbd362
Adds modify button to transactions (type GL Item)
modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_FINACC_TRANSACTION.xml
modules/org.openbravo.advpaymentmngt/src-db/database/model/views/APRM_FINACC_TRANSACTION_V.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionModify.java
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_FINACC_TRANSACTION.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/modifiedTables/FIN_FINACC_TRANSACTION.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -5,5 +5,9 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="EM_APRM_MODIFY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault/>
+      </column>
     </table>
   </database>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/views/APRM_FINACC_TRANSACTION_V.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/views/APRM_FINACC_TRANSACTION_V.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
   <database name="VIEW APRM_FINACC_TRANSACTION_V">
-    <view name="APRM_FINACC_TRANSACTION_V"><![CDATA[SELECT trx.fin_finacc_transaction_id AS aprm_finacc_transaction_v_id, trx.fin_finacc_transaction_id, trx.ad_client_id, trx.ad_org_id, trx.isactive, trx.created, trx.createdby, trx.updated, trx.updatedby, trx.fin_financial_account_id, trx.line, trx.description, trx.statementdate, trx.trxtype, trx.fin_payment_id, trx.c_glitem_id, trx.depositamt, trx.paymentamt, trx.c_currency_id, trx.fin_reconciliation_id, trx.status, trx.createdbyalgorithm, trx.posted, trx.dateacct, trx.processed, trx.processing, trx.user1_id, trx.user2_id, trx.c_activity_id, trx.c_campaign_id, trx.c_project_id, trx.foreign_currency_id, trx.foreign_amount, trx.foreign_convert_rate, 
+    <view name="APRM_FINACC_TRANSACTION_V"><![CDATA[SELECT trx.fin_finacc_transaction_id AS aprm_finacc_transaction_v_id, trx.fin_finacc_transaction_id, trx.ad_client_id, trx.ad_org_id, trx.isactive, trx.created, trx.createdby, trx.updated, trx.updatedby, trx.fin_financial_account_id, trx.line, trx.description, trx.statementdate, trx.trxtype, trx.fin_payment_id, trx.c_glitem_id, trx.depositamt, trx.paymentamt, trx.c_currency_id, trx.fin_reconciliation_id, trx.status, trx.createdbyalgorithm, trx.posted, trx.dateacct, trx.processed, trx.processing, trx.user1_id, trx.user2_id, trx.c_activity_id, trx.c_campaign_id, trx.c_project_id, trx.foreign_currency_id, trx.foreign_amount, trx.em_aprm_modify, trx.foreign_convert_rate, 
 CASE trx.status
 WHEN 'RPPC' THEN 'Y'
 ELSE 'N'
-END AS cleared, p.c_bpartner_id, p.documentno AS paymentdocno, COALESCE(r.processed, 'N') AS reconciled, 'N' AS delete_btn, (SELECT ad_table.ad_table_id
+END AS cleared, COALESCE(trx.c_bpartner_id, p.c_bpartner_id) AS c_bpartner_id, trx.m_product_id, trx.c_salesregion_id, p.documentno AS paymentdocno, COALESCE(r.processed, 'N') AS reconciled, 'N' AS delete_btn, (SELECT ad_table.ad_table_id
 FROM ad_table
 WHERE lower(ad_table.tablename) = 'fin_finacc_transaction') AS forced_table_id
 FROM fin_finacc_transaction trx
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -4616,6 +4616,40 @@
 <!--A04179EAC69FF848E040007F01004523-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
 <!--A04179EAC69FF848E040007F01004523--></AD_COLUMN>
 
+<!--A13138E3D6E44C72A7F24B7AA9365B37--><AD_COLUMN>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_COLUMN_ID><![CDATA[A13138E3D6E44C72A7F24B7AA9365B37]]></AD_COLUMN_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <NAME><![CDATA[Sales Region]]></NAME>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <DESCRIPTION><![CDATA[A defined section of the world where sales efforts will be focused.]]></DESCRIPTION>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <HELP><![CDATA[The Sales Region indicates a specific area of sales coverage.]]></HELP>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <COLUMNNAME><![CDATA[C_Salesregion_ID]]></COLUMNNAME>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_TABLE_ID><![CDATA[FF8080812FFEC82D012FFECCE3400030]]></AD_TABLE_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <SEQNO><![CDATA[430]]></SEQNO>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_ELEMENT_ID><![CDATA[210]]></AD_ELEMENT_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <POSITION><![CDATA[39]]></POSITION>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--A13138E3D6E44C72A7F24B7AA9365B37-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--A13138E3D6E44C72A7F24B7AA9365B37--></AD_COLUMN>
+
 <!--A2622D5C7B194885A112B0FC5765C55E--><AD_COLUMN>
 <!--A2622D5C7B194885A112B0FC5765C55E-->  <AD_COLUMN_ID><![CDATA[A2622D5C7B194885A112B0FC5765C55E]]></AD_COLUMN_ID>
 <!--A2622D5C7B194885A112B0FC5765C55E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -5219,7 +5253,7 @@
 <!--A37C6F84AA2D3F50E040007F01006E35-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--A37C6F84AA2D3F50E040007F01006E35-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
 <!--A37C6F84AA2D3F50E040007F01006E35-->  <AD_ELEMENT_ID><![CDATA[800080]]></AD_ELEMENT_ID>
-<!--A37C6F84AA2D3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--A37C6F84AA2D3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
 <!--A37C6F84AA2D3F50E040007F01006E35-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--A37C6F84AA2D3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA2D3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
@@ -5661,7 +5695,7 @@
 <!--A37C6F84AA3A3F50E040007F01006E35-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--A37C6F84AA3A3F50E040007F01006E35-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
 <!--A37C6F84AA3A3F50E040007F01006E35-->  <AD_ELEMENT_ID><![CDATA[1005]]></AD_ELEMENT_ID>
-<!--A37C6F84AA3A3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--A37C6F84AA3A3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
 <!--A37C6F84AA3A3F50E040007F01006E35-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--A37C6F84AA3A3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA3A3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
@@ -5695,7 +5729,7 @@
 <!--A37C6F84AA3B3F50E040007F01006E35-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--A37C6F84AA3B3F50E040007F01006E35-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
 <!--A37C6F84AA3B3F50E040007F01006E35-->  <AD_ELEMENT_ID><![CDATA[550]]></AD_ELEMENT_ID>
-<!--A37C6F84AA3B3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--A37C6F84AA3B3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
 <!--A37C6F84AA3B3F50E040007F01006E35-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--A37C6F84AA3B3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA3B3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
@@ -5729,7 +5763,7 @@
 <!--A37C6F84AA3C3F50E040007F01006E35-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--A37C6F84AA3C3F50E040007F01006E35-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
 <!--A37C6F84AA3C3F50E040007F01006E35-->  <AD_ELEMENT_ID><![CDATA[208]]></AD_ELEMENT_ID>
-<!--A37C6F84AA3C3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--A37C6F84AA3C3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
 <!--A37C6F84AA3C3F50E040007F01006E35-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--A37C6F84AA3C3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA3C3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
@@ -5766,7 +5800,7 @@
 <!--A37C6F84AA3D3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA3D3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A37C6F84AA3D3F50E040007F01006E35-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A37C6F84AA3D3F50E040007F01006E35-->  <POSITION><![CDATA[35]]></POSITION>
+<!--A37C6F84AA3D3F50E040007F01006E35-->  <POSITION><![CDATA[36]]></POSITION>
 <!--A37C6F84AA3D3F50E040007F01006E35-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A37C6F84AA3D3F50E040007F01006E35-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A37C6F84AA3D3F50E040007F01006E35-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -5796,12 +5830,12 @@
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <AD_ELEMENT_ID><![CDATA[187]]></AD_ELEMENT_ID>
-<!--A37C6F84AA3E3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--A37C6F84AA3E3F50E040007F01006E35-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A37C6F84AA3E3F50E040007F01006E35-->  <POSITION><![CDATA[36]]></POSITION>
+<!--A37C6F84AA3E3F50E040007F01006E35-->  <POSITION><![CDATA[37]]></POSITION>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A37C6F84AA3E3F50E040007F01006E35-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -5833,7 +5867,7 @@
 <!--A37C6F84AA3F3F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA3F3F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A37C6F84AA3F3F50E040007F01006E35-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A37C6F84AA3F3F50E040007F01006E35-->  <POSITION><![CDATA[37]]></POSITION>
+<!--A37C6F84AA3F3F50E040007F01006E35-->  <POSITION><![CDATA[40]]></POSITION>
 <!--A37C6F84AA3F3F50E040007F01006E35-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A37C6F84AA3F3F50E040007F01006E35-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A37C6F84AA3F3F50E040007F01006E35-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -5865,7 +5899,7 @@
 <!--A37C6F84AA403F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA403F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[DP]]></DEVELOPMENTSTATUS>
 <!--A37C6F84AA403F50E040007F01006E35-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A37C6F84AA403F50E040007F01006E35-->  <POSITION><![CDATA[38]]></POSITION>
+<!--A37C6F84AA403F50E040007F01006E35-->  <POSITION><![CDATA[41]]></POSITION>
 <!--A37C6F84AA403F50E040007F01006E35-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A37C6F84AA403F50E040007F01006E35-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A37C6F84AA403F50E040007F01006E35-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -5898,7 +5932,7 @@
 <!--A37C6F84AA413F50E040007F01006E35-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A37C6F84AA413F50E040007F01006E35-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A37C6F84AA413F50E040007F01006E35-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A37C6F84AA413F50E040007F01006E35-->  <POSITION><![CDATA[39]]></POSITION>
+<!--A37C6F84AA413F50E040007F01006E35-->  <POSITION><![CDATA[42]]></POSITION>
 <!--A37C6F84AA413F50E040007F01006E35-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A37C6F84AA413F50E040007F01006E35-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A37C6F84AA413F50E040007F01006E35-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -5933,7 +5967,7 @@
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A3A1CA451F85C5FBE040007F0100386C-->  <POSITION><![CDATA[40]]></POSITION>
+<!--A3A1CA451F85C5FBE040007F0100386C-->  <POSITION><![CDATA[43]]></POSITION>
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A3A1CA451F85C5FBE040007F0100386C-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
@@ -6241,6 +6275,41 @@
 <!--B01D6A5AF6F14FD6947BDEEF22C35CF8-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
 <!--B01D6A5AF6F14FD6947BDEEF22C35CF8--></AD_COLUMN>
 
+<!--B44BDBCFCEC243179D78A333FA0497A5--><AD_COLUMN>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_COLUMN_ID><![CDATA[B44BDBCFCEC243179D78A333FA0497A5]]></AD_COLUMN_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <NAME><![CDATA[Modify]]></NAME>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <DESCRIPTION><![CDATA[Modify existing transaction once created]]></DESCRIPTION>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <HELP><![CDATA[Process to modify transactions GL Item type once they have been created]]></HELP>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <COLUMNNAME><![CDATA[EM_APRM_Modify]]></COLUMNNAME>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_TABLE_ID><![CDATA[FF8080812FFEC82D012FFECCE3400030]]></AD_TABLE_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <SEQNO><![CDATA[410]]></SEQNO>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_ELEMENT_ID><![CDATA[91DD92021CFA438DBBF2ABAFCB2089C5]]></AD_ELEMENT_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <POSITION><![CDATA[34]]></POSITION>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <ISAUTOSAVE><![CDATA[N]]></ISAUTOSAVE>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--B44BDBCFCEC243179D78A333FA0497A5-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--B44BDBCFCEC243179D78A333FA0497A5--></AD_COLUMN>
+
 <!--B50241F11C4F404583CACB2A88CE875F--><AD_COLUMN>
 <!--B50241F11C4F404583CACB2A88CE875F-->  <AD_COLUMN_ID><![CDATA[B50241F11C4F404583CACB2A88CE875F]]></AD_COLUMN_ID>
 <!--B50241F11C4F404583CACB2A88CE875F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -6517,6 +6586,41 @@
 <!--BB2A987CBD534A18B91D77B7D43AF879-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
 <!--BB2A987CBD534A18B91D77B7D43AF879--></AD_COLUMN>
 
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8--><AD_COLUMN>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_COLUMN_ID><![CDATA[BBA3DB68DBD844B29F1EEC9A04F112E8]]></AD_COLUMN_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <NAME><![CDATA[Product]]></NAME>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <DESCRIPTION><![CDATA[An item produced by a process.]]></DESCRIPTION>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <HELP><![CDATA[Identifies an item which is either purchased or sold in this organization.]]></HELP>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <COLUMNNAME><![CDATA[M_Product_ID]]></COLUMNNAME>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_TABLE_ID><![CDATA[FF8080812FFEC82D012FFECCE3400030]]></AD_TABLE_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_REFERENCE_VALUE_ID><![CDATA[800060]]></AD_REFERENCE_VALUE_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <SEQNO><![CDATA[420]]></SEQNO>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_ELEMENT_ID><![CDATA[454]]></AD_ELEMENT_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <POSITION><![CDATA[38]]></POSITION>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--BBA3DB68DBD844B29F1EEC9A04F112E8--></AD_COLUMN>
+
 <!--BBE36F9268AD4E4D9F8BD3E152E7D3BA--><AD_COLUMN>
 <!--BBE36F9268AD4E4D9F8BD3E152E7D3BA-->  <AD_COLUMN_ID><![CDATA[BBE36F9268AD4E4D9F8BD3E152E7D3BA]]></AD_COLUMN_ID>
 <!--BBE36F9268AD4E4D9F8BD3E152E7D3BA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -6552,6 +6656,42 @@
 <!--BBE36F9268AD4E4D9F8BD3E152E7D3BA-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
 <!--BBE36F9268AD4E4D9F8BD3E152E7D3BA--></AD_COLUMN>
 
+<!--BC78354AB2F7403FA9725CDF267C0A70--><AD_COLUMN>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_COLUMN_ID><![CDATA[BC78354AB2F7403FA9725CDF267C0A70]]></AD_COLUMN_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <NAME><![CDATA[EM_APRM_Modify]]></NAME>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <DESCRIPTION><![CDATA[Modify existing transaction once created]]></DESCRIPTION>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <HELP><![CDATA[Process to modify transactions GL Item type once they have been created]]></HELP>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <COLUMNNAME><![CDATA[EM_APRM_Modify]]></COLUMNNAME>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_TABLE_ID><![CDATA[4D8C3B3C31D1410DA046140C9F024D17]]></AD_TABLE_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_REFERENCE_ID><![CDATA[28]]></AD_REFERENCE_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <SEQNO><![CDATA[380]]></SEQNO>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_ELEMENT_ID><![CDATA[91DD92021CFA438DBBF2ABAFCB2089C5]]></AD_ELEMENT_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <POSITION><![CDATA[38]]></POSITION>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <ISAUTOSAVE><![CDATA[N]]></ISAUTOSAVE>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--BC78354AB2F7403FA9725CDF267C0A70-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--BC78354AB2F7403FA9725CDF267C0A70--></AD_COLUMN>
+
 <!--BDFC6B326633430292F1C59CEF831534--><AD_COLUMN>
 <!--BDFC6B326633430292F1C59CEF831534-->  <AD_COLUMN_ID><![CDATA[BDFC6B326633430292F1C59CEF831534]]></AD_COLUMN_ID>
 <!--BDFC6B326633430292F1C59CEF831534-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -7225,7 +7365,7 @@
 <!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <POSITION><![CDATA[34]]></POSITION>
+<!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <POSITION><![CDATA[35]]></POSITION>
 <!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--FDE1E0795CDC4A00AC9D587E0D98D319-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -269,6 +269,19 @@
 <!--8BBA8342ED3C20FFE040007F01002E9B-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--8BBA8342ED3C20FFE040007F01002E9B--></AD_ELEMENT>
 
+<!--91DD92021CFA438DBBF2ABAFCB2089C5--><AD_ELEMENT>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <AD_ELEMENT_ID><![CDATA[91DD92021CFA438DBBF2ABAFCB2089C5]]></AD_ELEMENT_ID>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <COLUMNNAME><![CDATA[EM_APRM_Modify]]></COLUMNNAME>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <NAME><![CDATA[Modify]]></NAME>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <PRINTNAME><![CDATA[Modify]]></PRINTNAME>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <DESCRIPTION><![CDATA[Modify existing transaction once created]]></DESCRIPTION>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <HELP><![CDATA[Process to modify transactions GL Item type once they have been created]]></HELP>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--91DD92021CFA438DBBF2ABAFCB2089C5--></AD_ELEMENT>
+
 <!--A0417A0E924ACA28E040007F01003C18--><AD_ELEMENT>
 <!--A0417A0E924ACA28E040007F01003C18-->  <AD_ELEMENT_ID><![CDATA[A0417A0E924ACA28E040007F01003C18]]></AD_ELEMENT_ID>
 <!--A0417A0E924ACA28E040007F01003C18-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -6621,6 +6621,33 @@
 <!--8C679A6AD6294811B5936EE59035CE36-->  <ISSHOWNINSTATUSBAR><![CDATA[Y]]></ISSHOWNINSTATUSBAR>
 <!--8C679A6AD6294811B5936EE59035CE36--></AD_FIELD>
 
+<!--8C8A4128A9384B3087CCD1759C603A0B--><AD_FIELD>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <AD_FIELD_ID><![CDATA[8C8A4128A9384B3087CCD1759C603A0B]]></AD_FIELD_ID>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <NAME><![CDATA[Product]]></NAME>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <DESCRIPTION><![CDATA[An item produced by a process.]]></DESCRIPTION>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <HELP><![CDATA[Identifies an item which is either purchased or sold in this organization.]]></HELP>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <AD_TAB_ID><![CDATA[FF8080812F213146012F2135BC25000E]]></AD_TAB_ID>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <AD_COLUMN_ID><![CDATA[BBA3DB68DBD844B29F1EEC9A04F112E8]]></AD_COLUMN_ID>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <SEQNO><![CDATA[30]]></SEQNO>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--8C8A4128A9384B3087CCD1759C603A0B-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--8C8A4128A9384B3087CCD1759C603A0B--></AD_FIELD>
+
 <!--8DAAD5774E07425B8B4A46FA3E4A5294--><AD_FIELD>
 <!--8DAAD5774E07425B8B4A46FA3E4A5294-->  <AD_FIELD_ID><![CDATA[8DAAD5774E07425B8B4A46FA3E4A5294]]></AD_FIELD_ID>
 <!--8DAAD5774E07425B8B4A46FA3E4A5294-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -8741,6 +8768,34 @@
 <!--B4F0216426D344DFA60D793E6AB6AB0B-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
 <!--B4F0216426D344DFA60D793E6AB6AB0B--></AD_FIELD>
 
+<!--B70F752A7A85454CAE13D6525C2361EE--><AD_FIELD>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <AD_FIELD_ID><![CDATA[B70F752A7A85454CAE13D6525C2361EE]]></AD_FIELD_ID>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <NAME><![CDATA[Modify]]></NAME>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <DESCRIPTION><![CDATA[Process to modify transactions GL Item type once they have been created]]></DESCRIPTION>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <HELP><![CDATA[Process to modify transactions GL Item type once they have been created]]></HELP>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <AD_TAB_ID><![CDATA[FF8080812F213146012F2135BC25000E]]></AD_TAB_ID>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <AD_COLUMN_ID><![CDATA[B44BDBCFCEC243179D78A333FA0497A5]]></AD_COLUMN_ID>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <DISPLAYLOGIC><![CDATA[@C_GLITEM_ID@!'']]></DISPLAYLOGIC>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <SEQNO><![CDATA[30]]></SEQNO>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--B70F752A7A85454CAE13D6525C2361EE-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--B70F752A7A85454CAE13D6525C2361EE--></AD_FIELD>
+
 <!--B739AFFFB5CC4E1C847EB25ABE62A233--><AD_FIELD>
 <!--B739AFFFB5CC4E1C847EB25ABE62A233-->  <AD_FIELD_ID><![CDATA[B739AFFFB5CC4E1C847EB25ABE62A233]]></AD_FIELD_ID>
 <!--B739AFFFB5CC4E1C847EB25ABE62A233-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -9327,6 +9382,33 @@
 <!--CAAEE55F40DE45D49E2DB8EC95A4AC46-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
 <!--CAAEE55F40DE45D49E2DB8EC95A4AC46--></AD_FIELD>
 
+<!--CB9B7A7C9AB845E299BA3385935C33B5--><AD_FIELD>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <AD_FIELD_ID><![CDATA[CB9B7A7C9AB845E299BA3385935C33B5]]></AD_FIELD_ID>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <NAME><![CDATA[Sales Region]]></NAME>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <DESCRIPTION><![CDATA[A defined section of the world where sales efforts will be focused.]]></DESCRIPTION>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <HELP><![CDATA[The Sales Region indicates a specific area of sales coverage.]]></HELP>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <AD_TAB_ID><![CDATA[FF8080812F213146012F2135BC25000E]]></AD_TAB_ID>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <AD_COLUMN_ID><![CDATA[A13138E3D6E44C72A7F24B7AA9365B37]]></AD_COLUMN_ID>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <SEQNO><![CDATA[40]]></SEQNO>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <GRID_SEQNO><![CDATA[0]]></GRID_SEQNO>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--CB9B7A7C9AB845E299BA3385935C33B5-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--CB9B7A7C9AB845E299BA3385935C33B5--></AD_FIELD>
+
 <!--CCEF625BE5004940A3FC98E1E4EE8CAC--><AD_FIELD>
 <!--CCEF625BE5004940A3FC98E1E4EE8CAC-->  <AD_FIELD_ID><![CDATA[CCEF625BE5004940A3FC98E1E4EE8CAC]]></AD_FIELD_ID>
 <!--CCEF625BE5004940A3FC98E1E4EE8CAC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -108,6 +108,18 @@
 <!--A7A562CD91CB42D9977E12B098CBC9EC-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
 <!--A7A562CD91CB42D9977E12B098CBC9EC--></AD_MODEL_OBJECT>
 
+<!--AA1C0D6D318943808A75A24F5781AEBF--><AD_MODEL_OBJECT>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <AD_MODEL_OBJECT_ID><![CDATA[AA1C0D6D318943808A75A24F5781AEBF]]></AD_MODEL_OBJECT_ID>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <ACTION><![CDATA[P]]></ACTION>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <CLASSNAME><![CDATA[org.openbravo.advpaymentmngt.process.FIN_TransactionModify]]></CLASSNAME>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--AA1C0D6D318943808A75A24F5781AEBF-->  <OBJECT_TYPE><![CDATA[S]]></OBJECT_TYPE>
+<!--AA1C0D6D318943808A75A24F5781AEBF--></AD_MODEL_OBJECT>
+
 <!--B18447439CAB419395BDA44287722832--><AD_MODEL_OBJECT>
 <!--B18447439CAB419395BDA44287722832-->  <AD_MODEL_OBJECT_ID><![CDATA[B18447439CAB419395BDA44287722832]]></AD_MODEL_OBJECT_ID>
 <!--B18447439CAB419395BDA44287722832-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -19,6 +19,26 @@
 <!--12016E2EDE0245B5A36B84CBA144DBDF-->  <UIPATTERN><![CDATA[M]]></UIPATTERN>
 <!--12016E2EDE0245B5A36B84CBA144DBDF--></AD_PROCESS>
 
+<!--15C8708DFC464C2D91286E59624FDD18--><AD_PROCESS>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <VALUE><![CDATA[APRM_TransactionModify]]></VALUE>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <NAME><![CDATA[Modify]]></NAME>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <DESCRIPTION><![CDATA[Process to modify transactions GL Item type once they have been created]]></DESCRIPTION>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <HELP><![CDATA[Process to modify transactions GL Item type once they have been created]]></HELP>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <ISEXTERNALSERVICE><![CDATA[N]]></ISEXTERNALSERVICE>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--15C8708DFC464C2D91286E59624FDD18-->  <UIPATTERN><![CDATA[S]]></UIPATTERN>
+<!--15C8708DFC464C2D91286E59624FDD18--></AD_PROCESS>
+
 <!--2EED9BC16DB34D2B80BA40A21564BECF--><AD_PROCESS>
 <!--2EED9BC16DB34D2B80BA40A21564BECF-->  <AD_PROCESS_ID><![CDATA[2EED9BC16DB34D2B80BA40A21564BECF]]></AD_PROCESS_ID>
 <!--2EED9BC16DB34D2B80BA40A21564BECF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml	Wed Nov 02 12:26:47 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS_PARA.xml	Wed Nov 02 20:16:39 2011 +0100
@@ -1,5 +1,68 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--1913962D2952412B84B8CDD3BC17026F--><AD_PROCESS_PARA>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_PROCESS_PARA_ID><![CDATA[1913962D2952412B84B8CDD3BC17026F]]></AD_PROCESS_PARA_ID>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <NAME><![CDATA[Product]]></NAME>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <DESCRIPTION><![CDATA[An item produced by a process.]]></DESCRIPTION>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <HELP><![CDATA[Identifies an item which is either purchased or sold in this organization.]]></HELP>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_REFERENCE_VALUE_ID><![CDATA[800011]]></AD_REFERENCE_VALUE_ID>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <COLUMNNAME><![CDATA[M_Product_ID]]></COLUMNNAME>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <FIELDLENGTH><![CDATA[10]]></FIELDLENGTH>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <DEFAULTVALUE><![CDATA[@M_Product_ID@]]></DEFAULTVALUE>
+<!--1913962D2952412B84B8CDD3BC17026F-->  <AD_ELEMENT_ID><![CDATA[454]]></AD_ELEMENT_ID>
+<!--1913962D2952412B84B8CDD3BC17026F--></AD_PROCESS_PARA>
+
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5--><AD_PROCESS_PARA>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_PROCESS_PARA_ID><![CDATA[4F5EE1017087464EAD95F3CCA4C5AFA5]]></AD_PROCESS_PARA_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <NAME><![CDATA[Project]]></NAME>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <DESCRIPTION><![CDATA[Identifier of a project defined within the Project & Service Management module.]]></DESCRIPTION>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <HELP><![CDATA[Identifier of a project defined within the Project & Service Management module.]]></HELP>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <SEQNO><![CDATA[40]]></SEQNO>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_REFERENCE_VALUE_ID><![CDATA[800061]]></AD_REFERENCE_VALUE_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <COLUMNNAME><![CDATA[C_Project_ID]]></COLUMNNAME>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <FIELDLENGTH><![CDATA[10]]></FIELDLENGTH>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <DEFAULTVALUE><![CDATA[@C_Project_ID@]]></DEFAULTVALUE>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5-->  <AD_ELEMENT_ID><![CDATA[208]]></AD_ELEMENT_ID>
+<!--4F5EE1017087464EAD95F3CCA4C5AFA5--></AD_PROCESS_PARA>
+
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8--><AD_PROCESS_PARA>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_PROCESS_PARA_ID><![CDATA[6EEE4A4DB1BA476BA7929EC7FCF285F8]]></AD_PROCESS_PARA_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <NAME><![CDATA[Business Partner]]></NAME>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <DESCRIPTION><![CDATA[Anyone who takes part in daily business operations by acting as a customer, employee, etc.]]></DESCRIPTION>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <HELP><![CDATA[A Business Partner is anyone with whom you transact.  This can include a customer, vendor, employee or any combination of these.]]></HELP>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <SEQNO><![CDATA[30]]></SEQNO>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_REFERENCE_VALUE_ID><![CDATA[800057]]></AD_REFERENCE_VALUE_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <COLUMNNAME><![CDATA[C_BPartner_ID]]></COLUMNNAME>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <FIELDLENGTH><![CDATA[10]]></FIELDLENGTH>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <DEFAULTVALUE><![CDATA[@C_Bpartner_ID@]]></DEFAULTVALUE>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8-->  <AD_ELEMENT_ID><![CDATA[187]]></AD_ELEMENT_ID>
+<!--6EEE4A4DB1BA476BA7929EC7FCF285F8--></AD_PROCESS_PARA>
+
 <!--800BEB6BDA99409194CADF23988D7B6D--><AD_PROCESS_PARA>
 <!--800BEB6BDA99409194CADF23988D7B6D-->  <AD_PROCESS_PARA_ID><![CDATA[800BEB6BDA99409194CADF23988D7B6D]]></AD_PROCESS_PARA_ID>
 <!--800BEB6BDA99409194CADF23988D7B6D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -43,6 +106,86 @@
 <!--8A8E1C0D38F144D797698E48F464F97B-->  <AD_ELEMENT_ID><![CDATA[152]]></AD_ELEMENT_ID>
 <!--8A8E1C0D38F144D797698E48F464F97B--></AD_PROCESS_PARA>
 
+<!--8BEBA07E78124B2B92B764D9B452B209--><AD_PROCESS_PARA>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <AD_PROCESS_PARA_ID><![CDATA[8BEBA07E78124B2B92B764D9B452B209]]></AD_PROCESS_PARA_ID>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <NAME><![CDATA[G/L Item]]></NAME>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <DESCRIPTION><![CDATA[An alias for the Account Combination which can be commonly used in daily operations.]]></DESCRIPTION>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <HELP><![CDATA[General ledger item.]]></HELP>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <COLUMNNAME><![CDATA[C_GLItem_ID]]></COLUMNNAME>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <FIELDLENGTH><![CDATA[10]]></FIELDLENGTH>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <DEFAULTVALUE><![CDATA[@C_GLItem_ID@]]></DEFAULTVALUE>
+<!--8BEBA07E78124B2B92B764D9B452B209-->  <AD_ELEMENT_ID><![CDATA[800080]]></AD_ELEMENT_ID>
+<!--8BEBA07E78124B2B92B764D9B452B209--></AD_PROCESS_PARA>
+
+<!--9728F9CADE45497E9F583A76B7DE3BE6--><AD_PROCESS_PARA>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <AD_PROCESS_PARA_ID><![CDATA[9728F9CADE45497E9F583A76B7DE3BE6]]></AD_PROCESS_PARA_ID>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <NAME><![CDATA[Sales Campaign]]></NAME>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <DESCRIPTION><![CDATA[An advertising effort aimed at increasing sales.]]></DESCRIPTION>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <HELP><![CDATA[The Campaign defines a unique marketing program.  Projects can be associated with a pre defined Marketing Campaign.  You can then report based on a specific Campaign.]]></HELP>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <SEQNO><![CDATA[50]]></SEQNO>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <COLUMNNAME><![CDATA[C_Campaign_ID]]></COLUMNNAME>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <FIELDLENGTH><![CDATA[10]]></FIELDLENGTH>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <DEFAULTVALUE><![CDATA[@C_Campaign_ID@]]></DEFAULTVALUE>
+<!--9728F9CADE45497E9F583A76B7DE3BE6-->  <AD_ELEMENT_ID><![CDATA[550]]></AD_ELEMENT_ID>
+<!--9728F9CADE45497E9F583A76B7DE3BE6--></AD_PROCESS_PARA>
+
+<!--A7B47A5637A74910ADC70CD66E6C6A29--><AD_PROCESS_PARA>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <AD_PROCESS_PARA_ID><![CDATA[A7B47A5637A74910ADC70CD66E6C6A29]]></AD_PROCESS_PARA_ID>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <NAME><![CDATA[Sales Region]]></NAME>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <DESCRIPTION><![CDATA[A defined section of the world where sales efforts will be focused.]]></DESCRIPTION>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <HELP><![CDATA[The Sales Region indicates a specific area of sales coverage.]]></HELP>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <SEQNO><![CDATA[70]]></SEQNO>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <COLUMNNAME><![CDATA[C_SalesRegion_ID]]></COLUMNNAME>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <DEFAULTVALUE><![CDATA[@C_Salesregion_ID@]]></DEFAULTVALUE>
+<!--A7B47A5637A74910ADC70CD66E6C6A29-->  <AD_ELEMENT_ID><![CDATA[210]]></AD_ELEMENT_ID>
+<!--A7B47A5637A74910ADC70CD66E6C6A29--></AD_PROCESS_PARA>
+
+<!--E2EB0EFA3CE741C1848590D270CEBE2B--><AD_PROCESS_PARA>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <AD_PROCESS_PARA_ID><![CDATA[E2EB0EFA3CE741C1848590D270CEBE2B]]></AD_PROCESS_PARA_ID>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <NAME><![CDATA[Activity]]></NAME>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <DESCRIPTION><![CDATA[A distinct activity defined and used in activity based management.]]></DESCRIPTION>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <HELP><![CDATA[Activities indicate tasks that are performed and used to utilize Activity based Costing]]></HELP>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <AD_PROCESS_ID><![CDATA[15C8708DFC464C2D91286E59624FDD18]]></AD_PROCESS_ID>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <SEQNO><![CDATA[60]]></SEQNO>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <COLUMNNAME><![CDATA[C_Activity_ID]]></COLUMNNAME>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <ISRANGE><![CDATA[N]]></ISRANGE>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <DEFAULTVALUE><![CDATA[@C_Activity_ID@]]></DEFAULTVALUE>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B-->  <AD_ELEMENT_ID><![CDATA[1005]]></AD_ELEMENT_ID>
+<!--E2EB0EFA3CE741C1848590D270CEBE2B--></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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionModify.java	Wed Nov 02 20:16:39 2011 +0100
@@ -0,0 +1,232 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ *************************************************************************
+ */
+package org.openbravo.advpaymentmngt.process;
+
+import java.util.List;
+
+import org.hibernate.criterion.Restrictions;
+import org.openbravo.advpaymentmngt.dao.AdvPaymentMngtDao;
+import org.openbravo.advpaymentmngt.utility.FIN_Utility;
+import org.openbravo.dal.core.OBContext;
+import org.openbravo.dal.service.OBCriteria;
+import org.openbravo.dal.service.OBDal;
+import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.Utility;
+import org.openbravo.model.common.businesspartner.BusinessPartner;
+import org.openbravo.model.common.plm.Product;
+import org.openbravo.model.financialmgmt.accounting.FIN_FinancialAccountAccounting;
+import org.openbravo.model.financialmgmt.gl.GLItem;
+import org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction;
+import org.openbravo.model.financialmgmt.payment.FIN_Payment;
+import org.openbravo.model.financialmgmt.payment.FinAccPaymentMethod;
+import org.openbravo.model.marketing.Campaign;
+import org.openbravo.model.materialmgmt.cost.ABCActivity;
+import org.openbravo.model.project.Project;
+import org.openbravo.model.sales.SalesRegion;
+import org.openbravo.scheduling.ProcessBundle;
+
+public class FIN_TransactionModify implements org.openbravo.scheduling.Process {
+  private static AdvPaymentMngtDao dao;
+
+  public void execute(ProcessBundle bundle) throws Exception {
+    dao = new AdvPaymentMngtDao();
+    OBError msg = new OBError();
+    msg.setType("Success");
+    msg.setTitle(Utility.messageBD(bundle.getConnection(), "Success", bundle.getContext()
+        .getLanguage()));
+
+    OBContext.setAdminMode();
+    try {
+      String recordID = (String) bundle.getParams().get("FIN_Finacc_Transaction_ID");
+      if (recordID == null || "".equals(recordID)) {
+        recordID = (String) bundle.getParams().get("Aprm_Finacc_Transaction_V_ID");
+      }
+      final FIN_FinaccTransaction transaction = dao
+          .getObject(FIN_FinaccTransaction.class, recordID);
+      // Checks
+      if ("Y".equals(transaction.getPosted()) && isTransactionPostingEnabled(transaction)) {
+        msg.setType("Error");
+        msg.setTitle(Utility.messageBD(bundle.getConnection(), "Error", bundle.getContext()
+            .getLanguage()));
+        msg.setMessage(Utility.parseTranslation(bundle.getConnection(), bundle.getContext()
+            .toVars(), bundle.getContext().getLanguage(), "@PostedDocument@"));
+        bundle.setResult(msg);
+        return;
+      }
+
+      if (transaction.getReconciliation() != null
+          && "Y".equals(transaction.getReconciliation().getPosted())
+          && !isTransactionPostingEnabled(transaction)) {
+        msg.setType("Error");
+        msg.setTitle(Utility.messageBD(bundle.getConnection(), "Error", bundle.getContext()
+            .getLanguage()));
+        msg.setMessage(Utility.parseTranslation(bundle.getConnection(), bundle.getContext()
+            .toVars(), bundle.getContext().getLanguage(), "@APRM_RelatedPostedDocument@"));
+        bundle.setResult(msg);
+        return;
+      }
+      GLItem oldGLItem = transaction.getGLItem();
+      GLItem newGLItem = oldGLItem;
+      final String strGLItemId = (String) bundle.getParams().get("cGlitemId");
+      final String strProductId = (String) bundle.getParams().get("mProductId");
+      final String strBPartnerId = (String) bundle.getParams().get("cBpartnerId");
+      final String strProjectId = (String) bundle.getParams().get("cProjectId");
+      final String strCampaignId = (String) bundle.getParams().get("cCampaignId");
+      final String strActivityId = (String) bundle.getParams().get("cActivityId");
+      final String strSalesRegionId = (String) bundle.getParams().get("cSalesregionId");
+      transaction.setProcessed(false);
+      OBDal.getInstance().save(transaction);
+      OBDal.getInstance().flush();
+      if (strGLItemId != null && !"".equals(strGLItemId)) {
+        newGLItem = OBDal.getInstance().get(GLItem.class, strGLItemId);
+        transaction.setGLItem(OBDal.getInstance().get(GLItem.class, strGLItemId));
+      } else {
+        transaction.setGLItem(null);
+      }
+      if (strProductId != null && !"".equals(strProductId)) {
+        transaction.setProduct(OBDal.getInstance().get(Product.class, strProductId));
+      } else {
+        transaction.setProduct(null);
+      }
+      if (strBPartnerId != null && !"".equals(strBPartnerId)) {
+        transaction.setBusinessPartner(OBDal.getInstance()
+            .get(BusinessPartner.class, strBPartnerId));
+      } else {
+        transaction.setBusinessPartner(null);
+      }
+      if (strProjectId != null && !"".equals(strProjectId)) {
+        transaction.setProject(OBDal.getInstance().get(Project.class, strProjectId));
+      } else {
+        transaction.setProject(null);
+      }
+      if (strCampaignId != null && !"".equals(strCampaignId)) {
+        transaction.setSalesCampaign(OBDal.getInstance().get(Campaign.class, strCampaignId));
+      } else {
+        transaction.setSalesCampaign(null);
+      }
+      if (strActivityId != null && !"".equals(strActivityId)) {
+        transaction.setActivity(OBDal.getInstance().get(ABCActivity.class, strActivityId));
+      } else {
+        transaction.setActivity(null);
+      }
+      if (strSalesRegionId != null && !"".equals(strSalesRegionId)) {
+        transaction.setSalesRegion(OBDal.getInstance().get(SalesRegion.class, strSalesRegionId));
+      } else {
+        transaction.setSalesRegion(null);
+      }
+      String description = transaction.getDescription();
+      String oldGlItemString = Utility.messageBD(bundle.getConnection(), "APRM_GLItem", bundle
+          .getContext().toVars().getLanguage())
+          + ": " + oldGLItem.getName();
+      String newGlItemString = Utility.messageBD(bundle.getConnection(), "APRM_GLItem", bundle
+          .getContext().toVars().getLanguage())
+          + ": " + newGLItem.getName();
+      if (!description.isEmpty()) {
+        description = description.indexOf(oldGlItemString) != -1 ? description.substring(0,
+            description.indexOf(oldGlItemString))
+            + description.substring(
+                oldGlItemString.length() + description.indexOf(oldGlItemString),
+                description.length()) : description;
+      }
+      description = description.isEmpty() ? newGlItemString : description + "\n" + newGlItemString;
+      transaction.setDescription(description);
+      transaction.setProcessed(true);
+      OBDal.getInstance().save(transaction);
+      OBDal.getInstance().flush();
+      bundle.setResult(msg);
+    } catch (final Exception e) {
+      OBDal.getInstance().rollbackAndClose();
+      e.printStackTrace(System.err);
+      msg.setType("Error");
+      msg.setTitle(Utility.messageBD(bundle.getConnection(), "Error", bundle.getContext()
+          .getLanguage()));
+      msg.setMessage(FIN_Utility.getExceptionMessage(e));
+      bundle.setResult(msg);
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+  }
+
+  private boolean isTransactionPostingEnabled(FIN_FinaccTransaction transaction) {
+    boolean confirmation = false;
+    OBContext.setAdminMode();
+    final String TRXTYPE_BPDeposit = "BPD";
+    final String TRXTYPE_BPWithdrawal = "BPW";
+    final String TRXTYPE_BankFee = "BF";
+    try {
+      List<FIN_FinancialAccountAccounting> accounts = transaction.getAccount()
+          .getFINFinancialAccountAcctList();
+      FIN_Payment payment = transaction.getFinPayment();
+      if (payment != null) {
+        OBCriteria<FinAccPaymentMethod> obCriteria = OBDal.getInstance().createCriteria(
+            FinAccPaymentMethod.class);
+        obCriteria.add(Restrictions.eq(FinAccPaymentMethod.PROPERTY_ACCOUNT, payment.getAccount()));
+        obCriteria.add(Restrictions.eq(FinAccPaymentMethod.PROPERTY_PAYMENTMETHOD,
+            payment.getPaymentMethod()));
+        obCriteria.setFilterOnReadableClients(false);
+        obCriteria.setFilterOnReadableOrganization(false);
+        List<FinAccPaymentMethod> lines = obCriteria.list();
+        for (FIN_FinancialAccountAccounting account : accounts) {
+          if (confirmation)
+            return confirmation;
+          if (payment.isReceipt()) {
+            if (("INT").equals(lines.get(0).getUponDepositUse())
+                && account.getInTransitPaymentAccountIN() != null)
+              confirmation = true;
+            else if (("DEP").equals(lines.get(0).getUponDepositUse())
+                && account.getDepositAccount() != null)
+              confirmation = true;
+            else if (("CLE").equals(lines.get(0).getUponDepositUse())
+                && account.getClearedPaymentAccount() != null)
+              confirmation = true;
+          } else {
+            if (("INT").equals(lines.get(0).getUponWithdrawalUse())
+                && account.getFINOutIntransitAcct() != null)
+              confirmation = true;
+            else if (("WIT").equals(lines.get(0).getUponWithdrawalUse())
+                && account.getWithdrawalAccount() != null)
+              confirmation = true;
+            else if (("CLE").equals(lines.get(0).getUponWithdrawalUse())
+                && account.getClearedPaymentAccountOUT() != null)
+              confirmation = true;
+          }
+        }
+      } else {
+        for (FIN_FinancialAccountAccounting account : accounts) {
+          if (confirmation)
+            return confirmation;
+          if ((TRXTYPE_BPDeposit.equals(transaction.getTransactionType()) && account
+              .getDepositAccount() != null)
+              || (TRXTYPE_BPWithdrawal.equals(transaction.getTransactionType()) && account
+                  .getWithdrawalAccount() != null)
+              || (TRXTYPE_BankFee.equals(transaction.getTransactionType()) && account
+                  .getWithdrawalAccount() != null))
+            confirmation = true;
+        }
+      }
+    } catch (Exception e) {
+      return confirmation;
+    } finally {
+      OBContext.restorePreviousMode();
+    }
+    return confirmation;
+
+  }
+
+}