Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032325Retail ModulesWeb POSpublic2016-02-15 22:042016-03-08 19:20
agete 
ranjith_qualiantech_com 
highminoralways
closedfixed 
5
 
RR16Q1RR16Q1 
guilleaer
No
0032325: [SERQA 692] Javscript error when adding a manual discount
"Promotion and Discount: If we insert a manual amount discount without pressing ENTER or Discount, WE get a javascript error.

1. In backend create a Discount and promotion woth the following information:
- Org: *
- Discount/promotion type: User Defined Amount
- Name: Amount discount
- Starting date: 1/2/2016
Leave the other fields as thy are by default
2. In web POS create a receipt and add the product "headlamp ultralight"
3. In menu select the option Receipt discounts
4. In payment pannel select the option Amount discount
5. Check both options,
Override existing promotions
Apply to all lines
6. Click amount 12 (without pressing the button DISCOUNT or ENTER)
7. Click the button APPLY
ERROR--> a javascript error appears
Instead of the javascript error, we should have a Error message saying por example: "you must click enter or DISCOUNT before APPLY button in order to add the discount to the receipt"
No tags attached.
blocks defect 0032243 closed ranjith_qualiantech_com [SERQA 692] Javscript error when adding a manual discount 
patch issue 32325 posterminal RR16Q1 6111.patch (1,170) 2016-02-25 17:44
https://issues.openbravo.com/file_download.php?file_id=9106&type=bug
Issue History
2016-02-24 14:19OrekariaTypedefect => backport
2016-02-24 14:19OrekariaTarget Version => RR16Q1
2016-02-25 17:44ranjith_qualiantech_comFile Added: issue 32325 posterminal RR16Q1 6111.patch
2016-02-29 18:15marvintmSeveritymajor => minor
2016-03-02 17:04hgbotCheckin
2016-03-02 17:04hgbotNote Added: 0084663
2016-03-02 17:04hgbotStatusscheduled => resolved
2016-03-02 17:04hgbotResolutionopen => fixed
2016-03-02 17:04hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/94638e56e37bc53643b40c083e5866b59792139b [^] => http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/3829ddc332fb0d89248afffa001006816afe1442 [^]
2016-03-08 19:20guilleaerReview Assigned To => guilleaer
2016-03-08 19:20guilleaerStatusresolved => closed
2016-03-08 19:20guilleaerFixed in Version => RR16Q1

Notes
(0084663)
hgbot   
2016-03-02 17:04   
Repository: retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal
Changeset: 3829ddc332fb0d89248afffa001006816afe1442
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Mar 02 17:04:24 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/3829ddc332fb0d89248afffa001006816afe1442 [^]

Fixed issue 32325. Validating Variable Discount Amount before applying to receipt

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
---