Openbravo Issue Tracking System - POS2
View Issue Details
0051450POS2POSpublic2023-01-25 10:482023-08-08 13:31
jarmendariz 
Triage Platform Base 
urgentmajorhave not tried
closedunable to reproduce 
5
 
 
jarmendariz
No
0051450: Keymap edition fails while importing when keymap information in terminal is not synchronized with server
When editing the Keymap using the Keymap Editor in POS2, it is possible that the data contained is not up-to-date with the info stored in server. When this mismatch occurs, terminal tries to save new product entries using a different ID that the one stored in server causing this exception:

org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "obpos2_keymap_prod_btn_pos_u"
- In POS Keymap -> MainApp Keymap -> Best Sellers -> Product Tab, create a new product entry without a value in "Product Button Appearance" and "Product Button Position" subtab.

- Open 2 VBS-2 terminal and refresh masterdata in both to ensure that both have the newly created product entry in Keymap Editor.

- Enter Keymap Editor -> Main App Keymap -> v1 -> Edit Layout
  - Check that the new product is available in the accordion on the left
  - Add this product to the Keymap in terminal 1 and press Save button
  - Add this product to the keymap in terminal 2 and press Save button

- Go to "errors while importing POS Data" Window in Backoffice and check there are errors.
No tags attached.
related to feature request 0052045 closed meriem_azaf Do not allow to use the Keymap Editor window if the master data is not up to date enoughIf they keymap editor is used with stale 
Issue History
2023-01-25 10:48jarmendarizNew Issue
2023-01-25 10:48jarmendarizAssigned To => Triage Platform Base
2023-01-25 10:48jarmendarizTriggers an Emergency Pack => No
2023-01-25 14:14hgbotNote Added: 0145835
2023-08-08 13:26jarmendarizReview Assigned To => jarmendariz
2023-08-08 13:26jarmendarizNote Added: 0153332
2023-08-08 13:26jarmendarizStatusnew => closed
2023-08-08 13:26jarmendarizResolutionopen => unable to reproduce
2023-08-08 13:27hgbotNote Added: 0153333
2023-08-08 13:31jarmendarizRelationship addedrelated to 0052045

Notes
(0145835)
hgbot   
2023-01-25 14:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1482 [^]
(0153332)
jarmendariz   
2023-08-08 13:26   
This issue is no longer reproducible. Probably fixed by 0052045
(0153333)
hgbot   
2023-08-08 13:27   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1482 [^]