[aprm-windows]Move available actions validation to selector definition.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 06 Jun 2014 14:38:51 +0200
changeset 23733 04693382ee50
parent 23732 c28107d81e43
child 23734 70ff7a564896
[aprm-windows]Move available actions validation to selector definition.
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Fri Jun 06 14:38:21 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Fri Jun 06 14:38:51 2014 +0200
@@ -190,6 +190,7 @@
 <!--1D16F7BDCDD04F3A9AD259E84811AA41-->  <OBUIAPP_PROCESS_ID><![CDATA[9BED7889E1034FE68BD85D5D16857320]]></OBUIAPP_PROCESS_ID>
 <!--1D16F7BDCDD04F3A9AD259E84811AA41-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
 <!--1D16F7BDCDD04F3A9AD259E84811AA41-->  <READONLYLOGIC><![CDATA[@fin_payment_id@!undefined & @fin_paymend_id@!null]]></READONLYLOGIC>
+<!--1D16F7BDCDD04F3A9AD259E84811AA41-->  <ONCHANGEFUNCTION><![CDATA[OB.APRM.AddPayment.financialAccountOnChange]]></ONCHANGEFUNCTION>
 <!--1D16F7BDCDD04F3A9AD259E84811AA41-->  <DISPLAYEDROWS><![CDATA[5]]></DISPLAYEDROWS>
 <!--1D16F7BDCDD04F3A9AD259E84811AA41-->  <DISPLAYTITLE><![CDATA[N]]></DISPLAYTITLE>
 <!--1D16F7BDCDD04F3A9AD259E84811AA41--></OBUIAPP_PARAMETER>
@@ -337,7 +338,6 @@
 <!--52BD390363394BE980D0A55AFC4CDBB9-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
 <!--52BD390363394BE980D0A55AFC4CDBB9-->  <OBUIAPP_PROCESS_ID><![CDATA[9BED7889E1034FE68BD85D5D16857320]]></OBUIAPP_PROCESS_ID>
 <!--52BD390363394BE980D0A55AFC4CDBB9-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
-<!--52BD390363394BE980D0A55AFC4CDBB9-->  <AD_VAL_RULE_ID><![CDATA[0FA3B20AECB74FA5A888AA7465FD1B1C]]></AD_VAL_RULE_ID>
 <!--52BD390363394BE980D0A55AFC4CDBB9-->  <NUMCOLUMN><![CDATA[1]]></NUMCOLUMN>
 <!--52BD390363394BE980D0A55AFC4CDBB9-->  <DISPLAYEDROWS><![CDATA[5]]></DISPLAYEDROWS>
 <!--52BD390363394BE980D0A55AFC4CDBB9-->  <DISPLAYTITLE><![CDATA[Y]]></DISPLAYTITLE>
@@ -513,7 +513,7 @@
 <!--838EF92641044D038600E4C1B6F1C4CB-->  <OBUIAPP_PROCESS_ID><![CDATA[9BED7889E1034FE68BD85D5D16857320]]></OBUIAPP_PROCESS_ID>
 <!--838EF92641044D038600E4C1B6F1C4CB-->  <STARTINNEWLINE><![CDATA[N]]></STARTINNEWLINE>
 <!--838EF92641044D038600E4C1B6F1C4CB-->  <READONLYLOGIC><![CDATA[@fin_payment_id@!undefined & @fin_paymend_id@!null]]></READONLYLOGIC>
-<!--838EF92641044D038600E4C1B6F1C4CB-->  <ONCHANGEFUNCTION><![CDATA[OB.APRM.AddPayment.paymentMethodMulticurrency]]></ONCHANGEFUNCTION>
+<!--838EF92641044D038600E4C1B6F1C4CB-->  <ONCHANGEFUNCTION><![CDATA[OB.APRM.AddPayment.paymentMethodOnChange]]></ONCHANGEFUNCTION>
 <!--838EF92641044D038600E4C1B6F1C4CB-->  <DISPLAYEDROWS><![CDATA[5]]></DISPLAYEDROWS>
 <!--838EF92641044D038600E4C1B6F1C4CB-->  <DISPLAYTITLE><![CDATA[N]]></DISPLAYTITLE>
 <!--838EF92641044D038600E4C1B6F1C4CB--></OBUIAPP_PARAMETER>
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Fri Jun 06 14:38:21 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Fri Jun 06 14:38:51 2014 +0200
@@ -8,6 +8,7 @@
 <!--41B3A5EA61AB46FBAF4567E3755BA190-->  <NAME><![CDATA[APRM_ActionDocumentSelector]]></NAME>
 <!--41B3A5EA61AB46FBAF4567E3755BA190-->  <AD_REFERENCE_ID><![CDATA[23AB7A87FF4E462197629E461B9F033C]]></AD_REFERENCE_ID>
 <!--41B3A5EA61AB46FBAF4567E3755BA190-->  <AD_TABLE_ID><![CDATA[104]]></AD_TABLE_ID>
+<!--41B3A5EA61AB46FBAF4567E3755BA190-->  <WHERECLAUSE><![CDATA[e.reference.id = '7D750D39954C4F7A81B35230676D5D9F' and (( @issotrx@ = 'true' and (((select automaticDeposit from FinancialMgmtFinAccPaymentMethod where paymentMethod.id = @fin_paymentmethod_id@ and account.id = @fin_financial_account_id@) = false and e.searchKey in ('PRP', 'PRD')) or ((select automaticDeposit from FinancialMgmtFinAccPaymentMethod where paymentMethod.id = @fin_paymentmethod_id@ and account.id = @fin_financial_account_id@) = true and e.searchKey in ('PRD')))) or (@issotrx@ = 'false' and (((select automaticWithdrawn from FinancialMgmtFinAccPaymentMethod where paymentMethod.id = @fin_paymentmethod_id@ and account.id = @fin_financial_account_id@) = false and e.searchKey in ('PPP', 'PPW')) or ((select automaticWithdrawn from FinancialMgmtFinAccPaymentMethod where paymentMethod.id = @fin_paymentmethod_id@ and account.id = @fin_financial_account_id@) = true and e.searchKey in ('PPW')))))]]></WHERECLAUSE>
 <!--41B3A5EA61AB46FBAF4567E3755BA190-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
 <!--41B3A5EA61AB46FBAF4567E3755BA190-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--41B3A5EA61AB46FBAF4567E3755BA190-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>