Nett Bug Fix
This commit is contained in:
@@ -287,7 +287,16 @@ $(document).on('click', '.cashier_number', function(event){
|
|||||||
update_balance();
|
update_balance();
|
||||||
break;
|
break;
|
||||||
case 'nett':
|
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();
|
update_balance();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user