Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047489Retail ModulesWeb POSpublic2021-08-03 11:202021-08-24 07:35
hector_hernaez 
rqueralta 
highmajoralways
closedfixed 
5
 
RR21Q4 
approved
Gold
26838
No
0047489: Uncheck the Shipping Address in the customer generates EWI when a purchase is done
An EWI arises in the Backoffice when the purchase is done by a customer that has the 'Shipment address' unchecked in the 'Edit Customer Address' window.

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".
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2285)
These steps were reproduced in 'Livebuilds - Retail with modules'

- Create a new customer.
- Create a new ticket.
- In the select customer window, go manage address option in the costumer and
  after, to edit in the address.
- Uncheck 'Shipping Address'.
- Complete a purchase with that customer.
- Go to 'Error while importing POS data' window in backoffice.
- You will see an error related to that order.
No tags attached.
related to defect 0051856 closed radhakrishnan Order goes to Errors While Importing POS Data if the business partner does not have a shipping address defined 
Issue History
2021-08-03 11:20hector_hernaezNew Issue
2021-08-03 11:20hector_hernaezAssigned To => Retail
2021-08-03 11:20hector_hernaezOBNetwork customer => Gold
2021-08-03 11:20hector_hernaezSupport ticket => 26838
2021-08-03 11:20hector_hernaezResolution time => 1629756000
2021-08-03 11:20hector_hernaezTriggers an Emergency Pack => No
2021-08-03 14:18malsasuaDescription Updatedbug_revision_view_page.php?rev_id=22958#r22958
2021-08-03 14:43adrianromeroStatusnew => acknowledged
2021-08-04 10:36hector_hernaezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22966#r22966
2021-08-04 10:36hector_hernaezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22967#r22967
2021-08-05 12:52adrianromeroStatusacknowledged => scheduled
2021-08-05 12:52adrianromeroAssigned ToRetail => rqueralta
2021-08-23 05:57hgbotMerge Request Status => open
2021-08-23 05:57hgbotNote Added: 0131239
2021-08-23 05:58hgbotNote Added: 0131240
2021-08-24 07:34hgbotMerge Request Statusopen => approved
2021-08-24 07:34hgbotResolutionopen => fixed
2021-08-24 07:34hgbotStatusscheduled => closed
2021-08-24 07:34hgbotNote Added: 0131277
2021-08-24 07:34hgbotFixed in Version => RR21Q4
2021-08-24 07:34hgbotNote Added: 0131278
2021-08-24 07:35hgbotNote Added: 0131279
2021-08-24 07:35hgbotNote Added: 0131280
2023-03-15 10:21ngarciaRelationship addedrelated to 0051856

Notes
(0131239)
hgbot   
2021-08-23 05:57   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/120 [^]
(0131240)
hgbot   
2021-08-23 05:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/551 [^]
(0131277)
hgbot   
2021-08-24 07:34   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/551 [^]
(0131278)
hgbot   
2021-08-24 07:34   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 54769cab1bc777dcc81df7f111d0b068da338cb4
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-08-24T05:34:26+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/54769cab1bc777dcc81df7f111d0b068da338cb4 [^]

Fixed BUG-47489: Show error when the current customer does not have any Shipping Address defined

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customeraddress/components/sharedcomponents.js
---
(0131279)
hgbot   
2021-08-24 07:35   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 4ef18bd34ca54d65229528c7116dd4bcbaa19e64
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-08-24T05:34:48+00:00
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/4ef18bd34ca54d65229528c7116dd4bcbaa19e64 [^]

Related to BUG-47489: Updated Test CheckNumberButtonsAddress, I36214_VerifyCustomerManageAddress, I36641_VerifyReceiptAddressOnCustomerUpdate, SelectBothAddress, CheckShippingAddressMandatory, I42978_VerifyCustomerAddress

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/CheckNumberButtonsAddress.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/CheckShippingAddressMandatory.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/I36214_VerifyCustomerManageAddress.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/I36641_VerifyReceiptAddressOnCustomerUpdate.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/I42978_VerifyCustomerAddress.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/SelectBothAddress.java
---
(0131280)
hgbot   
2021-08-24 07:35   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/120 [^]