Dont save payments with a zero alloc amount, delete payments with a zero alloc amount, fix javascript calculating payment balance

This commit is contained in:
Deon George
2022-10-18 10:23:11 +11:00
parent 6aa30f537b
commit 0b4e3a9341
3 changed files with 10 additions and 3 deletions

View File

@@ -219,7 +219,7 @@
var alloc = 0;
$('.invoice').each(function() {
alloc += $(this).val();
alloc += parseFloat($(this).val());
})
$('#balance').val(($('#total_amt').val()-alloc).toFixed(2))