Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055304Retail ModulesOmnichannelpublic2024-04-24 12:342024-04-25 10:02
gorkaion 
Triage Omni OMS 
highmajoralways
closedfixed 
5
 
RR24Q3 
No
0055304: Cannot set Home Delivery if customer does not have a default shipping address
When a ticket has assigned a customer with no default shipping location it is not possible to set a line as Home Delivery. The POS shows a "Cannot read properties of undefined (reading 'countryId')" error message.

Note: It is possible to set a line as Home Delivery when Anonymous customer is set to the ticket.

Note2: If the assigned customer has a default shipping location it is also possible to set the line as Home Delivery since the ticket already has that address as shipping location.

1. Create a new customer with an shipping address with the default flag disabled. Do not assign it to the ticket.
2. Assign the newly created customer to the ticket.
3. Add a product to the ticket
4. Click on the line -> Delivery mode
5. Select 'Home Delivery'
6. Click OK -> the mentioned JS error appears.
No tags attached.
has duplicate defect 0055145 closed Triage Omni OMS POS2 [24Q2] Incorrect error message when trying to use Home Delivery at line level with no address 
Issue History
2024-04-24 12:34gorkaionNew Issue
2024-04-24 12:34gorkaionAssigned To => Retail
2024-04-24 12:34gorkaionTriggers an Emergency Pack => No
2024-04-24 19:16aferrazAssigned ToRetail => Triage Omni OMS
2024-04-24 19:17aferrazNote Added: 0163703
2024-04-24 19:19aferrazRelationship addedhas duplicate 0055145
2024-04-25 06:45hgbotNote Added: 0163707
2024-04-25 10:02hgbotResolutionopen => fixed
2024-04-25 10:02hgbotStatusnew => closed
2024-04-25 10:02hgbotFixed in Version => RR24Q3
2024-04-25 10:02hgbotNote Added: 0163722
2024-04-25 10:02hgbotNote Added: 0163723

Notes
(0163703)
aferraz   
2024-04-24 19:17   
Jira: https://openbravo.atlassian.net/browse/RM-13460 [^]
(0163707)
hgbot   
2024-04-25 06:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1540 [^]
(0163722)
hgbot   
2024-04-25 10:02   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 5a4601f944565b505f17eaa02dc729996a70f6c8
Author: jonalegria <jon.alegria@openbravo.com>
Date: 25-04-2024 06:44:42
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/5a4601f944565b505f17eaa02dc729996a70f6c8 [^]

Fixes ISSUE-55304: Adding a validation to avoid exceptions when there is no shipping address set by default when choosing the home delivery as delivery method

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---
(0163723)
hgbot   
2024-04-25 10:02   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1540 [^]