# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1456418266 -19800
# Node ID 11e6778f6a5120c1a41f03718d63c9a594d03c38
# Parent  df469c6050082768d3f7ad0839bf2548029c327d
Related to issue 32243 : Validating Variable Discount Amount before applying to receipt

diff -r df469c605008 -r 11e6778f6a51 web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
--- a/web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js	Thu Feb 25 13:43:23 2016 +0100
+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js	Thu Feb 25 22:07:46 2016 +0530
@@ -236,7 +236,7 @@
     var comp = this._searchSelectedComponent(this.$.discountsList.getValue()),
         discountsContainer = this.$.discountsContainer;
     discountsContainer.model = comp.model;
-    discountsContainer.requiredQty = comp.requiredQty;
+    discountsContainer.requiresQty = comp.requiresQty;
     discountsContainer.amt = comp.amt;
     discountsContainer.units = comp.units;
     if (comp.model.get('discountType') === "8338556C0FBF45249512DB343FEFD280" || comp.model.get('discountType') === "7B49D8CC4E084A75B7CB4D85A6A3A578") {
