Openbravo Issue Tracking System - POS2
View Issue Details
0055671POS2POSpublic2024-04-11 13:262024-06-10 14:37
Markel_Iruretagoyena 
Rajesh_18 
normalmajoralways
closedfixed 
5
 
24Q1.3 
approved
OBPS
No
0055671: [24Q2] Cash up and Order errors after adding a new address with a large number or string in the postal code field
Add a new address for a customer with large number or string in the postal code field and select it as the 'Invoicing Address'. After creating a ticket and doing the cash up, it will generate Cash Up and Order errors.
1. Login to POS
2. Click on 'VBS Customer' and search for any customer, e.g. Arturo Montoro
3. Click on 'Arturo Montoro' (or the customer you selected), then click on 'Manage Address(es)'
4. Click on 'NEW ADDRESS'
5. On 'Postal Code' type 59300 VALENCIENNES
6. Fill in the rest of the mandatory fields and check the 'Invoicing Address' checkbox
7. Click on 'SAVE AND ASSIGN'
8. Add a product to the ticket and pay for it
9. Do a cash up
10. Login to Backoffice, then go to the 'Errors While Importing POS Data' window

Note that you have the next Cash Up error: org.openbravo.base.exception.OBException: There are errors related to non-created customers, orders, or cash management movements pending to be processed. Process them before processing the cash ups...

And also the next Order error: org.postgresql.util.PSQLException: ERROR: insert or update on table "c_order" violates foreign key constraint "c_order_billto"
  Detail: Key (billto_id)=(279D36FB44608B06620A640DDF363AD3) is not present in table "c_bpartner_location".
No tags attached.
blocks defect 0055171 closed Rajesh_18 [24Q2] Cash up and Order errors after adding a new address with a large number or string in the postal code field 
Issue History
2024-06-04 13:11marvintmTypedefect => backport
2024-06-04 13:11marvintmTarget Version => 24Q1.3
2024-06-04 14:33hgbotNote Added: 0165539
2024-06-04 14:34hgbotNote Added: 0165540
2024-06-04 14:35hgbotNote Added: 0165541
2024-06-10 14:37hgbotResolutionopen => fixed
2024-06-10 14:37hgbotStatusscheduled => closed
2024-06-10 14:37hgbotFixed in Version => PR24Q1.3
2024-06-10 14:37hgbotNote Added: 0165721
2024-06-10 14:37hgbotNote Added: 0165722
2024-06-10 14:37hgbotNote Added: 0165723
2024-06-10 14:37hgbotNote Added: 0165724
2024-06-10 14:37hgbotNote Added: 0165725
2024-06-10 14:37hgbotNote Added: 0165726

Notes
(0165539)
hgbot   
2024-06-04 14:33   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1267 [^]
(0165540)
hgbot   
2024-06-04 14:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2698 [^]
(0165541)
hgbot   
2024-06-04 14:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata/-/merge_requests/92 [^]
(0165721)
hgbot   
2024-06-10 14:37   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 43aa4ad180979d6a33f311fa0d86ee88646bf400
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 04-06-2024 17:23:35
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/43aa4ad180979d6a33f311fa0d86ee88646bf400 [^]

Fixed ISSUE-55671: Added new field length to validate input field

---
M src-db/database/model/tables/C_EXTBP_CONFIG_PROPERTY.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0165722)
hgbot   
2024-06-10 14:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: ae55957ff9b15abfe8d3eb66a1f7317470801edf
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 04-06-2024 17:45:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/ae55957ff9b15abfe8d3eb66a1f7317470801edf [^]

Related to ISSUE-55671: Added max length property to input field

---
M referencedata/standard/CRM_Connector_for_Openbravo_Customers.xml
M web-jspack/org.openbravo.pos2/src/components/Customer/CustomerUtils/CustomerFormHandlerUtils.js
M web-jspack/org.openbravo.pos2/src/services/crm/OBCustomerRelationshipManagement.js
---
(0165723)
hgbot   
2024-06-10 14:37   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1267 [^]
(0165724)
hgbot   
2024-06-10 14:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2698 [^]
(0165725)
hgbot   
2024-06-10 14:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata [^]
Changeset: 73a9d5b3767a047f0fc499888f918f05bce75793
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 04-06-2024 18:01:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata/-/commit/73a9d5b3767a047f0fc499888f918f05bce75793 [^]

Related to ISSUE-55671: Added new field length in sample data

---
M referencedata/sampledata/The_White_Valley_Group/C_EXTBP_CONFIG_PROPERTY.xml
---
(0165726)
hgbot   
2024-06-10 14:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata/-/merge_requests/92 [^]