allow and disallow multiple payment
parent
62120de429
commit
a0d8602bb9
|
@ -172,25 +172,34 @@ function calculateAmount() {
|
|||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'">
|
||||
<input type="hidden" name="ins_no" value="'.$due_i. '">
|
||||
<input type="hidden" name="AA_ACNO" value="' . $row['AA_ACNO'] . '">
|
||||
<input type="hidden" name="ins_no" value="' . $due_i . '">
|
||||
|
||||
<small>Due Amount:</small>
|
||||
<input type="text" id="due_amount" value="'.$due_amount. '" disabled style="width:50px;border:1px solid red">
|
||||
<input type="text" class="due_amount" value="' . $due_amount . '" disabled style="width:50px;border:1px solid red">
|
||||
|
||||
<small>Installment Amount:</small>
|
||||
<input type="text" id="inst_amount" value="' . $row['AA_INSTALLMENT'] . '" style="width:50px;">
|
||||
<input type="text" class="inst_amount" name="inst_amount"
|
||||
value="' . $row['AA_INSTALLMENT'] . '"
|
||||
style="width:50px;" ' . ($row['allowMultiple'] == 0 ? 'readonly' : '') . ' >
|
||||
|
||||
<small>No:</small>
|
||||
<input type="number" id="inst_no" value="1" min="1" style="width:50px;" onchange="calculateFine()">
|
||||
<input type="number" class="inst_no" name="inst_no" value="1" min="1" style="width:50px;" onchange="calculateFine()" ' . ($row['allowMultiple'] == 0 ? 'readonly' : '') . '>
|
||||
|
||||
<small>Total received:</small>
|
||||
<input type="number" id="total_rec" value="'.$total_rec.'" style="width:50px;" onchange="calculateFine()" disabled>
|
||||
<input type="number" class="total_rec" name="total_rec" value="' . $total_rec . '" style="width:50px;" onchange="calculateFine()" disabled>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" id="hidden_total_rec" value="'.$total_rec.'" name="add_i" style="width:50px;" onchange="calculateFine()">
|
||||
<input type="hidden" class="hidden_total_rec" value="' . $total_rec . '" name="add_i" onchange="calculateFine()">
|
||||
|
||||
<small>Fine:</small>
|
||||
<input type="number" id="fine" name="fine_amount" value="'.$fine_amount.'" min="0" style="width:50px;border:1px solid red" onchange="calculateFine()">
|
||||
<input type="number" class="fine" name="fine_amount" value="' . $fine_amount . '" min="0" style="width:50px;border:1px solid red" onchange="calculateFine()">
|
||||
|
||||
<small>Total:</small>
|
||||
<input type="text" id="total_amount" value="'.$total_amount. '" disabled style="width:50px;border:1px solid red">
|
||||
<input type="text" class="total_amount" value="' . $total_amount . '" disabled style="width:50px;border:1px solid red">
|
||||
|
||||
<input type="submit" class="btn-info" value="Receive" onclick="sendData(event)">
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue