Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029264Openbravo ERPI. Performancepublic2015-03-06 13:372015-04-01 08:31
lorenzofidalgo 
umartirena 
normalmajorsometimes
closedfixed 
5
pi 
3.0PR15Q1.23.0PR15Q1.2 
Sandrahuguet
Google Chrome, Mozilla Firefox
Core
No
0029264: Clicking select all and after that unselect all records in AddPayment window induces browser to get stuck
If there is enough lines (I have tested this with 60 and 90 records and it has been successfully reproduced), clicking "select all" records and after that clicking same button (which is "unselect all" at that moment) induces browser to get stuck. [See screenshots].

I have tested this localhost and livebuilds in pi pgsql context.

[It is adviced to create as many puchase invoice records as possible with at least one product line each one and complete them to test this].

Login ERP using QAAdmin role.
Go to "Financial Account" window.
Select "Spain Cashbook" role.
Go to "Transaction" tab.
Create a new record.
Transaction Type: "BP Withdrawal".
Click "+" in Payment field to add a payment.
In "Add Payment" window:
--
Clear filters.
Click "select all" checkbox and next to that, click it again to "unselect all".
It will probably broke. If it does not, repeat "select all" + "unselect all" several times.
Approved
has duplicate backport 00293403.0PR15Q1.2 closed umartirena Clicking select all and after that unselect all records in AddPayment window induces browser to get stuck 
blocks defect 0029172 closed umartirena Clicking select all and after that unselect all records in AddPayment window induces browser to get stuck 
Issue History
2015-03-12 17:10SandrahuguetTypedefect => backport
2015-03-12 17:10SandrahuguetTarget Version => 3.0PR15Q1.2
2015-03-13 13:44hgbotCheckin
2015-03-13 13:44hgbotNote Added: 0075558
2015-03-13 13:44hgbotStatusscheduled => resolved
2015-03-13 13:44hgbotResolutionopen => fixed
2015-03-13 13:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/74bfc587053f9082559e655408e26a91f7582d85 [^]
2015-03-13 13:59SandrahuguetReview Assigned To => Sandrahuguet
2015-03-13 13:59SandrahuguetNote Added: 0075563
2015-03-13 13:59SandrahuguetStatusresolved => closed
2015-03-13 13:59SandrahuguetFixed in Version => 3.0PR15Q1.2
2015-03-13 17:35dmitry_mezentsevTag Attached: Approved
2015-03-18 09:19umartirenaNote Added: 0075716
2015-03-18 09:19umartirenaStatusclosed => new
2015-03-18 09:19umartirenaResolutionfixed => open
2015-03-18 09:19umartirenaFixed in Version3.0PR15Q1.2 =>
2015-03-18 18:32hgbotCheckin
2015-03-18 18:32hgbotNote Added: 0075751
2015-03-18 18:33umartirenaStatusnew => scheduled
2015-03-18 18:38umartirenaRelationship deleteddepends on 0029340
2015-03-18 18:38umartirenaRelationship addedhas duplicate 0029340
2015-03-18 18:40umartirenaStatusscheduled => resolved
2015-03-18 18:40umartirenaFixed in Version => 3.0PR15Q1.2
2015-03-18 18:40umartirenaResolutionopen => fixed
2015-03-18 19:02SandrahuguetNote Added: 0075754
2015-03-18 19:02SandrahuguetStatusresolved => closed
2015-04-01 08:07hgbotCheckin
2015-04-01 08:07hgbotNote Added: 0076212
2015-04-01 08:07hgbotStatusclosed => resolved
2015-04-01 08:07hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/74bfc587053f9082559e655408e26a91f7582d85 [^] => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/74bfc587053f9082559e655408e26a91f7582d85 [^]
2015-04-01 08:08hgbotCheckin
2015-04-01 08:08hgbotNote Added: 0076222
2015-04-01 08:31priyamStatusresolved => closed
2015-04-01 08:31priyamNote Added: 0076261

Notes
(0075558)
hgbot   
2015-03-13 13:44   
Repository: erp/backports/3.0PR15Q1.2
Changeset: 74bfc587053f9082559e655408e26a91f7582d85
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Fri Mar 13 13:00:24 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/74bfc587053f9082559e655408e26a91f7582d85 [^]

Fixes bug 29264 Improved performance select/deselect all records in OrderInv grid

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0075563)
Sandrahuguet   
2015-03-13 13:59   
Code review + testing OK
(0075716)
umartirena   
2015-03-18 09:19   
Reopened because it does not update differences after reload of Order Invoices grid
(0075751)
hgbot   
2015-03-18 18:32   
Repository: erp/backports/3.0PR15Q1.2
Changeset: 5a949354221bc1c20087a9ced726f7d2640228cb
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Mar 18 18:30:39 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/5a949354221bc1c20087a9ced726f7d2640228cb [^]

Related to bug 29264: Delete obaprmAllRecordsSelectedByUser in OrderInvoice Load

While executing invalidateCache() function to reload OrderInvoice grid it internally calls to 'OB.APRM.AddPayment.deselectAllRecords' overriden method that sets obaprmAllRecordsSelectedByUser property to true. This property is only needed when manually the select/unselect all checkbox is clicked.

This was causing on certain scenarios that methods to update totals were not being called:
* OB.APRM.AddPayment.updateInvOrderTotal(view.theForm, orderInvoice);
* OB.APRM.AddPayment.updateActualExpected(view.theForm);
* OB.APRM.AddPayment.updateDifference(view.theForm);

So, in order to avoid this in OrderInvoiceOnLoad function, if the property 'obaprmAllRecordsSelectedByUser' exists, it will be deleted.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0075754)
Sandrahuguet   
2015-03-18 19:02   
Code review + testing OK
(0076212)
hgbot   
2015-04-01 08:07   
Repository: erp/backports/3.0PR15Q2
Changeset: 74bfc587053f9082559e655408e26a91f7582d85
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Fri Mar 13 13:00:24 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/74bfc587053f9082559e655408e26a91f7582d85 [^]

Fixes bug 29264 Improved performance select/deselect all records in OrderInv grid

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0076222)
hgbot   
2015-04-01 08:08   
Repository: erp/backports/3.0PR15Q2
Changeset: 5a949354221bc1c20087a9ced726f7d2640228cb
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Mar 18 18:30:39 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/5a949354221bc1c20087a9ced726f7d2640228cb [^]

Related to bug 29264: Delete obaprmAllRecordsSelectedByUser in OrderInvoice Load

While executing invalidateCache() function to reload OrderInvoice grid it internally calls to 'OB.APRM.AddPayment.deselectAllRecords' overriden method that sets obaprmAllRecordsSelectedByUser property to true. This property is only needed when manually the select/unselect all checkbox is clicked.

This was causing on certain scenarios that methods to update totals were not being called:
* OB.APRM.AddPayment.updateInvOrderTotal(view.theForm, orderInvoice);
* OB.APRM.AddPayment.updateActualExpected(view.theForm);
* OB.APRM.AddPayment.updateDifference(view.theForm);

So, in order to avoid this in OrderInvoiceOnLoad function, if the property 'obaprmAllRecordsSelectedByUser' exists, it will be deleted.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0076261)
priyam   
2015-04-01 08:31   
closed again, as the status changed due the merge tag of 3.0PR15Q1.2 to backports/3.0PR15Q2