Openbravo Issue Tracking System - POS2
View Issue Details
0051180POS2POSpublic2022-12-16 12:432022-12-23 09:01
jetxarri 
Retail 
highminoralways
newopen 
5
 
pi 
No
0051180: Goodby message should enqueue a message to be treated by HardwareManager endpoint
Goodby message is not using message structure and it is doing a direct request to the hardware manager, what it is wrong.

Currently, in file org.openbravo.retail.posterminal/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js it is possible to see function "printGoodBye" and how is not enqueueing any message.

It should work similar to "Welcome message" in function "printWelcome".

Apart from that, when the function "printGoodBye" is called, it is being checked that HM is configured and it should not be like that and delegate the responsibility into the class that implement the hardware manager endpoint.


Take into consideration that in POS2 the goodbye function is not being called when the session is closed and it should.
-file web/org.openbravo.retail.posterminal/js/login/model/login-model.js function postCloseSession. This is done for POS1 and it should be in POS2
-Login into Web POS
-Lock screen or do a cashup
Take a look to function OB.OBPOSPointOfSale.Print.printWelcome and do the same for Goodbye message.
No tags attached.
Issue History
2022-12-16 12:43jetxarriNew Issue
2022-12-16 12:43jetxarriAssigned To => Retail
2022-12-16 12:43jetxarriTriggers an Emergency Pack => No
2022-12-16 12:50jetxarriDescription Updatedbug_revision_view_page.php?rev_id=25263#r25263
2022-12-23 08:55hgbotNote Added: 0144954
2022-12-23 08:56hgbotNote Added: 0144955
2022-12-23 08:59hgbotNote Added: 0144956
2022-12-23 09:01hgbotNote Added: 0144957

Notes
(0144954)
hgbot   
2022-12-23 08:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1429 [^]
(0144955)
hgbot   
2022-12-23 08:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/947 [^]
(0144956)
hgbot   
2022-12-23 08:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1021 [^]
(0144957)
hgbot   
2022-12-23 09:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/450 [^]