Fixed bug 17897: Accounting dimensions in gl items
authorVíctor Martínez Romanos <victor.martinez@openbravo.com>
Wed, 20 Jul 2011 11:11:01 +0200
changeset 13220 d3a2e61ebc11
parent 13219 76afff77c9ed
child 13221 4d3fe44c4e87
Fixed bug 17897: Accounting dimensions in gl items

Added Accounting Dimensions fields inside the Financial Account | Add transaction window
when GL Item is selected.
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TEXTINTERFACES.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.html
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.java
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
src-db/database/model/tables/FIN_FINACC_TRANSACTION.xml
src-db/database/sourcedata/AD_COLUMN.xml
src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -4041,7 +4041,7 @@
 <!--A028C06E679F6F62E040007F01007206-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
 <!--A028C06E679F6F62E040007F01007206-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--A028C06E679F6F62E040007F01007206-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
-<!--A028C06E679F6F62E040007F01007206-->  <POSITION><![CDATA[31]]></POSITION>
+<!--A028C06E679F6F62E040007F01007206-->  <POSITION><![CDATA[37]]></POSITION>
 <!--A028C06E679F6F62E040007F01007206-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
 <!--A028C06E679F6F62E040007F01007206-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
 <!--A028C06E679F6F62E040007F01007206-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REFERENCE.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -148,4 +148,64 @@
 <!--FF808181312414380131241C5A41001F-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--FF808181312414380131241C5A41001F--></AD_REFERENCE>
 
+<!--FF808181312D569C01312D846CC40032--><AD_REFERENCE>
+<!--FF808181312D569C01312D846CC40032-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D846CC40032]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D846CC40032-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D846CC40032-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D846CC40032-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D846CC40032-->  <NAME><![CDATA[Activity selector]]></NAME>
+<!--FF808181312D569C01312D846CC40032-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D846CC40032-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--FF808181312D569C01312D846CC40032-->  <PARENTREFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></PARENTREFERENCE_ID>
+<!--FF808181312D569C01312D846CC40032-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--FF808181312D569C01312D846CC40032--></AD_REFERENCE>
+
+<!--FF808181312D569C01312D8C837E003C--><AD_REFERENCE>
+<!--FF808181312D569C01312D8C837E003C-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D8C837E003C]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D8C837E003C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D8C837E003C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D8C837E003C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D8C837E003C-->  <NAME><![CDATA[Campaign selector]]></NAME>
+<!--FF808181312D569C01312D8C837E003C-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D8C837E003C-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--FF808181312D569C01312D8C837E003C-->  <PARENTREFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></PARENTREFERENCE_ID>
+<!--FF808181312D569C01312D8C837E003C-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--FF808181312D569C01312D8C837E003C--></AD_REFERENCE>
+
+<!--FF808181312D569C01312D8E60800051--><AD_REFERENCE>
+<!--FF808181312D569C01312D8E60800051-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D8E60800051]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D8E60800051-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D8E60800051-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D8E60800051-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D8E60800051-->  <NAME><![CDATA[Sales region selector]]></NAME>
+<!--FF808181312D569C01312D8E60800051-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D8E60800051-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--FF808181312D569C01312D8E60800051-->  <PARENTREFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></PARENTREFERENCE_ID>
+<!--FF808181312D569C01312D8E60800051-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--FF808181312D569C01312D8E60800051--></AD_REFERENCE>
+
+<!--FF808181312D569C01312D8FA681005A--><AD_REFERENCE>
+<!--FF808181312D569C01312D8FA681005A-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D8FA681005A]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D8FA681005A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D8FA681005A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D8FA681005A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D8FA681005A-->  <NAME><![CDATA[Project Selector]]></NAME>
+<!--FF808181312D569C01312D8FA681005A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D8FA681005A-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--FF808181312D569C01312D8FA681005A-->  <PARENTREFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></PARENTREFERENCE_ID>
+<!--FF808181312D569C01312D8FA681005A-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--FF808181312D569C01312D8FA681005A--></AD_REFERENCE>
+
+<!--FF808181312DA8D801312DDDAA750008--><AD_REFERENCE>
+<!--FF808181312DA8D801312DDDAA750008-->  <AD_REFERENCE_ID><![CDATA[FF808181312DA8D801312DDDAA750008]]></AD_REFERENCE_ID>
+<!--FF808181312DA8D801312DDDAA750008-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312DA8D801312DDDAA750008-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312DA8D801312DDDAA750008-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312DA8D801312DDDAA750008-->  <NAME><![CDATA[Product selector]]></NAME>
+<!--FF808181312DA8D801312DDDAA750008-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312DA8D801312DDDAA750008-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--FF808181312DA8D801312DDDAA750008-->  <PARENTREFERENCE_ID><![CDATA[95E2A8B50A254B2AAE6774B8C2F28120]]></PARENTREFERENCE_ID>
+<!--FF808181312DA8D801312DDDAA750008-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--FF808181312DA8D801312DDDAA750008--></AD_REFERENCE>
+
 </data>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -2508,6 +2508,17 @@
 <!--C85BFAE3A8FD481699F6C5F7F28540CF-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--C85BFAE3A8FD481699F6C5F7F28540CF--></AD_TEXTINTERFACES>
 
+<!--CA4B60EB983146229DBD2AFC9135E6D1--><AD_TEXTINTERFACES>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <AD_TEXTINTERFACES_ID><![CDATA[CA4B60EB983146229DBD2AFC9135E6D1]]></AD_TEXTINTERFACES_ID>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <TEXT><![CDATA[Accounting Dimensions]]></TEXT>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <FILENAME><![CDATA[/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.html]]></FILENAME>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <ISUSED><![CDATA[Y]]></ISUSED>
+<!--CA4B60EB983146229DBD2AFC9135E6D1-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--CA4B60EB983146229DBD2AFC9135E6D1--></AD_TEXTINTERFACES>
+
 <!--CB1E94F8B2914BEF88FF72433F962F5A--><AD_TEXTINTERFACES>
 <!--CB1E94F8B2914BEF88FF72433F962F5A-->  <AD_TEXTINTERFACES_ID><![CDATA[CB1E94F8B2914BEF88FF72433F962F5A]]></AD_TEXTINTERFACES_ID>
 <!--CB1E94F8B2914BEF88FF72433F962F5A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -52,4 +52,84 @@
 <!--A98899B1C75A4F4EBD3414F1B654EFAB-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
 <!--A98899B1C75A4F4EBD3414F1B654EFAB--></OBUISEL_SELECTOR>
 
