allow and disallow multiple payment

main
Subhodip Ghosh 2025-09-27 08:41:13 +00:00
parent a0d8602bb9
commit fc26db1ce6
2 changed files with 3 additions and 3 deletions

View File

@ -215,10 +215,10 @@
<th style='vertical-align: middle;'>Recurring A/C of ".$row["AA_NAME"]. "</th>
<td style='vertical-align: middle; text-align: right;'>
<form method='post' style='display: inline;'>
" . ($isMatured ? "<br/><span>Matured on: " . date('d-m-Y', strtotime($row["CLOSING_DATE"])) . "</span>" : "") . "
<input type='hidden' name='maturity_acno' value='".$row["AA_ACNO"]."'>
<input type='hidden' name='maturity_action' value='".($isMatured ? 'unmature' : 'mature')."'>
<button type='submit' name='recurring_maturity_submit' class='btn " . ($isMatured ? 'btn-warning' : 'btn-info') . "'>" . ($isMatured ? 'Mark as Active' : 'Mark as Matured') . "</button>
" . ($isMatured ? "<br/><span>Matured on: " . date('d-m-Y', strtotime($row["CLOSING_DATE"])) . "</span>" : "") . "
</form>";
if (isset($_SESSION['type']) && $_SESSION['type'] === 'admin') {
echo "

View File

@ -88,7 +88,7 @@ function calculateAmount() {
<small>Installment Amount:</small>
<input type="text" id="inst_amount" value="' . $row['AA_INSTALLMENT'] . '" style="width:50px;">
<small>No:</small>
<input type="number" id="inst_no" value="1" min="1" style="width:50px;" onchange="calculateFine()">
<input type="number" id="inst_no" value="1" min="1" style="width:50px;" onchange="calculateFine()" Amount:>
<small>Total received:</small>
<input type="number" id="total_rec" value="'.$total_rec.'" style="width:50px;" onchange="calculateFine()" disabled>
</td>
@ -110,7 +110,7 @@ function calculateAmount() {
<small>Amount:</small>
<input type="text" id="show_amount" value="'.$row['AA_INSTALLMENT']. '" disabled style="width:50px;">
<small>No:</small>
<input type="number" id="inst_no" value="1" min="1" style="width:50px;" onchange="calculateAmount()">
<input type="number" id="inst_no" value="1" min="1" style="width:50px;" onchange="calculateAmount()" ' . ($row['allowMultiple'] == 0 ? 'readonly' : '') . '>
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO']. '">
<small>Total:</small>
<input type="text" id="total_amount" value="'.$row['AA_INSTALLMENT'].'" disabled style="width:50px;">