fixed bug 29140: selected credit selected is not used
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 05 Mar 2015 17:36:57 +0100
changeset 26132 68dac1cb62fa
parent 26131 ec6a5bf6a16e
child 26133 486e7700e8d0
fixed bug 29140: selected credit selected is not used

When adding a payment the selected records for used credit were not taken into
account.

The problem was credit_to_use._selection property was always sent as [] after
fix for issue #28712. The problem was in the overwritten selectionChanged js
method for this grid, which should invoke super's selectionChanged but it didn't
do it correctly.
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
--- a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js	Thu Mar 05 16:00:48 2015 +0000
+++ b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js	Thu Mar 05 17:36:57 2015 +0100
@@ -742,7 +742,7 @@
     this.fireOnPause('selectionChangedCredit' + record.id, function () {
       OB.APRM.AddPayment.doSelectionChangedCredit(record, state, this.view);
     }, 200);
-    this.Super('selectionChangedCredit', arguments);
+    this.Super('selectionChanged', arguments);
   }
 };