+<!--FF808181312D569C01312D8C1EC40036--><OBUISEL_SELECTOR>
+<!--FF808181312D569C01312D8C1EC40036-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8C1EC40036]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <NAME><![CDATA[Activity selector]]></NAME>
+<!--FF808181312D569C01312D8C1EC40036-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D846CC40032]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <AD_TABLE_ID><![CDATA[316]]></AD_TABLE_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <AD_COLUMN_ID><![CDATA[3457]]></AD_COLUMN_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
+<!--FF808181312D569C01312D8C1EC40036-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D8C1EC40036-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D8C1EC40036-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D8C1EC40036-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--FF808181312D569C01312D8C1EC40036--></OBUISEL_SELECTOR>
+
+<!--FF808181312D569C01312D8DCCD50045--><OBUISEL_SELECTOR>
+<!--FF808181312D569C01312D8DCCD50045-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8DCCD50045]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <NAME><![CDATA[Campaign selector]]></NAME>
+<!--FF808181312D569C01312D8DCCD50045-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D8C837E003C]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <AD_TABLE_ID><![CDATA[274]]></AD_TABLE_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <AD_COLUMN_ID><![CDATA[2570]]></AD_COLUMN_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
+<!--FF808181312D569C01312D8DCCD50045-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D8DCCD50045-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D8DCCD50045-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D8DCCD50045-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--FF808181312D569C01312D8DCCD50045--></OBUISEL_SELECTOR>
+
+<!--FF808181312D569C01312D8EE5430054--><OBUISEL_SELECTOR>
+<!--FF808181312D569C01312D8EE5430054-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8EE5430054]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <NAME><![CDATA[Sales region selector]]></NAME>
+<!--FF808181312D569C01312D8EE5430054-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D8E60800051]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <AD_TABLE_ID><![CDATA[230]]></AD_TABLE_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <AD_COLUMN_ID><![CDATA[1823]]></AD_COLUMN_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
+<!--FF808181312D569C01312D8EE5430054-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D8EE5430054-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D8EE5430054-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D8EE5430054-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--FF808181312D569C01312D8EE5430054--></OBUISEL_SELECTOR>
+
+<!--FF808181312D569C01312D90408D005D--><OBUISEL_SELECTOR>
+<!--FF808181312D569C01312D90408D005D-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D90408D005D]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312D569C01312D90408D005D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312D569C01312D90408D005D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312D569C01312D90408D005D-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312D569C01312D90408D005D-->  <NAME><![CDATA[Project Selector]]></NAME>
+<!--FF808181312D569C01312D90408D005D-->  <AD_REFERENCE_ID><![CDATA[FF808181312D569C01312D8FA681005A]]></AD_REFERENCE_ID>
+<!--FF808181312D569C01312D90408D005D-->  <AD_TABLE_ID><![CDATA[203]]></AD_TABLE_ID>
+<!--FF808181312D569C01312D90408D005D-->  <AD_COLUMN_ID><![CDATA[1349]]></AD_COLUMN_ID>
+<!--FF808181312D569C01312D90408D005D-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
+<!--FF808181312D569C01312D90408D005D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312D569C01312D90408D005D-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D90408D005D-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--FF808181312D569C01312D90408D005D-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--FF808181312D569C01312D90408D005D--></OBUISEL_SELECTOR>
+
+<!--FF808181312DA8D801312DDE869B000C--><OBUISEL_SELECTOR>
+<!--FF808181312DA8D801312DDE869B000C-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312DA8D801312DDE869B000C]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <NAME><![CDATA[Product selector]]></NAME>
+<!--FF808181312DA8D801312DDE869B000C-->  <AD_REFERENCE_ID><![CDATA[FF808181312DA8D801312DDDAA750008]]></AD_REFERENCE_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <AD_TABLE_ID><![CDATA[208]]></AD_TABLE_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <AD_COLUMN_ID><![CDATA[1402]]></AD_COLUMN_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
+<!--FF808181312DA8D801312DDE869B000C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312DA8D801312DDE869B000C-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--FF808181312DA8D801312DDE869B000C-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--FF808181312DA8D801312DDE869B000C-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--FF808181312DA8D801312DDE869B000C--></OBUISEL_SELECTOR>
+
 </data>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -287,4 +287,234 @@
 <!--C5CFD3978631444EB97539BCEE3D5239-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
 <!--C5CFD3978631444EB97539BCEE3D5239--></OBUISEL_SELECTOR_FIELD>
 
