Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044404Retail ModulesWeb POSpublic2020-06-18 08:302020-07-13 17:36
cdehen 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
RR20Q1.2 
RR20Q3 
adrianromero
No
0044404: Crash when we try to use a promotion with a particular promotion Type
When you try to use a promotion with a promotion type 'Variable Discount per Total Amount' and field amount without value (null) to allow at the user to set himself the value of the discount in WebPOS.

In WebPOS, in version 20Q1 you have a popup information message, in 20Q2 you have a null pointer in JS even if the user sets a value for the discount.

To fix it, it is possible to add in promotion a 0 value in the field amount. In this case, you don't have the error message or the null pointer but the discount is never apply (apply with 0 value) even if you set another value when you try to apply the discount.

To fix it again, it is possible to set a value in the field amount different of 0 (for example 0.01). If you do this now, it is possible to set a value for the discount in WebPOS and this time the discount is apply correctly.
In BO : Setup a promotion in Window 'Discounts and Promotions' with a promotion type 'Variable Discount per Total Amount' and without value in the field amount.

In WebPOS :
Start a ticket with one or several products
Use Discount Button
Select the new Discount (created previously)
Set a value
And apply the discount

In 20Q1 you have an information message
In 20Q2 you have a null pointer in JS
No tags attached.
related to defect 0043635 closed ranjith_qualiantech_com The Variable Discounts per Total do not work if amount/percentage is not defined. 
related to defect 0042630 closed rqueralta Variable Percentage Discount per Total Amount uses hidden percentage discount as default percentage 
pdf Issue 91 - 20Q1.pdf (498,601) 2020-06-18 08:30
https://issues.openbravo.com/file_download.php?file_id=14645&type=bug
Issue History
2020-06-18 08:30cdehenNew Issue
2020-06-18 08:30cdehenAssigned To => Retail
2020-06-18 08:30cdehenFile Added: Issue 91 - 20Q1.pdf
2020-06-18 08:30cdehenTriggers an Emergency Pack => No
2020-07-02 15:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-07-03 07:43ranjith_qualiantech_comRelationship addedrelated to 0043635
2020-07-10 12:04ranjith_qualiantech_comRelationship addedrelated to 0042630
2020-07-13 17:36adrianromeroReview Assigned To => adrianromero
2020-07-13 17:36adrianromeroNote Added: 0121426
2020-07-13 17:36adrianromeroStatusnew => closed
2020-07-13 17:36adrianromeroResolutionopen => fixed
2020-07-13 17:36adrianromeroFixed in Version => RR20Q3

Notes
(0121426)
adrianromero   
2020-07-13 17:36   
This issue is already fixed in 20Q3. Related issues fixes also fix this issue.