details:   https://code.openbravo.com/erp/devel/pi/rev/03e6d16acce6
changeset: 24340:03e6d16acce6
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Aug 27 09:24:52 2014 +0200
summary:   Fixes issue 27364: Check All button does not work in Order/Invoice 
P&E grid

In certain conditions grid.data.localData.length did not return the number of 
cached records. It is better to use grid.data.cachedRows.

diffstat:

 
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r fda747c97ae4 -r 03e6d16acce6 
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
    Wed Aug 27 04:08:16 2014 +0000
+++ 
b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
    Wed Aug 27 09:24:52 2014 +0200
@@ -286,7 +286,7 @@
       total = orderInvoice.data.totalRows,
       writeoff, amt, outstandingAmount, i, showMessageProperty, showMessage;
 
-  if (orderInvoice.data.localData.length < (orderInvoice.data.totalRows)) {
+  if (orderInvoice.data.cachedRows < (orderInvoice.data.totalRows)) {
     showMessageProperty = OB.PropertyStore.get('APRM_ShowNoDistributeMsg');
     showMessage = (showMessageProperty !== 'N' && showMessageProperty !== 
'"N"');
     if (showMessage) {

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to