+<!--FF808181312DEEAE01312DFAFE910022--><OBUISEL_SELECTOR_FIELD>
+<!--FF808181312DEEAE01312DFAFE910022-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF808181312DEEAE01312DFAFE910022]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312DA8D801312DDE869B000C]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <AD_COLUMN_ID><![CDATA[1410]]></AD_COLUMN_ID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <NAME><![CDATA[Name]]></NAME>
+<!--FF808181312DEEAE01312DFAFE910022-->  <DESCRIPTION><![CDATA[A non-unique identifier for a record/document often used as a search tool.]]></DESCRIPTION>
+<!--FF808181312DEEAE01312DFAFE910022-->  <HELP><![CDATA[A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.]]></HELP>
+<!--FF808181312DEEAE01312DFAFE910022-->  <PROPERTY><![CDATA[name]]></PROPERTY>
+<!--FF808181312DEEAE01312DFAFE910022-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF808181312DEEAE01312DFAFE910022-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF808181312DEEAE01312DFAFE910022-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF808181312DEEAE01312DFAFE910022-->  <SEARCHINSUGGESTIONBOX><![CDATA[Y]]></SEARCHINSUGGESTIONBOX>
+<!--FF808181312DEEAE01312DFAFE910022-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF808181312DEEAE01312DFAFE910022-->  <SORTNO><![CDATA[20]]></SORTNO>
+<!--FF808181312DEEAE01312DFAFE910022-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312DEEAE01312DFAFE910022-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF808181312DEEAE01312DFAFE910022-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF808181312DEEAE01312DFAFE910022--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF808181312DEEAE01312DFC9E08002D--><OBUISEL_SELECTOR_FIELD>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF808181312DEEAE01312DFC9E08002D]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312DA8D801312DDE869B000C]]></OBUISEL_SELECTOR_ID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <AD_COLUMN_ID><![CDATA[2011]]></AD_COLUMN_ID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <NAME><![CDATA[Search Key]]></NAME>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <DESCRIPTION><![CDATA[A fast method for finding a particular record.]]></DESCRIPTION>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <HELP><![CDATA[A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the  "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).
+
+Usually, company's internal identifiers for various records (products, customers, etc) are stored here.]]></HELP>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <PROPERTY><![CDATA[searchKey]]></PROPERTY>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <SORTNO><![CDATA[10]]></SORTNO>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF808181312DEEAE01312DFC9E08002D-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF808181312DEEAE01312DFC9E08002D--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141D8F08B001C--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141D8F08B001C-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141D8F08B001C]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8C1EC40036]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <AD_COLUMN_ID><![CDATA[3465]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <NAME><![CDATA[Name]]></NAME>
+<!--FF8081813141AEB3013141D8F08B001C-->  <DESCRIPTION><![CDATA[A non-unique identifier for a record/document often used as a search tool.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141D8F08B001C-->  <HELP><![CDATA[A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.]]></HELP>
+<!--FF8081813141AEB3013141D8F08B001C-->  <PROPERTY><![CDATA[name]]></PROPERTY>
+<!--FF8081813141AEB3013141D8F08B001C-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141D8F08B001C-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141D8F08B001C-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141D8F08B001C-->  <SEARCHINSUGGESTIONBOX><![CDATA[Y]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141D8F08B001C-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141D8F08B001C-->  <SORTNO><![CDATA[20]]></SORTNO>
+<!--FF8081813141AEB3013141D8F08B001C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141D8F08B001C-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141D8F08B001C-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141D8F08B001C--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141D970060020--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141D970060020-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141D970060020]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141D970060020-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8C1EC40036]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141D970060020-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141D970060020-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141D970060020-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141D970060020-->  <AD_COLUMN_ID><![CDATA[5345]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141D970060020-->  <NAME><![CDATA[Search Key]]></NAME>
+<!--FF8081813141AEB3013141D970060020-->  <DESCRIPTION><![CDATA[A fast method for finding a particular record.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141D970060020-->  <HELP><![CDATA[A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the  "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).
+
+Usually, company's internal identifiers for various records (products, customers, etc) are stored here.]]></HELP>
+<!--FF8081813141AEB3013141D970060020-->  <PROPERTY><![CDATA[searchKey]]></PROPERTY>
+<!--FF8081813141AEB3013141D970060020-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141D970060020-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141D970060020-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141D970060020-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141D970060020-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141D970060020-->  <SORTNO><![CDATA[10]]></SORTNO>
+<!--FF8081813141AEB3013141D970060020-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141D970060020-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141D970060020-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141D970060020--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141DA5178002B--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141DA5178002B-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141DA5178002B]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141DA5178002B-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8DCCD50045]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141DA5178002B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141DA5178002B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141DA5178002B-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141DA5178002B-->  <AD_COLUMN_ID><![CDATA[2693]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141DA5178002B-->  <NAME><![CDATA[Search Key]]></NAME>
+<!--FF8081813141AEB3013141DA5178002B-->  <DESCRIPTION><![CDATA[A fast method for finding a particular record.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141DA5178002B-->  <HELP><![CDATA[A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the  "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).
+
+Usually, company's internal identifiers for various records (products, customers, etc) are stored here.]]></HELP>
+<!--FF8081813141AEB3013141DA5178002B-->  <PROPERTY><![CDATA[searchKey]]></PROPERTY>
+<!--FF8081813141AEB3013141DA5178002B-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141DA5178002B-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141DA5178002B-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141DA5178002B-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141DA5178002B-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141DA5178002B-->  <SORTNO><![CDATA[10]]></SORTNO>
+<!--FF8081813141AEB3013141DA5178002B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141DA5178002B-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141DA5178002B-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141DA5178002B--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141DA9043002F--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141DA9043002F-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141DA9043002F]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141DA9043002F-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8DCCD50045]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141DA9043002F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141DA9043002F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141DA9043002F-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141DA9043002F-->  <AD_COLUMN_ID><![CDATA[2578]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141DA9043002F-->  <NAME><![CDATA[Name]]></NAME>
+<!--FF8081813141AEB3013141DA9043002F-->  <DESCRIPTION><![CDATA[A non-unique identifier for a record/document often used as a search tool.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141DA9043002F-->  <HELP><![CDATA[A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.]]></HELP>
+<!--FF8081813141AEB3013141DA9043002F-->  <PROPERTY><![CDATA[name]]></PROPERTY>
+<!--FF8081813141AEB3013141DA9043002F-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141DA9043002F-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141DA9043002F-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141DA9043002F-->  <SEARCHINSUGGESTIONBOX><![CDATA[Y]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141DA9043002F-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141DA9043002F-->  <SORTNO><![CDATA[20]]></SORTNO>
+<!--FF8081813141AEB3013141DA9043002F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141DA9043002F-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141DA9043002F-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141DA9043002F--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141DC5D8E0043--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141DC5D8E0043]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D90408D005D]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <AD_COLUMN_ID><![CDATA[2010]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <NAME><![CDATA[Search Key]]></NAME>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <DESCRIPTION><![CDATA[A fast method for finding a particular record.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <HELP><![CDATA[A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the  "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).
+
+Usually, company's internal identifiers for various records (products, customers, etc) are stored here.]]></HELP>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <PROPERTY><![CDATA[searchKey]]></PROPERTY>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <SORTNO><![CDATA[10]]></SORTNO>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141DC5D8E0043-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141DC5D8E0043--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141DC997B0047--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141DC997B0047-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141DC997B0047]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141DC997B0047-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D90408D005D]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141DC997B0047-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141DC997B0047-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141DC997B0047-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141DC997B0047-->  <AD_COLUMN_ID><![CDATA[1356]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141DC997B0047-->  <NAME><![CDATA[Name]]></NAME>
+<!--FF8081813141AEB3013141DC997B0047-->  <DESCRIPTION><![CDATA[A non-unique identifier for a record/document often used as a search tool.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141DC997B0047-->  <HELP><![CDATA[A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.]]></HELP>
+<!--FF8081813141AEB3013141DC997B0047-->  <PROPERTY><![CDATA[name]]></PROPERTY>
+<!--FF8081813141AEB3013141DC997B0047-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141DC997B0047-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141DC997B0047-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141DC997B0047-->  <SEARCHINSUGGESTIONBOX><![CDATA[Y]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141DC997B0047-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141DC997B0047-->  <SORTNO><![CDATA[20]]></SORTNO>
+<!--FF8081813141AEB3013141DC997B0047-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141DC997B0047-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141DC997B0047-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141DC997B0047--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141DCFC09004D--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141DCFC09004D-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141DCFC09004D]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8EE5430054]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <AD_COLUMN_ID><![CDATA[2023]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <NAME><![CDATA[Search Key]]></NAME>
+<!--FF8081813141AEB3013141DCFC09004D-->  <DESCRIPTION><![CDATA[A fast method for finding a particular record.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141DCFC09004D-->  <HELP><![CDATA[A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the  "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).
+
+Usually, company's internal identifiers for various records (products, customers, etc) are stored here.]]></HELP>
+<!--FF8081813141AEB3013141DCFC09004D-->  <PROPERTY><![CDATA[searchKey]]></PROPERTY>
+<!--FF8081813141AEB3013141DCFC09004D-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141DCFC09004D-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141DCFC09004D-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141DCFC09004D-->  <SEARCHINSUGGESTIONBOX><![CDATA[N]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141DCFC09004D-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141DCFC09004D-->  <SORTNO><![CDATA[10]]></SORTNO>
+<!--FF8081813141AEB3013141DCFC09004D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141DCFC09004D-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141DCFC09004D-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141DCFC09004D--></OBUISEL_SELECTOR_FIELD>
+
+<!--FF8081813141AEB3013141DD2D210054--><OBUISEL_SELECTOR_FIELD>
+<!--FF8081813141AEB3013141DD2D210054-->  <OBUISEL_SELECTOR_FIELD_ID><![CDATA[FF8081813141AEB3013141DD2D210054]]></OBUISEL_SELECTOR_FIELD_ID>
+<!--FF8081813141AEB3013141DD2D210054-->  <OBUISEL_SELECTOR_ID><![CDATA[FF808181312D569C01312D8EE5430054]]></OBUISEL_SELECTOR_ID>
+<!--FF8081813141AEB3013141DD2D210054-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF8081813141AEB3013141DD2D210054-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF8081813141AEB3013141DD2D210054-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--FF8081813141AEB3013141DD2D210054-->  <AD_COLUMN_ID><![CDATA[1831]]></AD_COLUMN_ID>
+<!--FF8081813141AEB3013141DD2D210054-->  <NAME><![CDATA[Name]]></NAME>
+<!--FF8081813141AEB3013141DD2D210054-->  <DESCRIPTION><![CDATA[A non-unique identifier for a record/document often used as a search tool.]]></DESCRIPTION>
+<!--FF8081813141AEB3013141DD2D210054-->  <HELP><![CDATA[A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.]]></HELP>
+<!--FF8081813141AEB3013141DD2D210054-->  <PROPERTY><![CDATA[name]]></PROPERTY>
+<!--FF8081813141AEB3013141DD2D210054-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--FF8081813141AEB3013141DD2D210054-->  <SORT><![CDATA[Y]]></SORT>
+<!--FF8081813141AEB3013141DD2D210054-->  <FILTER><![CDATA[Y]]></FILTER>
+<!--FF8081813141AEB3013141DD2D210054-->  <SEARCHINSUGGESTIONBOX><![CDATA[Y]]></SEARCHINSUGGESTIONBOX>
+<!--FF8081813141AEB3013141DD2D210054-->  <SHOWINGRID><![CDATA[Y]]></SHOWINGRID>
+<!--FF8081813141AEB3013141DD2D210054-->  <SORTNO><![CDATA[20]]></SORTNO>
+<!--FF8081813141AEB3013141DD2D210054-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF8081813141AEB3013141DD2D210054-->  <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
+<!--FF8081813141AEB3013141DD2D210054-->  <SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
+<!--FF8081813141AEB3013141DD2D210054--></OBUISEL_SELECTOR_FIELD>
+
 </data>
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.html	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.html	Wed Jul 20 11:11:01 2011 +0200
@@ -131,6 +131,7 @@
     displayLogicElement('GLItemSection3', false);
     displayLogicElement('PaymentSection', true);
     displayLogicElement('client_middle', true);
+    autoDisplayLogicDimensions(false);
     loadGrid();
   } else if (opt == 'GL') {
     displayLogicElement('FeeSection1', false);
@@ -140,6 +141,7 @@
     displayLogicElement('GLItemSection3', true);
     displayLogicElement('PaymentSection', false);
     displayLogicElement('client_middle', false);
+    autoDisplayLogicDimensions(true);
   } else if (opt == 'F') {
     displayLogicElement('FeeSection1', true);
     displayLogicElement('FeeSection2', true);
@@ -148,10 +150,66 @@
     displayLogicElement('GLItemSection3', false);
     displayLogicElement('PaymentSection', false);
     displayLogicElement('client_middle', false);
+    autoDisplayLogicDimensions(false);
   }
   return true;
 }
 
+
+function autoDisplayLogicDimensions(isDisplayed) {
+  var displayTitle = false;
+  if (document.frmMain.strElement_BP.value === 'Y' && isDisplayed) {
+    displayLogicDimension('c_bpartner_id', true);
+    displayTitle = true;
+  } else {
+    displayLogicDimension('c_bpartner_id', false);
+  }  
+  if (document.frmMain.strElement_AC.value === 'Y' && isDisplayed) {
+    displayLogicDimension('c_activity_id', true);
+    displayTitle = true;
+  } else {
+    displayLogicDimension('c_activity_id', false);
+  }
+  
+  if (document.frmMain.strElement_PR.value === 'Y' && isDisplayed) {
+    displayLogicDimension('m_product_id', true);
+    displayTitle = true;
+  } else {
+    displayLogicDimension('m_product_id', false);
+  }
+  if (document.frmMain.strElement_MC.value === 'Y' && isDisplayed) {
+    displayLogicDimension('c_campaign_id', true);
+    displayTitle = true;
+  } else {
+    displayLogicDimension('c_campaign_id', false);
+  }
+  
+  if (document.frmMain.strElement_PJ.value === 'Y' && isDisplayed) {
+    displayLogicDimension('c_project_id', true);
+    displayTitle = true;
+  } else {
+    displayLogicDimension('c_project_id', false);
+  }
+  if (document.frmMain.strElement_SR.value === 'Y' && isDisplayed) {
+    displayLogicDimension('c_salesregion_id', true);
+    displayTitle = true;
+  } else {
+    displayLogicDimension('c_salesregion_id', false);
+  }
+  
+  if (displayTitle) {
+    displayLogicElement('acctDimensionsTitle', true);
+  } else {
+    displayLogicElement('acctDimensionsTitle', false);
+  }
+}
+
+
+function displayLogicDimension(dimension, isDisplayed) {
+  displayLogicElement(dimension + '_dim_label', isDisplayed);
+  displayLogicElement(dimension + '_dim_inp', isDisplayed);
+}
+
 function closeThisPage() {
   closePage();
 }
@@ -261,6 +319,13 @@
   <input type="hidden" name="inpFinBankStatementLineId" value="" id="fieldFinBankStatementLineId"></input>
   <input type="hidden" name="buttonRefresh" value="" id="buttonRefresh" onclick="loadGrid();return true;"></input>
   <input type="hidden" name="isReceipt" value="dummyField" id="fieldReceipt"/>
+  <input type="hidden" name="strElement_BP" id="paramStrElement_BP" value=""/>
+  <input type="hidden" name="strElement_PR" id="paramStrElement_PR" value=""/>
+  <input type="hidden" name="strElement_PJ" id="paramStrElement_PJ" value=""/>
+  <input type="hidden" name="strElement_AC" id="paramStrElement_AC" value=""/>
+  <input type="hidden" name="strElement_SR" id="paramStrElement_SR" value=""/>
+  <input type="hidden" name="strElement_MC" id="paramStrElement_MC" value=""/>
+  
   <div class="Popup_ContentPane_CircleLogo">
     <div class="Popup_WindowLogo">
       <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
@@ -752,6 +817,109 @@
               </td>
             </tr>
             
+            <tr id="acctDimensionsTitle">
+              <td colspan="6">
+                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
+                <tbody>
+                  <tr class="FieldGroup_TopMargin"/>
+                  <tr>
+                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
+                    <td class="FieldGroupTitle">Accounting Dimensions</td>
+                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
+                    <td class="FieldGroupContent"/>
+                  </tr>
+                  <tr class="FieldGroup_BottomMargin"/>
+                </tbody>
+                </table>
+              </td>
+            </tr>
+            <tr id="GLItemSection1_Dim">
+              <!-- Business Partner Dimension -->
+              <td id="c_bpartner_id_dim_label" class="TitleCell"><span class="LabelText">Business Partner</span></td>
+              <td id="c_bpartner_id_dim_inp" class="TextBox_ContentCell" colspan="2">
+                <table style="border:0px;border-collapse:collapse;">
+                  <tr>
+                    <td style="padding-top: 0px;">
+                      <script>var sc_C_BPartner_ID = null;</script>
+                      <input type="hidden" name="inpCBPartnerId" id="C_BPartner_ID" value="" onreset="sc_C_BPartner_ID.resetSelector();" onchange="openbravo.Utilities.updateSmartClientComponentValue(this, sc_C_BPartner_ID.selectorField);"></input>
+                      <script id="selectorLink" src="../org.openbravo.client.kernel/OBUISEL_Selector/A98899B1C75A4F4EBD3414F1B654EFAB?columnName=C_BPartner_ID&disabled=false&CssSize=TwoCells&DisplayLength=45.0&required=false"></script>
+                    </td>
+                  </tr>
+                </table>
+              </td>
+              <!-- Activity Dimension -->
+              <td id="c_activity_id_dim_label" class="TitleCell"><span class="LabelText">Activity</span></td>
+              <td id="c_activity_id_dim_inp" class="TextBox_ContentCell" colspan="1">
+                <table style="border:0px;border-collapse:collapse;">
+                  <tr>
+                    <td style="padding-top: 0px;">
+                      <script>var sc_C_Activity_ID = null;</script>
+                      <input type="hidden" name="inpCActivityId" id="C_Activity_ID" value="" onreset="sc_C_Activity_ID.resetSelector();" onchange="openbravo.Utilities.updateSmartClientComponentValue(this, sc_C_Activity_ID.selectorField);"></input>
+                      <script id="selectorLink" src="../org.openbravo.client.kernel/OBUISEL_Selector/FF808181312D569C01312D8C1EC40036?columnName=C_Activity_ID&disabled=false&CssSize=TwoCells&DisplayLength=45.0&required=false"></script>
+                    </td>
+                  </tr>
+                </table>
+              </td>             
+              <td class="TitleCell"></td>
+            </tr>
+            <tr id="GLItemSection2_Dim">
+              <!-- Product Dimension -->
+              <td id="m_product_id_dim_label" class="TitleCell"><span class="LabelText">Product</span></td>
+              <td id="m_product_id_dim_inp" class="TextBox_ContentCell" colspan="2">
+                <table style="border:0px;border-collapse:collapse;">
+                  <tr>
+                    <td style="padding-top: 0px;">
+                      <script>var sc_M_Product_ID = null;</script>
+                      <input type="hidden" name="inpMProductId" id="M_Product_ID" value="" onreset="sc_M_Product_ID.resetSelector();" onchange="openbravo.Utilities.updateSmartClientComponentValue(this, sc_M_Product_ID.selectorField);"></input>
+                      <script id="selectorLink" src="../org.openbravo.client.kernel/OBUISEL_Selector/FF808181312DA8D801312DDE869B000C?columnName=M_Product_ID&disabled=false&CssSize=TwoCells&DisplayLength=45.0&required=false"></script>
+                    </td>
+                  </tr>
+                </table>
+              </td>
+              <!-- Campaign Dimension -->
+              <td id="c_campaign_id_dim_label" class="TitleCell"><span class="LabelText">Campaign</span></td>
+              <td id="c_campaign_id_dim_inp" class="TextBox_ContentCell" colspan="1">
+                <table style="border:0px;border-collapse:collapse;">
+                  <tr>
+                    <td style="padding-top: 0px;">
+                      <script>var sc_C_Campaign_ID = null;</script>
+                      <input type="hidden" name="inpCampaignId" id="C_Campaign_ID" value="" onreset="sc_C_Campaign_ID.resetSelector();" onchange="openbravo.Utilities.updateSmartClientComponentValue(this, sc_C_Campaign_ID.selectorField);"></input>
+                      <script id="selectorLink" src="../org.openbravo.client.kernel/OBUISEL_Selector/FF808181312D569C01312D8DCCD50045?columnName=C_Campaign_ID&disabled=false&CssSize=TwoCells&DisplayLength=45.0&required=false"></script>
+                    </td>
+                  </tr>
+                </table>
+              </td>
+              <td class="TitleCell"></td>
+            </tr>
+            <tr id="GLItemSection3_Dim">
+              <!-- Project Dimension -->
+              <td id="c_project_id_dim_label" class="TitleCell"><span class="LabelText">Project</span></td>
+              <td id="c_project_id_dim_inp" class="TextBox_ContentCell" colspan="2">
+                <table style="border:0px;border-collapse:collapse;">
+                  <tr>
+                    <td style="padding-top: 0px;">
+                      <script>var sc_C_Project_ID = null;</script>
+                      <input type="hidden" name="inpCProjectId" id="C_Project_ID" value="" onreset="sc_C_Project_ID.resetSelector();" onchange="openbravo.Utilities.updateSmartClientComponentValue(this, sc_C_Project_ID.selectorField);"></input>
+                      <script id="selectorLink" src="../org.openbravo.client.kernel/OBUISEL_Selector/FF808181312D569C01312D90408D005D?columnName=C_Project_ID&disabled=false&CssSize=TwoCells&DisplayLength=45.0&required=false"></script>
+                    </td>
+                  </tr>
+                </table>
+              </td>
+              <!-- Sales Region Dimension -->
+              <td id="c_salesregion_id_dim_label" class="TitleCell"><span class="LabelText">Sales Region</span></td>
+              <td id="c_salesregion_id_dim_inp" class="TextBox_ContentCell" colspan="1">
+                <table style="border:0px;border-collapse:collapse;">
+                  <tr>
+                    <td style="padding-top: 0px;">
+                      <script>var sc_C_Salesregion_ID = null;</script>
+                      <input type="hidden" name="inpCSalesRegionId" id="C_SalesRegion_ID" value="" onreset="sc_C_SalesRegion_ID.resetSelector();" onchange="openbravo.Utilities.updateSmartClientComponentValue(this, sc_C_SalesRegion_ID.selectorField);"></input>
+                      <script id="selectorLink" src="../org.openbravo.client.kernel/OBUISEL_Selector/FF808181312D569C01312D8EE5430054?columnName=C_SalesRegion_ID&disabled=false&CssSize=TwoCells&DisplayLength=45.0&required=false"></script>
+                    </td>
+                  </tr>
+                </table>
+              </td>
+              <td class="TitleCell"></td>
+            </tr>                
             <!-- Payment Section START-->
             <tr id="PaymentSection">
               <td class="TitleCell"><span class="LabelText">Document</span></td>
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.java	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.java	Wed Jul 20 11:11:01 2011 +0200
@@ -50,12 +50,18 @@
 import org.openbravo.erpCommon.utility.FieldProviderFactory;
 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.gl.GLItem;
 import org.openbravo.model.financialmgmt.payment.FIN_BankStatementLine;
 import org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction;
 import org.openbravo.model.financialmgmt.payment.FIN_FinancialAccount;
 import org.openbravo.model.financialmgmt.payment.FIN_Payment;
 import org.openbravo.model.financialmgmt.payment.FIN_Reconciliation;
+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.xmlEngine.XmlDocument;
 
 public class AddTransaction extends HttpSecureAppServlet {
@@ -167,6 +173,27 @@
         }
 
       } else if (strTransactionType.equals("GL")) { // GL Item
+        // Accounting Dimensions
+        final String strElement_BP = vars.getStringParameter("inpCBPartnerId", IsIDFilter.instance);
+        final BusinessPartner businessPartner = OBDal.getInstance().get(BusinessPartner.class,
+            strElement_BP);
+
+        final String strElement_PR = vars.getStringParameter("inpMProductId", IsIDFilter.instance);
+        final Product product = OBDal.getInstance().get(Product.class, strElement_PR);
+
+        final String strElement_PJ = vars.getStringParameter("inpCProjectId", IsIDFilter.instance);
+        final Project project = OBDal.getInstance().get(Project.class, strElement_PJ);
+
+        final String strElement_AC = vars.getStringParameter("inpCActivityId", IsIDFilter.instance);
+        final ABCActivity activity = OBDal.getInstance().get(ABCActivity.class, strElement_AC);
+
+        final String strElement_SR = vars.getStringParameter("inpCSalesRegionId",
+            IsIDFilter.instance);
+        final SalesRegion salesRegion = OBDal.getInstance().get(SalesRegion.class, strElement_SR);
+
+        final String strElement_MC = vars.getStringParameter("inpCampaignId", IsIDFilter.instance);
+        final Campaign campaign = OBDal.getInstance().get(Campaign.class, strElement_MC);
+
         BigDecimal glItemDepositAmt = new BigDecimal(strGLItemDepositAmount);
         BigDecimal glItemPaymentAmt = new BigDecimal(strGLItemPaymentAmount);
 
@@ -181,8 +208,9 @@
         FIN_FinaccTransaction finTrans = dao.getNewFinancialTransaction(account.getOrganization(),
             account, TransactionsDao.getTransactionMaxLineNo(account) + 10, null, description,
             FIN_Utility.getDate(strTransactionDate), glItem, isReceipt ? "RDNC" : "PWNC",
-            glItemDepositAmt, glItemPaymentAmt, null, null, null, isReceipt ? "BPD" : "BPW",
-            FIN_Utility.getDate(strTransactionDate), null, null, null);
+            glItemDepositAmt, glItemPaymentAmt, project, campaign, activity, isReceipt ? "BPD"
+                : "BPW", FIN_Utility.getDate(strTransactionDate), null, null, null,
+            businessPartner, product, salesRegion);
 
         TransactionsDao.process(finTrans);
         strMessage = "1 " + "@RowsInserted@";
@@ -282,6 +310,20 @@
       xmlDocument.setParameter("paymentAmountGLItem", BigDecimal.ZERO.toString());
     }
 
+    // Accounting Dimensions
+    final String strElement_BP = Utility.getContext(this, vars, "$Element_BP", strWindowId);
+    final String strElement_PR = Utility.getContext(this, vars, "$Element_PR", strWindowId);
+    final String strElement_PJ = Utility.getContext(this, vars, "$Element_PJ", strWindowId);
+    final String strElement_AC = Utility.getContext(this, vars, "$Element_AC", strWindowId);
+    final String strElement_SR = Utility.getContext(this, vars, "$Element_SR", strWindowId);
+    final String strElement_MC = Utility.getContext(this, vars, "$Element_MC", strWindowId);
+    xmlDocument.setParameter("strElement_BP", strElement_BP);
+    xmlDocument.setParameter("strElement_PR", strElement_PR);
+    xmlDocument.setParameter("strElement_PJ", strElement_PJ);
+    xmlDocument.setParameter("strElement_AC", strElement_AC);
+    xmlDocument.setParameter("strElement_SR", strElement_SR);
+    xmlDocument.setParameter("strElement_MC", strElement_MC);
+
     response.setContentType("text/html; charset=UTF-8");
     PrintWriter out = response.getWriter();
     out.println(xmlDocument.print());
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -45,6 +45,14 @@
     <PARAMETER id="fieldFinFinancialAccountId" name="finFinancialAccountId" attribute="value"/>
     <PARAMETER id="fieldFinBankStatementLineId" name="finBankStatementLineId" attribute="value"/>
     
+    <!-- Accounting Dimensions -->
+    <PARAMETER id="paramStrElement_BP" name="strElement_BP" attribute="value"/>
+    <PARAMETER id="paramStrElement_PR" name="strElement_PR" attribute="value"/>
+    <PARAMETER id="paramStrElement_PJ" name="strElement_PJ" attribute="value"/>
+    <PARAMETER id="paramStrElement_AC" name="strElement_AC" attribute="value"/>
+    <PARAMETER id="paramStrElement_SR" name="strElement_SR" attribute="value"/>
+    <PARAMETER id="paramStrElement_MC" name="strElement_MC" attribute="value"/>    
+    
     <!-- Document Type -->
     <PARAMETER id="paramDocument" name="document"/>
     
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java	Wed Jul 20 10:33:57 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java	Wed Jul 20 11:11:01 2011 +0200
@@ -56,6 +56,7 @@
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.model.common.invoice.Invoice;
 import org.openbravo.model.common.order.Order;
+import org.openbravo.model.common.plm.Product;
 import org.openbravo.model.financialmgmt.gl.GLItem;
 import org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction;
 import org.openbravo.model.financialmgmt.payment.FIN_FinancialAccount;
@@ -77,6 +78,7 @@
 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;
 
 public class AdvPaymentMngtDao {
 
@@ -574,6 +576,27 @@
     return finTrans;
   }
 
+  public FIN_FinaccTransaction getNewFinancialTransaction(Organization organization,
+      FIN_FinancialAccount account, Long line, FIN_Payment payment, String description,
+      Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount,
+      BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity,
+      String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate,
+      BigDecimal sourceAmount, BusinessPartner businessPartner, Product product,
+      SalesRegion salesRegion) {
+    final FIN_FinaccTransaction finTrans = getNewFinancialTransaction(organization, account, line,
+        payment, description, accountingDate, glItem, status, depositAmount, paymentAmount,
+        project, campaing, activity, transactionType, statementDate, paymentCurrency, convertRate,
+        sourceAmount);
+    finTrans.setBusinessPartner(businessPartner);
+    finTrans.setProduct(product);
+    finTrans.setSalesRegion(salesRegion);
+
+    OBDal.getInstance().save(finTrans);
+    OBDal.getInstance().flush();
+
+    return finTrans;
+  }
+
   public FIN_Reconciliation getNewReconciliation(Organization org, FIN_FinancialAccount account,
       String documentNo, DocumentType docType, Date dateTo, Date statementDate,
       BigDecimal startingBalance, BigDecimal endingBalance, String docStatus) {
--- a/src-db/database/model/tables/FIN_FINACC_TRANSACTION.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/src-db/database/model/tables/FIN_FINACC_TRANSACTION.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -133,6 +133,18 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="C_SALESREGION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <foreign-key foreignTable="AD_CLIENT" name="FIN_AD_CLIENT_TRANSACTION">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
@@ -148,12 +160,21 @@
       <foreign-key foreignTable="C_ACTIVITY" name="FIN_FINACC_TRANS_ACTIVITY">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BPARTNER" name="FIN_FINACC_TRANS_C_BPARTNER">
+        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_SALESREGION" name="FIN_FINACC_TRANS_C_SALESREGION">
+        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_CAMPAIGN" name="FIN_FINACC_TRANS_CAMPAIGN">
         <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
       </foreign-key>
       <foreign-key foreignTable="FIN_RECONCILIATION" name="FIN_FINACC_TRANS_FIN_RECONCILE">
         <reference local="FIN_RECONCILIATION_ID" foreign="FIN_RECONCILIATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_PRODUCT" name="FIN_FINACC_TRANS_M_PRODUCT">
+        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_PROJECT" name="FIN_FINACC_TRANS_PROJECT">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Wed Jul 20 10:33:57 2011 +0200
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Wed Jul 20 11:11:01 2011 +0200
@@ -211833,6 +211833,40 @@
 <!--4F6FBAF242EE43B98923BAC82AB94165-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
 <!--4F6FBAF242EE43B98923BAC82AB94165--></AD_COLUMN>
 
+<!--50C572BF5B0E46319FC8F32201A8408E--><AD_COLUMN>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_COLUMN_ID><![CDATA[50C572BF5B0E46319FC8F32201A8408E]]></AD_COLUMN_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <NAME><![CDATA[Business Partner]]></NAME>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <DESCRIPTION><![CDATA[Anyone who takes part in daily business operations by acting as a customer, employee, etc.]]></DESCRIPTION>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <HELP><![CDATA[A Business Partner is anyone with whom you transact.  This can include a customer, vendor, employee or any combination of these.]]></HELP>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <COLUMNNAME><![CDATA[C_Bpartner_ID]]></COLUMNNAME>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_TABLE_ID><![CDATA[4D8C3B3C31D1410DA046140C9F024D17]]></AD_TABLE_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_REFERENCE_VALUE_ID><![CDATA[800057]]></AD_REFERENCE_VALUE_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <SEQNO><![CDATA[350]]></SEQNO>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_ELEMENT_ID><![CDATA[187]]></AD_ELEMENT_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <POSITION><![CDATA[34]]></POSITION>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--50C572BF5B0E46319FC8F32201A8408E-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--50C572BF5B0E46319FC8F32201A8408E--></AD_COLUMN>
+
 <!--51459B51FC494A6D90DF9D9CE5A89653--><AD_COLUMN>
 <!--51459B51FC494A6D90DF9D9CE5A89653-->  <AD_COLUMN_ID><![CDATA[51459B51FC494A6D90DF9D9CE5A89653]]></AD_COLUMN_ID>
 <!--51459B51FC494A6D90DF9D9CE5A89653-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -211901,6 +211935,40 @@
 <!--515A9DFD91C243D3BECAA9D0149063C4-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
 <!--515A9DFD91C243D3BECAA9D0149063C4--></AD_COLUMN>
 
+<!--5170629668EC427DBABD5D9A6B2C15DA--><AD_COLUMN>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_COLUMN_ID><![CDATA[5170629668EC427DBABD5D9A6B2C15DA]]></AD_COLUMN_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <NAME><![CDATA[Product]]></NAME>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <DESCRIPTION><![CDATA[An item produced by a process.]]></DESCRIPTION>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <HELP><![CDATA[Identifies an item which is either purchased or sold in this organization.]]></HELP>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <COLUMNNAME><![CDATA[M_Product_ID]]></COLUMNNAME>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_TABLE_ID><![CDATA[4D8C3B3C31D1410DA046140C9F024D17]]></AD_TABLE_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_REFERENCE_ID><![CDATA[30]]></AD_REFERENCE_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_REFERENCE_VALUE_ID><![CDATA[800060]]></AD_REFERENCE_VALUE_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <SEQNO><![CDATA[360]]></SEQNO>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_ELEMENT_ID><![CDATA[454]]></AD_ELEMENT_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <POSITION><![CDATA[35]]></POSITION>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--5170629668EC427DBABD5D9A6B2C15DA-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--5170629668EC427DBABD5D9A6B2C15DA--></AD_COLUMN>
+
 <!--521EA21E6E7577ABE040007F010016C0--><AD_COLUMN>
 <!--521EA21E6E7577ABE040007F010016C0-->  <AD_COLUMN_ID><![CDATA[521EA21E6E7577ABE040007F010016C0]]></AD_COLUMN_ID>
 <!--521EA21E6E7577ABE040007F010016C0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -236279,6 +236347,39 @@
 <!--7C4AEC0BF04F4588A2D26D46E1EE0E7B-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
 <!--7C4AEC0BF04F4588A2D26D46E1EE0E7B--></AD_COLUMN>
 
+<!--7DBD795B18BA4B6589BAADF480BD0440--><AD_COLUMN>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_COLUMN_ID><![CDATA[7DBD795B18BA4B6589BAADF480BD0440]]></AD_COLUMN_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <NAME><![CDATA[Sales Region]]></NAME>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <DESCRIPTION><![CDATA[A defined section of the world where sales efforts will be focused.]]></DESCRIPTION>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <HELP><![CDATA[The Sales Region indicates a specific area of sales coverage.]]></HELP>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <COLUMNNAME><![CDATA[C_Salesregion_ID]]></COLUMNNAME>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_TABLE_ID><![CDATA[4D8C3B3C31D1410DA046140C9F024D17]]></AD_TABLE_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_REFERENCE_ID><![CDATA[19]]></AD_REFERENCE_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <SEQNO><![CDATA[370]]></SEQNO>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_ELEMENT_ID><![CDATA[210]]></AD_ELEMENT_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <POSITION><![CDATA[36]]></POSITION>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--7DBD795B18BA4B6589BAADF480BD0440-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--7DBD795B18BA4B6589BAADF480BD0440--></AD_COLUMN>
+
 <!--7DC33C4275593636E040007F01001C0B--><AD_COLUMN>
 <!--7DC33C4275593636E040007F01001C0B-->  <AD_COLUMN_ID><![CDATA[7DC33C4275593636E040007F01001C0B]]></AD_COLUMN_ID>
 <!--7DC33C4275593636E040007F01001C0B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java	Wed Jul 20 10:33:57 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java	Wed Jul 20 11:11:01 2011 +0200
@@ -870,16 +870,26 @@
           transaction.getProject() != null ? transaction.getProject().getId() : "");
       FieldProviderFactory.setField(data[0], "C_Campaign_ID",
           transaction.getSalesCampaign() != null ? transaction.getSalesCampaign().getId() : "");
+      FieldProviderFactory.setField(data[0], "M_Product_ID",
+          transaction.getProduct() != null ? transaction.getProduct().getId() : "");
+      FieldProviderFactory.setField(data[0], "C_SalesRegion_ID",
+          transaction.getSalesRegion() != null ? transaction.getSalesRegion().getId() : "");
       FieldProviderFactory.setField(data[0], "lineno", transaction.getLineNo().toString());
       // This lines can be uncommented when User1 and User2 are implemented
       // FieldProviderFactory.setField(data[0], "User1_ID", transaction.getNdDimension().getId());
       // FieldProviderFactory.setField(data[0], "User2_ID", transaction.getNdDimension().getId());
       FieldProviderFactory.setField(data[0], "FIN_Payment_ID",
           transaction.getFinPayment() != null ? transaction.getFinPayment().getId() : "");
-      FieldProviderFactory
-          .setField(data[0], "C_BPartner_ID", (transaction.getFinPayment() != null && transaction
-              .getFinPayment().getBusinessPartner() != null) ? transaction.getFinPayment()
-              .getBusinessPartner().getId() : "");
+      final String cBPartnerId;
+      if (transaction.getFinPayment() != null
+          && transaction.getFinPayment().getBusinessPartner() != null) {
+        cBPartnerId = transaction.getFinPayment().getBusinessPartner().getId();
+      } else if (transaction.getBusinessPartner() != null) {
+        cBPartnerId = transaction.getBusinessPartner().getId();
+      } else {
+        cBPartnerId = "";
+      }
+      FieldProviderFactory.setField(data[0], "C_BPartner_ID", cBPartnerId);
       FieldProviderFactory.setField(data[0], "UsedCredit",
           transaction.getFinPayment() != null ? transaction.getFinPayment().getUsedCredit()
               .toString() : "");