Fixes issue 27204: Payment proposal marked as grid legacy
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Fri, 25 Jul 2014 13:46:26 +0200
changeset 24124 f9d88e0b35db
parent 24123 f83ffce28e79
child 24125 0c2b6c095db9
Fixes issue 27204: Payment proposal marked as grid legacy
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PROCESS.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/PaymentProposalPickEditLines.java
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Fri Jul 25 11:40:47 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Fri Jul 25 13:46:26 2014 +0200
@@ -50,7 +50,7 @@
 <!--8D0D32CC819E449D9A08E0459B482963-->  <UIPATTERN><![CDATA[OBUIAPP_PickAndExecute]]></UIPATTERN>
 <!--8D0D32CC819E449D9A08E0459B482963-->  <ISMULTIRECORD><![CDATA[N]]></ISMULTIRECORD>
 <!--8D0D32CC819E449D9A08E0459B482963-->  <IS_EXPLICIT_ACCESS><![CDATA[N]]></IS_EXPLICIT_ACCESS>
-<!--8D0D32CC819E449D9A08E0459B482963-->  <ISGRIDLEGACY><![CDATA[Y]]></ISGRIDLEGACY>
+<!--8D0D32CC819E449D9A08E0459B482963-->  <ISGRIDLEGACY><![CDATA[N]]></ISGRIDLEGACY>
 <!--8D0D32CC819E449D9A08E0459B482963-->  <ISCANADDRECORDSTOSELECTOR><![CDATA[N]]></ISCANADDRECORDSTOSELECTOR>
 <!--8D0D32CC819E449D9A08E0459B482963--></OBUIAPP_PROCESS>
 
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/PaymentProposalPickEditLines.java	Fri Jul 25 11:40:47 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/PaymentProposalPickEditLines.java	Fri Jul 25 13:46:26 2014 +0200
@@ -107,7 +107,8 @@
     HashMap<String, String> map = new HashMap<String, String>();
     map.put("DifferentPaymentMethod", "false");
     map.put("Count", "0");
-    JSONArray selectedLines = jsonRequest.getJSONArray("_selection");
+    JSONObject grid = jsonRequest.getJSONObject("_params").getJSONObject("grid");
+    JSONArray selectedLines = grid.getJSONArray("_selection");
     final String strPaymentProposalId = jsonRequest.getString("Fin_Payment_Proposal_ID");
     FIN_PaymentProposal paymentProposal = OBDal.getInstance().get(FIN_PaymentProposal.class,
         strPaymentProposalId);