fix total
This commit is contained in:
@@ -254,8 +254,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="total">Total</label>
|
<label for="total2">Total</label>
|
||||||
<input type="text" class="form-control" id="total" name="total" value="0" readonly>
|
<input type="text" class="form-control" id="total2" name="total" value="0" readonly>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -424,14 +424,14 @@
|
|||||||
minimumFractionDigits: 0,
|
minimumFractionDigits: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#total').val(formatter.format(total));
|
$('#total2').val(formatter.format(total));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Uncheck all checkboxes when the modal is closed
|
// Uncheck all checkboxes when the modal is closed
|
||||||
$('#finalApproveModal').on('hidden.bs.modal', function () {
|
$('#finalApproveModal').on('hidden.bs.modal', function () {
|
||||||
$('.custom-control-input').prop('checked', false); // Uncheck all checkboxes
|
$('.custom-control-input').prop('checked', false); // Uncheck all checkboxes
|
||||||
$('#total').val('0'); // Reset total to 0
|
$('#total2').val('0'); // Reset total to 0
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -277,8 +277,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="total">Total</label>
|
<label for="total2">Total</label>
|
||||||
<input type="text" class="form-control" id="total" name="total" value="0" readonly>
|
<input type="text" class="form-control" id="total2" name="total" value="0" readonly>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -455,14 +455,14 @@
|
|||||||
minimumFractionDigits: 0,
|
minimumFractionDigits: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#total').val(formatter.format(total));
|
$('#total2').val(formatter.format(total));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Uncheck all checkboxes when the modal is closed
|
// Uncheck all checkboxes when the modal is closed
|
||||||
$('#finalApproveModal').on('hidden.bs.modal', function () {
|
$('#finalApproveModal').on('hidden.bs.modal', function () {
|
||||||
$('.custom-control-input').prop('checked', false); // Uncheck all checkboxes
|
$('.custom-control-input').prop('checked', false); // Uncheck all checkboxes
|
||||||
$('#total').val('0'); // Reset total to 0
|
$('#total2').val('0'); // Reset total to 0
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
Reference in New Issue
Block a user