Files
IncomeTaxSystem/templates/add_cit.html

54 lines
1.9 KiB
HTML
Raw Normal View History

2025-11-30 16:24:49 +05:30
<!DOCTYPE html>
<html>
2025-11-30 16:24:49 +05:30
<head>
<title>CIT Form Entry</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/add_cit.css') }}">
<script src="/static/js/cit_calc.js"></script>
<script src="/static/js/year_dropdown.js"></script>
2025-11-30 16:24:49 +05:30
</head>
2025-11-30 16:24:49 +05:30
<body>
<div class="container">
<!-- Back to Dashboard Button -->
<a href="{{ url_for('index') }}" class="back-btn">← Back to Dashboard</a>
2025-11-30 16:24:49 +05:30
<h2>CIT Form Entry</h2>
<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>
<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",
"deduction_80g", "net_taxable_income", "tax_30_percent", "tax_book_profit_18_5",
"tax_payable", "surcharge_12", "edu_cess_3", "total_tax_payable", "mat_credit",
"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" oninput="calculate()" required>
{% endfor %}
<button type="submit">Submit </button>
</form>
2025-11-30 16:24:49 +05:30
</div>
<script>
function showSuccessMessage() {
alert("Form submitted successfully!");
return true; // continue with form submission
}
</script>
</body>
</html>