Openbravo Issue Tracking System - POS2
View Issue Details
0056106POS2POSpublic2024-07-24 14:062024-08-02 15:12
guilleaer 
sreehari 
normalmajorhave not tried
closedfixed 
5
 
24Q4 
No
0056106: [RM-15704] When an order pointing to a customer which is not part of master data is loaded an error is shown
When an order pointing to a customer which is not part of master data is loaded an error is shown

see more info in jira: https://openbravo.atlassian.net/browse/RM-15704 [^]
From POS2 create a new customer
Create an order with this customer
refresh master data
refresh POS
using dev tools remove from business partner master data the recently created customer (remove from indexed db)

try to open the order from "orders"
it will fail

"Error
The paid receipt can not be loaded because customer is not valid for this terminal."

This happens because there is a condition in
"customerLoaded.java" which needs to be removed (https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/3d4db00a5bc27431d1cbb2e50e4cb4cf98646512/src/org/openbravo/retail/posterminal/master/LoadedCustomer.java#L102 [^])

After fixing that problem other problem appears

POS2 when the order is loaded executes a call to CRM connector to load the business partner but it does not exists (CRM calls to masterdata)


1. Remove mentioned condition from query
2. When we are loading an order using this method (loadedCustomer) POS2 should not try to load customer data from the CRM
No tags attached.
Issue History
2024-07-24 14:06guilleaerNew Issue
2024-07-24 14:06guilleaerAssigned To => Retail
2024-07-24 14:06guilleaerTriggers an Emergency Pack => No
2024-07-24 14:06guilleaerStatusnew => acknowledged
2024-07-24 14:08guilleaerSummaryWhen an order pointing to a customer which is not part of master data is loaded an error is shown => [RM-15704] When an order pointing to a customer which is not part of master data is loaded an error is shown
2024-07-24 14:08guilleaerDescription Updatedbug_revision_view_page.php?rev_id=28283#r28283
2024-07-24 14:08guilleaerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28285#r28285
2024-07-24 14:08guilleaerProposed Solution updated
2024-07-25 09:04sreehariAssigned ToRetail => sreehari
2024-07-25 09:04sreehariStatusacknowledged => scheduled
2024-07-29 06:49hgbotNote Added: 0167409
2024-07-29 06:50hgbotNote Added: 0167410
2024-08-02 15:11hgbotNote Added: 0167664
2024-08-02 15:11hgbotNote Added: 0167665
2024-08-02 15:12hgbotNote Added: 0167666
2024-08-02 15:12hgbotResolutionopen => fixed
2024-08-02 15:12hgbotStatusscheduled => closed
2024-08-02 15:12hgbotFixed in Version => 24Q4
2024-08-02 15:12hgbotNote Added: 0167667

Notes
(0167409)
hgbot   
2024-07-29 06:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2823 [^]
(0167410)
hgbot   
2024-07-29 06:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1635 [^]
(0167664)
hgbot   
2024-08-02 15:11   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 12c65df3ac81b8a0fa8671043bcd3b38152278c0
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 02-08-2024 13:11:53
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/12c65df3ac81b8a0fa8671043bcd3b38152278c0 [^]

Related to ISSUE-56106: enabled fallBack when customer is not part of the master data when order is loaded

---
M src/org/openbravo/retail/posterminal/master/LoadedCustomer.java
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js
---
(0167665)
hgbot   
2024-08-02 15:11   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1635 [^]
(0167666)
hgbot   
2024-08-02 15:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2823 [^]
(0167667)
hgbot   
2024-08-02 15:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 7c5e58478868a4ea37e54bf15f938efed9b87aea
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 02-08-2024 13:12:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7c5e58478868a4ea37e54bf15f938efed9b87aea [^]

Fixes ISSUE-56106: enabled fallBack when customer is not part of the master data when order is loaded

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