Openbravo Issue Tracking System - POS2
View Issue Details
0051677POS2POSpublic2023-02-16 17:022023-02-24 13:21
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
23Q123Q1 
No
0051677: When creating a new customer, if one mandatory info is missing, filling it and valid is KO
On Pos2, when I create a new customer, I fill some mandatory info except address. Then I validate.
A error message appears, which is correct because a missing data is found.


Expected result : the mandatory fields are marked in red color and it’s possible to fill them and validate the form

Obtained result : impossible to fill the form. Everything is grayed out.
We have to click on undo and refill the form again.
1- Login in POS2.
2- Click on customer name after create new customer.
3- Fill in all the fields without the address.
4- Click on save.

the mandatory fields are marked in red color and it’s impossible to fill the form. Everything is grayed out.
No tags attached.
blocks defect 0051635 closed meriem_azaf When creating a new customer, if one mandatory info is missing, filling it and valid is KO 
Issue History
2023-02-22 16:37meriem_azafTypedefect => backport
2023-02-22 16:37meriem_azafTarget Version => 23Q1
2023-02-24 08:25hgbotNote Added: 0146955
2023-02-24 13:21hgbotResolutionopen => fixed
2023-02-24 13:21hgbotStatusscheduled => closed
2023-02-24 13:21hgbotFixed in Version => 23Q1
2023-02-24 13:21hgbotNote Added: 0146981
2023-02-24 13:21hgbotNote Added: 0146982

Notes
(0146955)
hgbot   
2023-02-24 08:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/989 [^]
(0146981)
hgbot   
2023-02-24 13:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 542a82362f9f2fc3ba44da48cdfdefb0965bc15b
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 24-02-2023 08:07:58
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/542a82362f9f2fc3ba44da48cdfdefb0965bc15b [^]

Fixes ISSUE-51677: When creating a new customer, if one mandatory info is missing, filling it and valid is KO

On Pos2, when I create a new customer, I fill some mandatory info except address. Then I validate.

Obtained result : impossible to fill the form. Everything is grayed out.

The problem was that we validate the field twice, we deciced to cancel one validation by adding isValidation in formHandler.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.core2/src/components/Form/BaseForm.jsx
M web-jspack/org.openbravo.core2/src/components/Form/FormHandler.js
---
(0146982)
hgbot   
2023-02-24 13:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/989 [^]