Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042281Retail ModulesWeb POSpublic2019-11-14 13:372019-11-14 13:37
plujan 
Retail 
normalminorhave not tried
newopen 
5
main 
 
No
0042281: [19Q4] Using the max length of the Name field when creating a new customer shows a message that is not correct
In the backend, a Business Partner has one field for the name, that is 60 chars long.
In the frontend, a Customer has two fields, "Name" and "Last Name". In order to match this difference, a not very clear message saying "Name+Last name is too long (60 characters max)"

But even if I take a valid backend user name and paste it in Name, I am getting this message.
1. Enter the backend and create a new Business Partner.
2. As name enter a text as long as the field allows (60 chars)
3. Complete the rest of the mandatory fields and save. Check that as expected, the record is saved.
4. Go to the frontend and create a new Customer.
5. As name enter the same text used in step 2
6. Notice the error message.
As per the reported issue, I think it is clear that something is wrong with the 60 chars validation.

I'd also strongly suggest changing the message to something more human readable, like "The Customer's first plus last name should not exceed the 60 chars and currently they sum 61"

A better approach would be instead to dynamically limit the total number of the fields based on the current contents, so no need of showing any message.
No tags attached.
png EditCustomerFillName.png (50,724) 2019-11-14 13:37
https://issues.openbravo.com/file_download.php?file_id=13536&type=bug
png
Issue History
2019-11-14 13:37plujanNew Issue
2019-11-14 13:37plujanAssigned To => Retail
2019-11-14 13:37plujanFile Added: EditCustomerFillName.png
2019-11-14 13:37plujanTriggers an Emergency Pack => No
2019-11-14 13:37plujanversion => main

There are no notes attached to this issue.