year check valid or not All form commit

This commit is contained in:
2025-12-08 13:40:33 +05:30
parent bd24fa5f4e
commit 425f213606
13 changed files with 175 additions and 193 deletions

View File

@@ -17,7 +17,7 @@
<h2>Add New Income Tax Return Record</h2>
<form method="POST" action="{{ url_for('add_itr') }}">
<form id="itr" method="POST" action="{{ url_for('add_itr') }}">
<!-- <div class="form-group">
<label>Year:</label>
<input type="number" name="year" required>
@@ -26,8 +26,11 @@
<div class="form-group">
<label> Year:</label>
<select id="year" name="year" required>
<option>---- Select Years ----</option>
</select>
</div>
<div id="yearError" style="color:red; display:none; margin-bottom:10px;">
</div>
{% for field in [
"gross_total_income", "disallowance_14a", "disallowance_37",
@@ -37,9 +40,11 @@
"edu_cess_3", "total_tax_payable", "mat_credit", "interest_234c",
"total_tax", "advance_tax", "tds", "tcs", "tax_on_assessment", "refund"
] %}
<div class="form-group">
<label>{{ field.replace("_", " ").title() }}:</label>
<input type="number" name="{{ field }}" step="any" value="0.00" required>
<input type="number" name="{{ field }}" step="any" value="0.00" oninput="calculate()" required>
</div>
{% endfor %}
@@ -48,4 +53,4 @@
</div>
</body>
</html>
</html