Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027915Retail ModulesGift cards and gift voucherspublic2014-10-20 13:532015-09-08 11:28
plujan 
marvintm 
normalminorhave not tried
newopen 
5
main 
 
No
0027915: Error message when not filling the fields properly is not clear enough
When creating a new Gif Card product, I've made a mistake when filling the "POS Properties" section. As a result, I've got an error message that is too generic to let me know what was my mistake.

Error
Saving failed. There is a constraint defined that was not satisfied. Please check the data entered
1. Having the Gift and Vouchers module installed, log in the backend as WhiteValley admin role.
2. Go to Product and create a new product with following data:

Organization: Vall Blanca Store
Search Key: GC/001
Name: Gift card 1
UOM: Unit
Product Category: Backpacks & Travel
Tax Category: IVA Normal
Purchase: Unchecked
Sales: Checked
Stocked: Unchecked

In POS properties (section)
Is Scale: Unchecked
Grouped Product: Unchecked
Show stock screen: Unchecked
Gift Card Type: Gift Card
Gift Card Initial Amount: 1000.00

Finally, Deferred Revenue: checked

This last field should have been unchecked, but if you try to save the record with the field as checked, an error is raised:

Error
Saving failed. There is a constraint defined that was not satisfied. Please check the data entered

Although it is correct to raise an error, the message is too generic and force the user to check every possible field or combination.
Error messages should be as specific as possible in order to help the user to fix it and continue. Generic error messages lead to a bad user experience.

There is a missing ad_message in a module
Check this: http://wiki.openbravo.com/wiki/How_to_add_a_Constraint#Adding_a_proper_message [^] [^]
No tags attached.
Issue History
2014-10-20 13:53plujanNew Issue
2014-10-20 13:53plujanAssigned To => marvintm
2014-10-20 13:53plujanTriggers an Emergency Pack => No
2015-09-07 17:48OrekariaNote Added: 0080208
2015-09-08 11:28OrekariaNote Added: 0080239
2015-09-08 11:28OrekariaNote Deleted: 0080208
2015-09-08 11:28OrekariaProposed Solution updated

Notes
(0080239)
Orekaria   
2015-09-08 11:28   
There is a missing ad_message in a module
Check this: http://wiki.openbravo.com/wiki/How_to_add_a_Constraint#Adding_a_proper_message [^]