Openbravo Issue Tracking System - POS2
View Issue Details
0054362POS2POSpublic2024-01-16 14:232024-01-23 15:25
AugustoMauch 
AugustoMauch 
immediatecriticalhave not tried
closedfixed 
5
 
24Q1 
No
0054362: Keymap- Unable to do login if product is not in the Assorment and the price list of a store
When a keymap defined for a given store references a product that is not available in the store (i.e. because it is not in the assortment or it does not have a price), an error is raised when the user logs in, and is thrown back to the login screen.
In any POS2 environment with the pos2 sampledata:
- Remove the "Avalanche Transceiver" product from the vall blanca assortment ("White Valley Group Product List")
- Start POS2 with a clean cache to ensure the product is not available in the local master data
- Try to log in. An error will be displayed: "Some products defined in the keymap are not available in the Assortment, or don't have a price in the Price List. Please define a keymap with available products, or contact your System Administrator"
No tags attached.
blocks defect 0054361 closed AugustoMauch Keymap- Unable to do login if product is not in the Assorment and the price list of a store 
Issue History
2024-01-16 14:24AugustoMauchTypedefect => backport
2024-01-16 14:24AugustoMauchTarget Version => 24Q1
2024-01-23 15:15hgbotNote Added: 0159654
2024-01-23 15:21hgbotNote Added: 0159659
2024-01-23 15:21hgbotNote Added: 0159660
2024-01-23 15:23hgbotNote Added: 0159661
2024-01-23 15:24hgbotNote Added: 0159662
2024-01-23 15:25hgbotNote Added: 0159663
2024-01-23 15:25hgbotResolutionopen => fixed
2024-01-23 15:25hgbotStatusscheduled => closed
2024-01-23 15:25hgbotFixed in Version => RR24Q1
2024-01-23 15:25hgbotNote Added: 0159664

Notes
(0159654)
hgbot   
2024-01-23 15:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/654 [^]
(0159659)
hgbot   
2024-01-23 15:21   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/654 [^]
(0159660)
hgbot   
2024-01-23 15:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/655 [^]
(0159661)
hgbot   
2024-01-23 15:23   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/655 [^]
(0159662)
hgbot   
2024-01-23 15:24   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/656 [^]
(0159663)
hgbot   
2024-01-23 15:25   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/656 [^]
(0159664)
hgbot   
2024-01-23 15:25   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 3564cb1bdfb60422c6480b28b10d45a6f92d132a
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 23-01-2024 15:23:41
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/3564cb1bdfb60422c6480b28b10d45a6f92d132a [^]

Fixes ISSUE-54362: Model.withIds should not include undefined entries in response

If any of the ids included in the parameter of the withIds function does not represent an existing value for the selected model,
an undefined entry should not be included in the returned array, because consumers of that API would need to check for null when
processing the response.

---
M web/org.openbravo.mobile.core/app/model/persistence/indexeddb/Model.js
---