Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039656Retail ModulesWeb POSpublic2018-11-20 13:362018-12-11 08:56
lmonreal 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
migueldejuana
No
0039656: Print last receipt is not working, it is showing message "It has not processed any orders yet"
Print last receipt is not working, it is showing message "It has not processed any orders yet" and nothing is printed.
Steps
1. Do a transaction, it will be sync in back office
2. Open drop down menu and select "Print last receipt"
3. Error message is displayed "It has not processed any orders yet" and ticket is not printed
Do not display message and print last receipt
No tags attached.
jpg Printlst.jpg (147,685) 2018-11-20 13:36
https://issues.openbravo.com/file_download.php?file_id=12375&type=bug
jpg

diff printlast.diff (786) 2018-12-05 16:30
https://issues.openbravo.com/file_download.php?file_id=12414&type=bug
diff posterminal.diff (1,492) 2018-12-05 16:30
https://issues.openbravo.com/file_download.php?file_id=12415&type=bug
Issue History
2018-11-20 13:36lmonrealNew Issue
2018-11-20 13:36lmonrealAssigned To => Retail
2018-11-20 13:36lmonrealFile Added: Printlst.jpg
2018-11-20 13:36lmonrealTriggers an Emergency Pack => No
2018-11-20 15:09ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-11-20 15:09ranjith_qualiantech_comStatusnew => scheduled
2018-11-23 05:37hgbotCheckin
2018-11-23 05:37hgbotNote Added: 0108065
2018-11-23 05:37hgbotStatusscheduled => resolved
2018-11-23 05:37hgbotResolutionopen => fixed
2018-11-23 05:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c7cb3f78b8ee6b55cfcb85f48cc4d200e04ac3bc [^]
2018-11-27 11:03jorge-garciaReview Assigned To => jorge-garcia
2018-12-05 16:30migueldejuanaNote Added: 0108295
2018-12-05 16:30migueldejuanaStatusresolved => new
2018-12-05 16:30migueldejuanaResolutionfixed => open
2018-12-05 16:30migueldejuanaFile Added: printlast.diff
2018-12-05 16:30migueldejuanaFile Added: posterminal.diff
2018-12-06 10:07ranjith_qualiantech_comStatusnew => scheduled
2018-12-06 11:04hgbotCheckin
2018-12-06 11:04hgbotNote Added: 0108309
2018-12-06 11:04hgbotCheckin
2018-12-06 11:04hgbotNote Added: 0108310
2018-12-06 11:04hgbotStatusscheduled => resolved
2018-12-06 11:04hgbotResolutionopen => fixed
2018-12-06 11:04hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c7cb3f78b8ee6b55cfcb85f48cc4d200e04ac3bc [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.printlast/rev/f102c18af8bb08ae9a99a700c2be04cabbd5ad72 [^]
2018-12-07 09:56marvintmReview Assigned Tojorge-garcia => marvintm
2018-12-07 09:56marvintmStatusresolved => closed
2018-12-07 09:56marvintmFixed in Version => RR19Q1
2018-12-10 13:13migueldejuanaNote Added: 0108360
2018-12-10 13:13migueldejuanaStatusclosed => new
2018-12-10 13:13migueldejuanaResolutionfixed => open
2018-12-10 13:13migueldejuanaFixed in VersionRR19Q1 =>
2018-12-10 14:01ranjith_qualiantech_comStatusnew => scheduled
2018-12-11 03:07hgbotCheckin
2018-12-11 03:07hgbotNote Added: 0108377
2018-12-11 03:07hgbotStatusscheduled => resolved
2018-12-11 03:07hgbotResolutionopen => fixed
2018-12-11 03:07hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.printlast/rev/f102c18af8bb08ae9a99a700c2be04cabbd5ad72 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9ce01eef280432d710d25d6a1fd9fd4db3aeef6f [^]
2018-12-11 08:56migueldejuanaReview Assigned Tomarvintm => migueldejuana
2018-12-11 08:56migueldejuanaNote Added: 0108381
2018-12-11 08:56migueldejuanaStatusresolved => closed

Notes
(0108065)
hgbot   
2018-11-23 05:37   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c7cb3f78b8ee6b55cfcb85f48cc4d200e04ac3bc
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Nov 23 10:07:04 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c7cb3f78b8ee6b55cfcb85f48cc4d200e04ac3bc [^]

Fixed issue 39656 : Refactored receipt close function to trigger integrityOk beforecreating new receipt

* Refactored duplicate code for OBPOS_PostSyncReceipt hook implemention exists and not exists

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---
(0108295)
migueldejuana   
2018-12-05 16:30   
The change is ok but I would add the attached diffs to ensure that we print the exact order (frozenReceipt) we sent to the backoffice.

See posterminal.diff and printlast.diff
(0108309)
hgbot   
2018-12-06 11:04   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6ce6de846718112e9410561867622f28e44fb3d9
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 06 15:33:48 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6ce6de846718112e9410561867622f28e44fb3d9 [^]

Related to issue 39656 : Receipt integrityOk must be trigger with param final receipt to avoid receipt model changes

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---
(0108310)
hgbot   
2018-12-06 11:04   
Repository: erp/pmods/org.openbravo.retail.printlast
Changeset: f102c18af8bb08ae9a99a700c2be04cabbd5ad72
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Dec 06 15:34:38 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.printlast/rev/f102c18af8bb08ae9a99a700c2be04cabbd5ad72 [^]

Fixed issue 39656 : Last Receipt should be printed with param receipt to avoid receipt model changes

---
M web/org.openbravo.retail.printlast/js/printLastButton.js
---
(0108360)
migueldejuana   
2018-12-10 13:13   
OBPOS_PostSyncReceipt hook is no longer executed

Please, review all the refactor and fix this and ensure that you didn't break any other flow
(0108377)
hgbot   
2018-12-11 03:07   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9ce01eef280432d710d25d6a1fd9fd4db3aeef6f
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Dec 11 07:36:54 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9ce01eef280432d710d25d6a1fd9fd4db3aeef6f [^]

Fixed 39656 : PostSyncReceipt hook must be called in both Synchronized and Non Synchronized Mode

* While Closing the receipt, PostSyncReceipt hook must be called in both Synchronized and other

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---
(0108381)
migueldejuana   
2018-12-11 08:56   
Tested and reviewed