Openbravo Issue Tracking System - POS2
View Issue Details
0051193POS2POSpublic2022-12-19 11:542022-12-27 13:07
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
23Q1 
No
0051193: Button "Print last order" not working
When we press the button "Reprint last order" it does not work, a pop up is supposed to appear and propose a printing mode but this is not the case in V2 and nothing appears in the dev console.
1- Login in POS2.
2- Complete a ticket.
3- Press the button "Reprint last order".

It does not work.
No tags attached.
png image-20221124-095417.png (134,230) 2022-12-19 11:54
https://issues.openbravo.com/file_download.php?file_id=17958&type=bug
png
Issue History
2022-12-19 11:54meriem_azafNew Issue
2022-12-19 11:54meriem_azafAssigned To => Retail
2022-12-19 11:54meriem_azafFile Added: image-20221124-095417.png
2022-12-19 11:54meriem_azafTriggers an Emergency Pack => No
2022-12-19 11:54meriem_azafAssigned ToRetail => meriem_azaf
2022-12-19 11:54meriem_azafStatusnew => scheduled
2022-12-19 12:05hgbotNote Added: 0144813
2022-12-19 12:32meriem_azafSummaryRegression: Button - Print last order not working => Button : Print last order not working
2022-12-19 12:33meriem_azafSummaryButton : Print last order not working => Button "Print last order" not working
2022-12-27 13:07hgbotResolutionopen => fixed
2022-12-27 13:07hgbotStatusscheduled => closed
2022-12-27 13:07hgbotFixed in Version => 23Q1
2022-12-27 13:07hgbotNote Added: 0145036
2022-12-27 13:07hgbotNote Added: 0145037

Notes
(0144813)
hgbot   
2022-12-19 12:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1422 [^]
(0145036)
hgbot   
2022-12-27 13:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 9f34dbde951d201122804bee4bfdd1b63819b447
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 27-12-2022 13:01:07
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/9f34dbde951d201122804bee4bfdd1b63819b447 [^]

Fixes ISSUE-51193: Button "Print last order" not working

When we press the button "Reprint last order" it does not work, a pop up is supposed to appear and propose a printing mode but this is not the case in V2 and nothing appears in the dev console.

The problem here was when we don't have permission related to the user action "Print Bill" related to the button "Reprint last order", this button was not disabled.

To fix this, we checked the permission related this user action in "ReprintLastOrder.js" and we removed the file "ReprintLastOrderReceipt.js" because it was redundant and also was extending UserAction and this was wrong and also we removed the test file related to this one.

---
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/ReprintLastOrderUserAction.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/ReprintLastOrder.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
R web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/ReprintLastOrderReceiptUserAction.test.js
R web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/ReprintLastOrderReceipt.js
---
(0145037)
hgbot   
2022-12-27 13:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1422 [^]