Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032649Retail ModulesWeb POSpublic2016-04-11 18:122016-05-17 17:48
lorenzofidalgo 
jorge-garcia 
immediatemajorsometimes
closedfixed 
5
main 
 
migueldejuana
Packaging and release
main
No
0032649: [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.
depends on backport 0032882RR16Q2 closed jorge-garcia [RR16Q2] Add products and create new receipts quickly induces severe failures in Web POS 
has duplicate defect 0035056 closed Retail Ticket with total zero although it has lines when a new ticket is created very fast after adding lines to the first one 
png FastReceiptCreatingInducesFailures.png (118,501) 2016-04-11 18:12
https://issues.openbravo.com/file_download.php?file_id=9255&type=bug
png

? ErrorLog (3,594) 2016-04-11 18:13
https://issues.openbravo.com/file_download.php?file_id=9256&type=bug
Issue History
2016-04-11 18:12lorenzofidalgoNew Issue
2016-04-11 18:12lorenzofidalgoAssigned To => Retail
2016-04-11 18:12lorenzofidalgoFile Added: FastReceiptCreatingInducesFailures.png
2016-04-11 18:12lorenzofidalgoRegression level => Packaging and release
2016-04-11 18:12lorenzofidalgoRegression introduced in release => main
2016-04-11 18:12lorenzofidalgoTriggers an Emergency Pack => No
2016-04-11 18:13lorenzofidalgoFile Added: ErrorLog
2016-04-12 18:28OrekariaStatusnew => acknowledged
2016-04-28 17:54jorge-garciaStatusacknowledged => scheduled
2016-04-28 17:54jorge-garciaAssigned ToRetail => jorge-garcia
2016-05-06 10:30OrekariaStatusscheduled => acknowledged
2016-05-06 10:30OrekariaStatusacknowledged => scheduled
2016-05-09 08:47hgbotCheckin
2016-05-09 08:47hgbotNote Added: 0086298
2016-05-09 08:47hgbotStatusscheduled => resolved
2016-05-09 08:47hgbotResolutionopen => fixed
2016-05-09 08:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9d1a0eceb8bfc2ec2e82e632027e4042dfa0c458 [^]
2016-05-09 08:52hgbotCheckin
2016-05-09 08:52hgbotNote Added: 0086299
2016-05-17 17:48migueldejuanaReview Assigned To => migueldejuana
2016-05-17 17:48migueldejuanaNote Added: 0086504
2016-05-17 17:48migueldejuanaStatusresolved => closed
2017-01-26 10:10marvintmRelationship addedhas duplicate 0035056

Notes
(0086298)
hgbot   
2016-05-09 08:47   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9d1a0eceb8bfc2ec2e82e632027e4042dfa0c458
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue May 03 17:32:22 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9d1a0eceb8bfc2ec2e82e632027e4042dfa0c458 [^]

Fixed issue 32649: 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
---
(0086299)
hgbot   
2016-05-09 08:52   
Repository: tools/automation/pi-mobile
Changeset: 55977a1deafdad358b12625374d102c11e72aa33
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon May 09 08:51:55 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/55977a1deafdad358b12625374d102c11e72aa33 [^]

Verifies issue 32649:Add products and create new receipts quickly induces
severe failures in Web POS

Added test I32649_AddNewReceiptsQuickly.

---
A src-test/org/openbravo/test/mobile/quarantine/pack/JGA/sales/I32649_AddNewReceiptsQuickly.java
---
(0086504)
migueldejuana   
2016-05-17 17:48   
Tested and reviewed in ec98fed2ca51