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

@@ -15,14 +15,19 @@
<a href="{{ url_for('index') }}" class="back-btn">← Back to Dashboard</a>
<h2>CIT Form Entry</h2>
<form method="POST">
<form id="cit" method="POST">
<!-- <label>Year:</label>
<input type="number" name="year" required value="{{ record.year if record else '' }}"> -->
<div class="form-group">
<label> Year:</label>
<select id="year" name="year" required></select>
<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", "deduction_80ia_business", "deduction_sec37_disallowance",
@@ -31,9 +36,9 @@
"interest_234c", "total_tax", "advance_tax", "tds", "tcs", "tax_on_assessment", "refund"
] %}
<label for="{{ field }}">{{ field.replace("_", " ").title() }}:</label>
<input type="number" name="{{ field }}" step="0.01" required value="{{ record[field] if record else '' }}">
<input type="number" name="{{ field }}" step="0.01" oninput="calculate()" required>
{% endfor %}
<button type="submit">{{ 'Update' if record else 'Submit' }}</button>
<button type="submit">Submit </button>
</form>
</div>