Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035927Retail ModulesWeb POSpublic2017-05-04 11:252017-06-26 18:41
Sandrahuguet 
jorge-garcia 
normalmajorhave not tried
closedfixed 
20Community Appliance
 
RR17Q3 
marvintm
No
0035927: Multiple duplicate requests to printer when adding a product to the ticket
Multiple duplicate requests to printer when adding a product to the ticket
-Start POS Hardware Manager
-Log in the WebPOS
-Tap on Browse
-Open chrome developer tools
-Add "Avalanche transceiver" to the ticket, notice that multiple duplicate requests to printer are done.
No tags attached.
depends on backport 0036350RR17Q2.2 closed jorge-garcia Multiple duplicate requests to printer when adding a product to the ticket 
depends on backport 0036351RR17Q1.3 closed jorge-garcia Multiple duplicate requests to printer when adding a product to the ticket 
diff printLines.diff (1,565) 2017-05-18 13:11
https://issues.openbravo.com/file_download.php?file_id=10772&type=bug
Issue History
2017-05-04 11:25SandrahuguetNew Issue
2017-05-04 11:25SandrahuguetAssigned To => Retail
2017-05-04 11:25SandrahuguetResolution time => 1495663200
2017-05-04 11:25SandrahuguetTriggers an Emergency Pack => No
2017-05-04 11:49SandrahuguetNote Added: 0096377
2017-05-05 08:34jorge-garciaStatusnew => scheduled
2017-05-05 08:34jorge-garciaAssigned ToRetail => jorge-garcia
2017-05-08 08:44hgbotCheckin
2017-05-08 08:44hgbotNote Added: 0096445
2017-05-08 08:44hgbotStatusscheduled => resolved
2017-05-08 08:44hgbotResolutionopen => fixed
2017-05-08 08:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ffd8b9490dbff3d738349079f9a6a99e0ffd94de [^]
2017-05-18 13:09marvintmNote Added: 0096661
2017-05-18 13:09marvintmStatusresolved => new
2017-05-18 13:09marvintmResolutionfixed => open
2017-05-18 13:11marvintmFile Added: printLines.diff
2017-05-19 09:31jorge-garciaStatusnew => scheduled
2017-05-24 08:44hgbotCheckin
2017-05-24 08:44hgbotNote Added: 0096738
2017-05-24 08:46jorge-garciaStatusscheduled => resolved
2017-05-24 08:46jorge-garciaResolutionopen => fixed
2017-05-25 19:06marvintmReview Assigned To => marvintm
2017-05-25 19:06marvintmStatusresolved => closed
2017-05-25 19:06marvintmFixed in Version => RR17Q3
2017-06-26 18:40marvintmStatusclosed => new
2017-06-26 18:40marvintmResolutionfixed => open
2017-06-26 18:40marvintmFixed in VersionRR17Q3 =>
2017-06-26 18:40marvintmStatusnew => scheduled
2017-06-26 18:40marvintmStatusscheduled => resolved
2017-06-26 18:40marvintmFixed in Version => RR17Q3
2017-06-26 18:40marvintmResolutionopen => fixed
2017-06-26 18:41marvintmStatusresolved => closed

Notes
(0096377)
Sandrahuguet   
2017-05-04 11:49   
same issue happen when delete product from the ticket
(0096445)
hgbot   
2017-05-08 08:44   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ffd8b9490dbff3d738349079f9a6a99e0ffd94de
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri May 05 09:28:34 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ffd8b9490dbff3d738349079f9a6a99e0ffd94de [^]

Fixed issue 35927: Multiple duplicate requests to printer when adding a
product to the ticket

There are several call to hardware manager to print a product added to the
receipt.

The solution is to change the listener to execute the print of the line only
when the gross has change.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---
(0096661)
marvintm   
2017-05-18 13:09   
Currently there is a problem in the way the events are generated. Previously we were clearly generating too many events, but now the event is not always triggered when products are added. Attached there is a proposal to fix this problem.
(0096738)
hgbot   
2017-05-24 08:44   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4170ac29d86f92d6bf7ba8c746bf67dca1944d76
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri May 19 09:30:45 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4170ac29d86f92d6bf7ba8c746bf67dca1944d76 [^]

Related to issue 35927: Multiple duplicate requests to printer when adding a
product to the ticket

Change logic to work properly and use add event instead of selected event.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---