Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032882Retail ModulesWeb POSpublic2016-04-11 18:122016-06-07 18:10
lorenzofidalgo 
jorge-garcia 
immediatemajorsometimes
closedfixed 
5
main 
RR16Q2RR16Q2 
guilleaer
Packaging and release
main
No
0032882: [RR16Q2] Add products and create new receipts quickly induces severe failures in Web POS
Create quickly new receipts adding products to them induces problems in Web POS. Check log and attached video.

Installed modules:
--
Core - 3.0.28839 - English (USA)
Gift cards and vouchers - 1.2.102 - English (USA)
Openbravo 3.0 - 3.0.28839 - English (USA)
Openbravo for Retail - 1.8.1900 - English (USA)
Openbravo Multi Business Partner Selector - 1.0.9 - English (USA)
Retail Sampledata - 1.0.1500 - English (USA)
--
Video that shows this issue:
https://drive.google.com/open?id=0Bz1bUfkEffVIOFRvZ3NURUZ1V1E [^]
0-Login POS as vallblanca.
AAA
1-Add 1x any product.
2-Click create new receipt button.
BBB
3-Repeat from AAA to BBB many times (12 times for instance) and quickly (try to choose different products)
4-Click in the receipts list to select one of them.
5-Now, check the previously created receipts and choose one of them with a product and 0.00 amount. Click on it to see the receipt.
6-Realise that Amount is not correct. Click delete receipt button. Error appears.
No tags attached.
blocks defect 0032649 closed jorge-garcia [RR16Q2] Add products and create new receipts quickly induces severe failures in Web POS 
Issue History
2016-05-06 10:30OrekariaTypedefect => backport
2016-05-06 10:30OrekariaTarget Version => RR16Q2
2016-06-02 20:20hgbotCheckin
2016-06-02 20:20hgbotNote Added: 0086960
2016-06-02 20:20hgbotStatusscheduled => resolved
2016-06-02 20:20hgbotResolutionopen => fixed
2016-06-02 20:20hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/fa62d9f6f21c01e6772810aff1416bee3218320b [^]
2016-06-07 18:10guilleaerReview Assigned To => guilleaer
2016-06-07 18:10guilleaerStatusresolved => closed
2016-06-07 18:10guilleaerFixed in Version => RR16Q2

Notes
(0086960)
hgbot   
2016-06-02 20:20   
Repository: retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal
Changeset: fa62d9f6f21c01e6772810aff1416bee3218320b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 02 20:20:19 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/fa62d9f6f21c01e6772810aff1416bee3218320b [^]

Fixed issue 32882: Add products and create new receipts quickly induces
severe failures in Web POS

The proble is that the calculateReceipt function gets stuck in the execution if
a new ticket is created in the middle of the process.

The solution is to disable also the new and delete button from the point of sale
window during the execution if the calculateReceipt fucntion.

To achieve this, one new synchronizationHelper has been created
(calculateReceipt) and two of them have been deleted (applyPromotions and
calculateGross).

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js
---