Openbravo Issue Tracking System - POS2
View Issue Details
0057838POS2POSpublic2025-02-03 11:082025-02-13 13:08
jinigo 
NaroaIriarte 
normalminoralways
closedfixed 
5
 
25Q2 
No
0057838: [25Q1] Postal Code Validation Not Applied
When postcode validation is configured in CRM Connector Configuration, the system allows saving and assigning a customer without a postcode, without displaying any error message.
In the Backoffice:
1. Go to 'CRM Connector Configuration' window
2. Proceed to 'API Property for Address' tab
3. Open 'postalCode' property (required field in POS)
4. Proceed to 'Validations and Notifications' section
5. Set Validation = Informative and Validation type = Empty
6. Remove postal code ('Location/Address' tab → 'Location address' field of 'Business Partner' window) for the selected Customer

7. Login to POS2
8. Push 'VBS Customer' button
9. Search for Customer
10. A dialog is shown, click 'Yes, Fix Data' button
11. Go to Manage Address(es)
12. Select the address
13. Push 'Save' button

Expected results: 'Postal code' is a highlighted field and it is not possible to save until 'Postal code' field is completed

Actual results: 'Postal code' is not highlighted and it is possible to save.
No tags attached.
related to design defect 0057989 resolved NaroaIriarte The code that validates the CRM configuration properties, should be refectored 
Issue History
2025-02-03 11:08jinigoNew Issue
2025-02-03 11:08jinigoAssigned To => Retail
2025-02-03 11:08jinigoTriggers an Emergency Pack => No
2025-02-03 11:46jinigoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29158#r29158
2025-02-03 13:46guillermogilAssigned ToRetail => guilleaer
2025-02-09 17:32guilleaerAssigned Toguilleaer => NaroaIriarte
2025-02-09 17:32guilleaerStatusnew => acknowledged
2025-02-11 11:46hgbotNote Added: 0175472
2025-02-13 12:44guilleaerStatusacknowledged => scheduled
2025-02-13 13:08hgbotNote Added: 0175595
2025-02-13 13:08hgbotResolutionopen => fixed
2025-02-13 13:08hgbotStatusscheduled => closed
2025-02-13 13:08hgbotFixed in Version => 25Q2
2025-02-13 13:08hgbotNote Added: 0175596
2025-02-14 10:50NaroaIriarteRelationship addedrelated to 0057989

Notes
(0175472)
hgbot   
2025-02-11 11:46   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3481 [^]
(0175595)
hgbot   
2025-02-13 13:08   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3481 [^]
(0175596)
hgbot   
2025-02-13 13:08   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 3b2262b025981f97f0e6f6b8febd2ea2abf94860
Author: Naroa Iriarte <n.iriarte@orisha.com>
Date: 13-02-2025 12:08:45
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/3b2262b025981f97f0e6f6b8febd2ea2abf94860 [^]

fixed ISSUE-57838: CRM entity validations now works for addresses

---
M web-jspack/org.openbravo.pos2/src/components/Customer/CustomerUtils/CustomerFormHandlerUtils.js
---