datepicker and toggle buttons changes
This commit is contained in:
@ -441,10 +441,8 @@
|
||||
});
|
||||
|
||||
if(type=='amount'){
|
||||
alert("amount");
|
||||
discountamount = parseFloat($("input[name='discount']").val());
|
||||
discountpercent = (discountamount * 100) / subtotal;
|
||||
alert(discountamount);
|
||||
$("#discountpercentage").val(discountpercent.toFixed(2));
|
||||
}else{
|
||||
discountpercent = parseFloat($("input[name='discountpercentage']").val());
|
||||
|
Reference in New Issue
Block a user