Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027719Retail ModulesWeb POSpublic2014-09-30 14:442014-10-07 12:38
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR15Q1 
szapata
No
0027719: When saving a customer in the CustomerLoader also check for user names in other clients/org/inactive to prevent unique constrain
In the CustomerLoader there is a piece of code which automatically changes the username if there is a collision with an existing user. The current query ignores users in other clients/inactive ones.

The query should also search for users in other clients/org/inactive
- Create a new user, give it a specific username (Jelle Taal or something), set the user to be inactive
- In WebPOS in customers dialog create a new user with firstname: Martin and second name: Taal, save
- See that a record is created in the POS import errors
No tags attached.
diff 27719.diff (770) 2014-09-30 14:54
https://issues.openbravo.com/file_download.php?file_id=7287&type=bug
Issue History
2014-09-30 14:44mtaalNew Issue
2014-09-30 14:44mtaalAssigned To => mtaal
2014-09-30 14:44mtaalTriggers an Emergency Pack => No
2014-09-30 14:54mtaalFile Added: 27719.diff
2014-10-05 23:17hgbotCheckin
2014-10-05 23:17hgbotNote Added: 0070719
2014-10-05 23:17hgbotStatusnew => resolved
2014-10-05 23:17hgbotResolutionopen => fixed
2014-10-05 23:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5ed1c2d6ec1bb9d099fb328f34f984b82e56e0e6 [^]
2014-10-07 12:38szapataReview Assigned To => szapata
2014-10-07 12:38szapataStatusresolved => closed

Notes
(0070719)
hgbot   
2014-10-05 23:17   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 5ed1c2d6ec1bb9d099fb328f34f984b82e56e0e6
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 05 23:17:36 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5ed1c2d6ec1bb9d099fb328f34f984b82e56e0e6 [^]

Fixes issue 27719: when saving customer also check for inactive users
The ad_user table has a unique constraint on the user name, so when searching for user name collisions then also search for inactive users and users of other clients/orgs

---
M src/org/openbravo/retail/posterminal/CustomerLoader.java
---