function payable_amount(purchase_val, discount_val, ){
var purchase_val = purchase_val
var discount_val = discount_val=="" ? 0 : discount_val;
var a = discount_val/100;
var total = a*purchase_val;
var payable_amount = purchase_val - total;
return payable_amount;
}
var purchase_val = purchase_val
var discount_val = discount_val=="" ? 0 : discount_val;
var a = discount_val/100;
var total = a*purchase_val;
var payable_amount = purchase_val - total;
return payable_amount;
}
0 comments:
Post a Comment