datepicker and toggle buttons changes

This commit is contained in:
Sampanna Rimal
2024-08-14 21:39:12 +05:45
parent ee30970d1f
commit cb443cd551
16 changed files with 1828 additions and 364 deletions

View File

@ -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());