fix total

This commit is contained in:
Jagad R R
2025-03-04 16:04:11 +07:00
parent dae79b7585
commit 278fc3741d
2 changed files with 8 additions and 8 deletions
@@ -254,8 +254,8 @@
</li>
<li>
<div class="form-group">
<label for="total">Total</label>
<input type="text" class="form-control" id="total" name="total" value="0" readonly>
<label for="total2">Total</label>
<input type="text" class="form-control" id="total2" name="total" value="0" readonly>
</div>
</li>
</ul>
@@ -424,14 +424,14 @@
minimumFractionDigits: 0,
});
$('#total').val(formatter.format(total));
$('#total2').val(formatter.format(total));
});
// Uncheck all checkboxes when the modal is closed
$('#finalApproveModal').on('hidden.bs.modal', function () {
$('.custom-control-input').prop('checked', false); // Uncheck all checkboxes
$('#total').val('0'); // Reset total to 0
$('#total2').val('0'); // Reset total to 0
});
</script>
@endsection