Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040601 | Retail Modules | Web POS | public | 2019-04-11 18:15 | 2019-05-24 13:07 |
|
Reporter | asiermartirena | |
Assigned To | asiermartirena | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR19Q3 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0040601: The calculateReceipt function is called to much times when changing prices |
Description | The calculateReceipt function is called to many times when changing prices in the Web POS.
If a line is selected to change the price, the calculateReceipt function is automatically launched on a backbone event when the price is updated, and is launched again after that. That second call mustn't be called.
If multiple lines are selected and their price is changed, one calculate receipt is launched for each line, and a final one is also called. This is visible for the user, because the first line is updated in the first calculateReceipt and the other ones in the final one. The middle executions are not done because of the logic that the calculate receipt has to avoid multiple (more than two, cause a final call is always launched) calls. |
Steps To Reproduce | Add a breakpoint in the calculateReceipt function.
Add a line to the ticket.
Change the price --> The calculateReceipt is executed twice
Add a new line.
Select both lines and change the price --> The calculateReceipt is executed four times, even if the middle calls are not executed. The fourth call is the final call the calculateReceipt has to ensure that the process is executed with all the data updated. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-04-11 18:15 | asiermartirena | New Issue | |
2019-04-11 18:15 | asiermartirena | Assigned To | => asiermartirena |
2019-04-11 18:15 | asiermartirena | OBNetwork customer | => No |
2019-04-11 18:15 | asiermartirena | Triggers an Emergency Pack | => No |
2019-04-13 19:45 | hgbot | Checkin | |
2019-04-13 19:45 | hgbot | Note Added: 0111118 | |
2019-04-13 19:45 | hgbot | Status | new => resolved |
2019-04-13 19:45 | hgbot | Resolution | open => fixed |
2019-04-13 19:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a3c01b29e42f495e3c7fbf987df550d6bc8ec253 [^] |
2019-04-24 18:45 | gorka_gil | Note Added: 0111293 | |
2019-04-24 18:45 | gorka_gil | Status | resolved => new |
2019-04-24 18:45 | gorka_gil | Resolution | fixed => open |
2019-04-24 18:54 | hgbot | Checkin | |
2019-04-24 18:54 | hgbot | Note Added: 0111294 | |
2019-04-29 17:00 | hgbot | Checkin | |
2019-04-29 17:00 | hgbot | Note Added: 0111372 | |
2019-04-30 10:07 | asiermartirena | Status | new => scheduled |
2019-04-30 10:07 | asiermartirena | Status | scheduled => resolved |
2019-04-30 10:07 | asiermartirena | Resolution | open => fixed |
2019-04-30 13:43 | hgbot | Checkin | |
2019-04-30 13:43 | hgbot | Note Added: 0111387 | |
2019-05-24 13:07 | marvintm | Review Assigned To | => marvintm |
2019-05-24 13:07 | marvintm | Status | resolved => closed |
2019-05-24 13:07 | marvintm | Fixed in Version | => RR19Q3 |
Notes |
|
(0111118)
|
hgbot
|
2019-04-13 19:45
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a3c01b29e42f495e3c7fbf987df550d6bc8ec253
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Fri Apr 12 21:33:04 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a3c01b29e42f495e3c7fbf987df550d6bc8ec253 [^]
Fixed issue 40601: The calculateReceipt function is called to much times when changing prices
New API to set prices to lines. It should be always called, even if the call is only for a single line.
Removed the call of the calculate receipt done after the price is modified. Now, when updating a single line's price it is only called from the event launched when updating the price of the order line.
For multi selection, the calculateReceipt is disabled until the last price is updated. After that, it is enabled and launched.
Same modifications for the undo action.
---
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboardorder.js
---
|
|
|
|
Reopen issue because fail a test of quarantine:
I38724_AllowPriceModificationVerifiedReturns |
|
|
(0111294)
|
hgbot
|
2019-04-24 18:54
|
|
Repository: tools/automation/pi-mobile
Changeset: 29c125d8abda46dee5430f63b48420fea2a23d22
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Wed Apr 24 18:53:39 2019 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/29c125d8abda46dee5430f63b48420fea2a23d22 [^]
Related to issue 40601: disable test I38724_AllowPriceModificationVerifiedReturns till issue is resolved
---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I38724_AllowPriceModificationVerifiedReturns.java
---
|
|
|
(0111372)
|
hgbot
|
2019-04-29 17:00
|
|
|
|
(0111387)
|
hgbot
|
2019-04-30 13:43
|
|
Repository: tools/automation/pi-mobile
Changeset: 5c840bf841fadad7a29e2a2e2123f8ba0f60834b
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Apr 30 13:42:36 2019 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/5c840bf841fadad7a29e2a2e2123f8ba0f60834b [^]
Related to issue 40601: Remove anotation waitFixOf that is no longer needed
---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I38724_AllowPriceModificationVerifiedReturns.java
---
|
|