Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035189Retail ModulesWeb POSpublic2017-02-07 16:472017-03-08 14:05
jonibc 
migueldejuana 
highmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0035189: [SERQA 2420] Business Partner name validation, error message hardcoded
In customer creation window, if we set a first name with 60 characters, and last name with one character, it is not possible to create a customer, because length for field name is 60 characters.

Using synchronized mode, error messages are shown to the user in a Popup. The error message shown is harcoded, so consequently is not translated.
In backend:
1- Create the preference Synchronized Mode = Y

In WebPOS:
1- Login to WebPOS.
2- Click on customer button, click on new customer.
3- Insert a FirstName with 60 characters (limit of the field), insert one character in LastName field, complete the rest of mandatory fields.
- Limit the characters of the fields like: FirstName(30), LastName(29). Or modify the Name field length.
- Create an ad_message to avoid hardcoded message and support translations.
No tags attached.
? issue35189PiMobile_1.commit (5,467) 2017-02-24 10:28
https://issues.openbravo.com/file_download.php?file_id=10485&type=bug
? issue35189PiMobile_2.commit (3,360) 2017-02-24 10:28
https://issues.openbravo.com/file_download.php?file_id=10486&type=bug
? issue35189Posterminal.commit (2,828) 2017-02-24 10:30
https://issues.openbravo.com/file_download.php?file_id=10487&type=bug
Issue History
2017-02-07 16:47jonibcNew Issue
2017-02-07 16:47jonibcAssigned To => Retail
2017-02-07 16:47jonibcResolution time => 1487631600
2017-02-07 16:47jonibcTriggers an Emergency Pack => No
2017-02-09 09:21migueldejuanaAssigned ToRetail => migueldejuana
2017-02-09 09:22migueldejuanaStatusnew => scheduled
2017-02-15 11:48hgbotCheckin
2017-02-15 11:48hgbotNote Added: 0094355
2017-02-15 11:48hgbotStatusscheduled => resolved
2017-02-15 11:48hgbotResolutionopen => fixed
2017-02-15 11:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/61e04c7290c964cc5972bbf71c5b36db4cc82b7d [^]
2017-02-15 11:56hgbotCheckin
2017-02-15 11:56hgbotNote Added: 0094358
2017-02-20 11:47marvintmNote Added: 0094459
2017-02-20 11:47marvintmStatusresolved => new
2017-02-20 11:47marvintmResolutionfixed => open
2017-02-24 10:26migueldejuanaStatusnew => scheduled
2017-02-24 10:28migueldejuanaFile Added: issue35189PiMobile_1.commit
2017-02-24 10:28migueldejuanaFile Added: issue35189PiMobile_2.commit
2017-02-24 10:30migueldejuanaFile Added: issue35189Posterminal.commit
2017-03-08 12:36hgbotCheckin
2017-03-08 12:36hgbotNote Added: 0094824
2017-03-08 12:36hgbotStatusscheduled => resolved
2017-03-08 12:36hgbotResolutionopen => fixed
2017-03-08 12:36hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/61e04c7290c964cc5972bbf71c5b36db4cc82b7d [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/72e01ef0efbc7813b94e48efad99af7a1170c39d [^]
2017-03-08 12:38hgbotCheckin
2017-03-08 12:38hgbotNote Added: 0094828
2017-03-08 12:39hgbotCheckin
2017-03-08 12:39hgbotNote Added: 0094829
2017-03-08 14:05marvintmReview Assigned To => marvintm
2017-03-08 14:05marvintmStatusresolved => closed
2017-03-08 14:05marvintmFixed in Version => RR17Q2

Notes
(0094355)
hgbot   
2017-02-15 11:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 61e04c7290c964cc5972bbf71c5b36db4cc82b7d
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Feb 09 12:18:39 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/61e04c7290c964cc5972bbf71c5b36db4cc82b7d [^]

Fixed issue 0035189: [SERQA 2420] Business Partner name validation, error message hardcoded

- Substring the generated text to fit with the length of the column (60)

---
M web/org.openbravo.retail.posterminal/js/model/businesspartner.js
---
(0094358)
hgbot   
2017-02-15 11:56   
Repository: tools/automation/pi-mobile
Changeset: 53c88c37cb27fac27f51d4fe4e88d919f56e7ca9
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Fri Feb 10 09:36:23 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/53c88c37cb27fac27f51d4fe4e88d919f56e7ca9 [^]

Related to issue 0035189: [SERQA 2420] Business Partner name validation, error message hardcoded

- Add a test to ensure that the substring is done

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/CustomerCreationHelper.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/NewCustomerLongName.java
---
(0094459)
marvintm   
2017-02-20 11:47   
Instead of truncating, we should validate that the length is correct, and then inform the user with a clear message in case the length is too long.
(0094824)
hgbot   
2017-03-08 12:36   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 72e01ef0efbc7813b94e48efad99af7a1170c39d
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Feb 20 17:15:17 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/72e01ef0efbc7813b94e48efad99af7a1170c39d [^]

Fixed issue 0035189: [SERQA 2420] Business Partner name validation, error message hardcoded

- Add a validation in the client side instead of cutting customer info

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customers/components/sharedcomponents.js
---
(0094828)
hgbot   
2017-03-08 12:38   
Repository: tools/automation/pi-mobile
Changeset: 46b4481c7dfd9b8ff714b5f5c709517c37bbe946
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Feb 22 08:30:06 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/46b4481c7dfd9b8ff714b5f5c709517c37bbe946 [^]

elated to issue 0035189: [SERQA 2420] Business Partner name validation, error message hardcoded

- Backout new test. We will do a clientside validation

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/CustomerCreationHelper.java
R src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/NewCustomerLongName.java
---
(0094829)
hgbot   
2017-03-08 12:39   
Repository: tools/automation/pi-mobile
Changeset: 4962b37614c0a4fd1b394a15fdbeea06aa2c61c6
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Feb 22 09:40:58 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/4962b37614c0a4fd1b394a15fdbeea06aa2c61c6 [^]

Related to issue 0035189: [SERQA 2420] Business Partner name validation, error message hardcoded

- Wait until selectors of new customer are filled

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I34168_verifyCustomerNameLength.java
---