per product, allow for zero percentage coupons

This commit is contained in:
Chris Dodge
2014-09-23 15:29:26 -04:00
parent ed84c1b27a
commit a28b45c46d

View File

@@ -436,12 +436,6 @@
$('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon code')}");
return false;
}
if (coupon_discount == '0') {
$('#add_coupon_form #coupon_form_error').attr('style', 'display: block !important');
$('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon discount value greater than 0')}");
$("#add_coupon_button").removeAttr('disabled');
return false;
}
if (parseInt(coupon_discount) > 100) {
$('#add_coupon_form #coupon_form_error').attr('style', 'display: block !important');
$('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon discount value less than or equal to 100')}");