changes of ITAT from new desing and sql insert update proce chnage code of v2

This commit is contained in:
2026-01-06 15:52:08 +05:30
parent a65e7efa63
commit 91b7932a2f
26 changed files with 516 additions and 1119 deletions

View File

@@ -12,20 +12,16 @@
<form method="POST" action="{{ url_for('update_itat', id=record.id) }}">
<label>Year:</label>
<input type="number" name="year" step="1" value="{{ record.year }}" readonly>
<label for="year">Year:</label>
<input type="text" id="year" name="year" value="{{ record.year }}" readonly class="readonly-field">
<label>MAT Tax Credit:</label>
<input type="number" name="mat_tax_credit" step="0.01" value="{{ record.mat_tax_credit }}" required>
{% for field in record.keys() if field not in ['id', 'year', 'Remarks'] %}
<label for="{{ field }}">{{ field.replace("_", " ").title() }}:</label>
<input type="number" id="{{ field }}" name="{{ field }}" step="any" value="{{ record[field] }}" required>
{% endfor %}
<label>Surcharge:</label>
<input type="number" name="surcharge" step="0.01" value="{{ record.surcharge }}" required>
<label>Cess:</label>
<input type="number" name="cess" step="0.01" value="{{ record.cess }}" required>
<label>Total Credit:</label>
<input type="number" name="total_credit" step="0.01" value="{{ record.total_credit }}" required>
<label for="Remarks">Remarks:</label>
<input type="text" id="Remarks" name="Remarks" value="{{ record.Remarks }}">
<button type="submit">Update Record</button>
</form>
@@ -36,6 +32,6 @@
{% block extra_js %}
<script src="{{ url_for('static', filename='js/toggle.js') }}"></script>
<script src="{{ url_for('static', filename='js/cit_calc.js') }}"></script>
<!-- <script src="{{ url_for('static', filename='js/cit_calc.js') }}"></script> -->
<script src="{{ url_for('static', filename='js/year_dropdown.js') }}"></script>
{% endblock %}