Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034177Retail ModulesDiscounts and Promotionspublic2016-10-05 13:422016-10-21 14:31
malsasua 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
20Community Appliance
 
 
marvintm
No
0034177: JS erros is returned when there are not discretionary discounts availables with multipricelist
with multipricelist, if there are not discretionary discounts available for the current pricelist, button to apply is enabled, but if you click it, JS error is returned
backend:
. go to discounts and promotions window
 . disable the next three discounts:
disc_5_var_euro
disc_fixed_5_euro
disc_fixed_5_perc

 . modify discount disc_5_var_euro:
   .include price list: Only those defined
   . tab pricelist:
     new record: Sale Price List Customer VIP

in terminal MPL1
. new receipt
 . add line
 . click in "receipt discounts" option in menu
JS Error is returned:
Cannot read property 'model' of undefined at Object.discountChanged
No tags attached.
png error.png (247,416) 2016-10-05 13:43
https://issues.openbravo.com/file_download.php?file_id=9897&type=bug
png
Issue History
2016-10-05 13:42malsasuaNew Issue
2016-10-05 13:42malsasuaAssigned To => Retail
2016-10-05 13:42malsasuaResolution time => 1477432800
2016-10-05 13:42malsasuaTriggers an Emergency Pack => No
2016-10-05 13:43malsasuaFile Added: error.png
2016-10-11 08:29ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-10-11 08:29ranjith_qualiantech_comStatusnew => scheduled
2016-10-19 08:03hgbotCheckin
2016-10-19 08:03hgbotNote Added: 0090682
2016-10-19 08:03hgbotStatusscheduled => resolved
2016-10-19 08:03hgbotResolutionopen => fixed
2016-10-19 08:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/891ca00538249b524a6600a5ccb787f6c4ca9c30 [^]
2016-10-21 14:31marvintmReview Assigned To => marvintm
2016-10-21 14:31marvintmStatusresolved => closed

Notes
(0090682)
hgbot   
2016-10-19 08:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 891ca00538249b524a6600a5ccb787f6c4ca9c30
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Oct 18 12:11:46 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/891ca00538249b524a6600a5ccb787f6c4ca9c30 [^]

Fixes issue 34177 : Prevent Discount change event if the discount is empty

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