Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051856Retail ModulesWeb POSpublic2023-03-15 10:212023-04-17 07:06
ngarcia 
radhakrishnan 
urgentmajoralways
closedfixed 
5
 
RR23Q3 
approved
Gold
60448
No
0051856: Order goes to Errors While Importing POS Data if the business partner does not have a shipping address defined
Order goes to Errors While Importing POS Data if the business partner does not have a shipping address defined
In the backoffice:
   Create a business partner
   Add the required information in the Customer tab (Price List, Payment Method, Payment Terms, Invoice Terms...)
   Add a Contact to it
   Add an address to it. Set it as Shipping Address = 'N'

In the POS:
   Add a product, set the previously created business partner and pay it
   Check the order is in Errors While Importing POS Data with the following error:
org.postgresql.util.PSQLException: ERROR: insert or update on table "c_order" violates foreign key constraint "c_order_c_bpartner_location1"
  Detail: Key (c_bpartner_location_id)=(null) is not present in table "c_bpartner_location".

If delivery modes are enabled, it fails with Pick and Carry, Pickup In Store and Pickup In Store with date

If Home Delivery is selected, the following pop-up is shown in the POS:

Cannot calculate receipt taxes
Cannot find taxes for partner '...', address 'Empty' and tax category '...'. The line affected will be deleted. Please ensure that there is at least one tax rate and tax rate zone configured for the partner address.
Check if the partner has a shipping address defined before importing the ticket from the POS
No tags attached.
related to defect 0047489 closed rqueralta Uncheck the Shipping Address in the customer generates EWI when a purchase is done 
Issue History
2023-03-15 10:21ngarciaNew Issue
2023-03-15 10:21ngarciaAssigned To => Retail
2023-03-15 10:21ngarciaOBNetwork customer => Gold
2023-03-15 10:21ngarciaSupport ticket => 60448
2023-03-15 10:21ngarciaTriggers an Emergency Pack => No
2023-03-15 10:21ngarciaRelationship addedrelated to 0047489
2023-03-16 08:27radhakrishnanAssigned ToRetail => radhakrishnan
2023-03-16 08:28radhakrishnanStatusnew => scheduled
2023-04-12 12:47hgbotMerge Request Status => open
2023-04-12 12:47hgbotNote Added: 0148410
2023-04-17 07:05hgbotMerge Request Statusopen => approved
2023-04-17 07:06hgbotResolutionopen => fixed
2023-04-17 07:06hgbotStatusscheduled => closed
2023-04-17 07:06hgbotNote Added: 0148453
2023-04-17 07:06hgbotFixed in Version => RR23Q3
2023-04-17 07:06hgbotNote Added: 0148454

Notes
(0148410)
hgbot   
2023-04-12 12:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1139 [^]
(0148453)
hgbot   
2023-04-17 07:06   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1139 [^]
(0148454)
hgbot   
2023-04-17 07:06   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: f3b4ca0e01d47b6b68fee9889c5e6ef84dab3a14
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 12-04-2023 16:13:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/f3b4ca0e01d47b6b68fee9889c5e6ef84dab3a14 [^]

Fixed ISSUE-51856: Error should be shown if BP doesn't have shipping address

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.posterminal/js/hookPrePayment.js
---