Nett Bug Fix

This commit is contained in:
Phyo
2017-06-15 14:44:25 +06:30
parent 35048af451
commit c30a3a1ea9

View File

@@ -287,7 +287,16 @@ $(document).on('click', '.cashier_number', function(event){
update_balance();
break;
case 'nett':
$('#cash').text($('#amount_due').text());
var credit1 = $('#credit').text();
var card1 = $('#others').text();
var paypar1 = $('#ppamount').text();
var visa1 = $('#visacount').text();
var jcb1 = $('#jcbcount').text();
var master1 = $('#mastercount').text();
var othertotal = parseFloat(credit1) + parseFloat(card1) + parseFloat(paypar1) + parseFloat(visa1) + parseFloat(jcb1) + parseFloat(master1);
var total = $('#amount_due').text();
var amt = parseFloat(total) - othertotal;
$('#cash').text(amt);
update_balance();
break;
}