Openbravo Issue Tracking System - POS2
View Issue Details
0050946POS2POSpublic2022-11-18 09:572022-11-24 09:34
meriem_azaf 
meriem_azaf 
normalminorhave not tried
closedfixed 
5
 
23Q1 
No
0050946: The default keymap category is not selected just after paying
When you finish a transaction on Webpos the new ticket start and the last selected category is selected for this new ticket.
The rules should be : the default Keymap and its default category should be selected when starting a new ticket.
1- On BO, define a category as default for a specific keymap which is the default keymap for the terminal you use.

2- Login Webpos.

3- Start a new ticket.

4- Make sure you select the keymap you previously configured.

5- Select another category than the default keymap category.

6- Select several products and switch to payment mode.

7- Pay the ticket.

After paying, automatically a new ticket is available

→ OK the selected keymap is the default one.

→ But KO the selected category should be the default category for this keymap.
No tags attached.
Issue History
2022-11-18 09:57meriem_azafNew Issue
2022-11-18 09:57meriem_azafAssigned To => Retail
2022-11-18 09:57meriem_azafTriggers an Emergency Pack => No
2022-11-18 09:57meriem_azafAssigned ToRetail => meriem_azaf
2022-11-18 09:57meriem_azafStatusnew => scheduled
2022-11-18 09:57meriem_azafSeveritymajor => minor
2022-11-18 12:39hgbotNote Added: 0143828
2022-11-23 17:43hgbotResolutionopen => fixed
2022-11-23 17:43hgbotStatusscheduled => closed
2022-11-23 17:43hgbotFixed in Version => 23Q1
2022-11-23 17:43hgbotNote Added: 0144059
2022-11-23 17:43hgbotNote Added: 0144060
2022-11-24 09:34hgbotNote Added: 0144091

Notes
(0143828)
hgbot   
2022-11-18 12:39   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1378 [^]
(0144059)
hgbot   
2022-11-23 17:43   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 2ec9a5794abe75536d282af767833419fdbf1faa
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 23-11-2022 15:06:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/2ec9a5794abe75536d282af767833419fdbf1faa [^]

Fixes ISSUE-50946: The default keymap category is not selected just after paying

When you finish a transaction on Webpos the new ticket start and the last selected category is selected for this new ticket.
The rules should be : the default Keymap and its default category should be selected when starting a new ticket.

The problem was when you complete the ticket the SelectedKeymapCategory updated to null that why it keeps the previous id of the selected keymap category.

To fix this, we had set the selected keymap category to the default keymap category in "completeTicket.js".

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentKeypad/__test__/PaymentKeypad.test.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/CompleteTicket.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CompleteTicket.js
---
(0144060)
hgbot   
2022-11-23 17:43   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1378 [^]
(0144091)
hgbot   
2022-11-24 09:34   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 9c55b538a6716e502da427839237e2bd3b09201d
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 24-11-2022 09:33:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/9c55b538a6716e502da427839237e2bd3b09201d [^]

Related to ISSUE-50946: Fix jslint error of wrong import in CompleteTicket.js file

---
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CompleteTicket.js
---