Openbravo Issue Tracking System - POS2
View Issue Details
0054361POS2POSpublic2024-01-16 14:232024-01-22 17:47
AugustoMauch 
AugustoMauch 
immediatecriticalhave not tried
closedfixed 
5
 
 
Production - QA Approved
2023-10-31
23Q4.1
    https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/afeb827459f6f1d4ac07e8d35e9b6ec4e9313b5b [^]
No
0054361: 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.
depends on backport 005436224Q1 closed AugustoMauch Keymap- Unable to do login if product is not in the Assorment and the price list of a store 
caused by defect 0053491 closed AugustoMauch Generation of small keymaps is very slow when there are many products in the masterdata 
Issue History
2024-01-16 14:23AugustoMauchNew Issue
2024-01-16 14:23AugustoMauchAssigned To => Retail
2024-01-16 14:23AugustoMauchTriggers an Emergency Pack => No
2024-01-16 14:23AugustoMauchAssigned ToRetail => AugustoMauch
2024-01-16 14:24AugustoMauchStatusnew => scheduled
2024-01-16 14:43AugustoMauchRegression level => Production - QA Approved
2024-01-16 14:43AugustoMauchRegression date => 2023-10-31
2024-01-16 14:43AugustoMauchRegression introduced in release => 23Q4.1
2024-01-16 14:43AugustoMauchRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/afeb827459f6f1d4ac07e8d35e9b6ec4e9313b5b [^]
2024-01-16 14:44AugustoMauchRelationship addedcaused by 0053491
2024-01-16 18:20hgbotNote Added: 0159396
2024-01-22 17:47hgbotNote Added: 0159610
2024-01-22 17:47hgbotResolutionopen => fixed
2024-01-22 17:47hgbotStatusscheduled => closed
2024-01-22 17:47hgbotFixed in Version => RR24Q2
2024-01-22 17:47hgbotNote Added: 0159611

Notes
(0159396)
hgbot   
2024-01-16 18:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/653 [^]
(0159610)
hgbot   
2024-01-22 17:47   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/653 [^]
(0159611)
hgbot   
2024-01-22 17:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: ef2646a5c98b90b0934e6bd0d3bff78d459566bc
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 22-01-2024 17:46:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/ef2646a5c98b90b0934e6bd0d3bff78d459566bc [^]

Fixes ISSUE-54361: 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
---