diff --git a/AppCode/__pycache__/DocumentHandler.cpython-313.pyc b/AppCode/__pycache__/DocumentHandler.cpython-313.pyc index ebf3bd1..43b0b64 100644 Binary files a/AppCode/__pycache__/DocumentHandler.cpython-313.pyc and b/AppCode/__pycache__/DocumentHandler.cpython-313.pyc differ diff --git a/main.py b/main.py index b6c143d..dc0f40e 100644 --- a/main.py +++ b/main.py @@ -26,7 +26,7 @@ app.config['UPLOAD_FOLDER'] = FileHandler.UPLOAD_FOLDER @app.route('/') def welcome(): return render_template('welcome.html') - + # Dashboard page @app.route('/dashboard') def index(): @@ -47,8 +47,8 @@ def upload_file(): return redirect(url_for('view_documents')) return render_template('upload.html') - -# View all documents with filters + +# View all documents with filters @app.route('/documents') def view_documents(): docHandler = DocumentHandler() diff --git a/static/css/add_ao.css b/static/css/add_ao.css new file mode 100644 index 0000000..952d339 --- /dev/null +++ b/static/css/add_ao.css @@ -0,0 +1,130 @@ + /* Reset and base styles */ + * { + margin: 0; + padding: 0; + box-sizing: border-box; + } + + body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f5f7fa; + color: #333; + padding: 30px 0; + } + + .container { + width: 90%; + max-width: 700px; + margin: auto; + background-color: #fff; + padding: 40px; + border-radius: 12px; + box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); + } + + h2 { + text-align: center; + margin-bottom: 30px; + font-size: 28px; + color: #2c3e50; + } + + form { + display: flex; + flex-direction: column; + } + + label { + margin-top: 15px; + margin-bottom: 6px; + font-weight: bold; + color: #333; + } + + input[type="number"] { + padding: 10px 12px; + border: 1px solid #ccc; + border-radius: 6px; + font-size: 16px; + transition: border-color 0.3s ease; + } + + input[type="number"]:focus { + border-color: #007BFF; + outline: none; + } + + button[type="submit"] { + margin-top: 30px; + padding: 12px; + background-color: #007BFF; + border: none; + border-radius: 6px; + color: white; + font-size: 18px; + cursor: pointer; + transition: background-color 0.3s ease; + } + + button[type="submit"]:hover { + background-color: #0056b3; + } + + /* Back button styling */ + .back-btn { + display: inline-block; + margin-bottom: 20px; + padding: 10px 18px; + background: #6c757d; + color: white; + font-size: 15px; + font-weight: 600; + border-radius: 6px; + text-decoration: none; + transition: background 0.3s ease; + } + + .back-btn:hover { + background: #5a6268; + } + + .form-group select { + width: 100%; + padding: 10px 12px; + border: 1px solid #cbd3da; + border-radius: 8px; + font-size: 16px; + background-color: #fdfdfd; + height: 40px; + cursor: pointer; + transition: all 0.25s ease-in-out; + } + + .form-group select:focus { + border-color: #007BFF; + background: #ffffff; + box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); + outline: none; + } + + + + + + @media (max-width: 600px) { + .container { + padding: 20px; + } + + h2 { + font-size: 22px; + } + + input[type="number"] { + font-size: 15px; + } + + button[type="submit"] { + font-size: 16px; + } + } \ No newline at end of file diff --git a/static/css/add_cit.css b/static/css/add_cit.css new file mode 100644 index 0000000..668a085 --- /dev/null +++ b/static/css/add_cit.css @@ -0,0 +1,126 @@ +/* ...existing styles... (no changes needed) */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f5f7fa; + color: #333; + padding: 30px 0; +} + +.container { + width: 90%; + max-width: 700px; + margin: auto; + background-color: #fff; + padding: 40px; + border-radius: 12px; + box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); +} + +h2 { + text-align: center; + margin-bottom: 30px; + font-size: 28px; + color: #2c3e50; +} + +form { + display: flex; + flex-direction: column; +} + +label { + margin-top: 15px; + margin-bottom: 6px; + font-weight: 600; + color: #333; +} + +input[type="number"] { + padding: 10px 12px; + border: 1px solid #ccc; + border-radius: 6px; + font-size: 16px; +} + +input[type="number"]:focus { + border-color: #007BFF; + outline: none; +} + +button[type="submit"] { + margin-top: 30px; + padding: 12px; + background-color: #007BFF; + border: none; + border-radius: 6px; + color: white; + font-size: 18px; + cursor: pointer; +} + +button[type="submit"]:hover { + background-color: #0056b3; +} + +/* Back button styling */ +.back-btn { + display: inline-block; + margin-bottom: 20px; + padding: 10px 18px; + background: #6c757d; + color: white; + font-size: 15px; + font-weight: 600; + border-radius: 6px; + text-decoration: none; + transition: background 0.3s ease; +} + +.back-btn:hover { + background: #5a6268; +} + +.form-group select { + width: 100%; + padding: 10px 12px; + border: 1px solid #cbd3da; + border-radius: 8px; + font-size: 16px; + background-color: #fdfdfd; + height: 40px; + cursor: pointer; + transition: all 0.25s ease-in-out; +} + +.form-group select:focus { + border-color: #007BFF; + background: #ffffff; + box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); + outline: none; +} + + + +@media (max-width: 600px) { + .container { + padding: 20px; + } + + h2 { + font-size: 22px; + } + + input[type="number"] { + font-size: 15px; + } + + button[type="submit"] { + font-size: 16px; + } +} \ No newline at end of file diff --git a/static/css/add_itat.css b/static/css/add_itat.css new file mode 100644 index 0000000..7bbed8d --- /dev/null +++ b/static/css/add_itat.css @@ -0,0 +1,105 @@ + /* Same styling for layout */ + * { + margin: 0; + padding: 0; + box-sizing: border-box; + } + + body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f5f7fa; + color: #333; + padding: 30px 0; + } + + .container { + width: 90%; + max-width: 700px; + margin: auto; + background-color: #fff; + padding: 40px; + border-radius: 12px; + box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); + } + + h2 { + text-align: center; + margin-bottom: 30px; + font-size: 28px; + color: #2c3e50; + } + + form { + display: flex; + flex-direction: column; + } + + label { + margin-top: 15px; + margin-bottom: 6px; + font-weight: 600; + color: #333; + } + + input[type="number"] { + padding: 10px 12px; + border: 1px solid #ccc; + border-radius: 6px; + font-size: 16px; + } + + input[type="number"]:focus { + border-color: #007BFF; + outline: none; + } + + button[type="submit"] { + margin-top: 30px; + padding: 12px; + background-color: #007BFF; + border: none; + border-radius: 6px; + color: white; + font-size: 18px; + cursor: pointer; + } + + button[type="submit"]:hover { + background-color: #0056b3; + } + + /* Back button styling */ + .back-btn { + display: inline-block; + margin-bottom: 20px; + padding: 10px 18px; + background: #6c757d; + color: white; + font-size: 15px; + font-weight: 600; + border-radius: 6px; + text-decoration: none; + transition: background 0.3s ease; + } + + .back-btn:hover { + background: #5a6268; + } + + @media (max-width: 600px) { + .container { + padding: 20px; + } + + h2 { + font-size: 22px; + } + + input[type="number"] { + font-size: 15px; + } + + button[type="submit"] { + font-size: 16px; + } + } \ No newline at end of file diff --git a/static/css/add_itr.css b/static/css/add_itr.css new file mode 100644 index 0000000..29bcfdd --- /dev/null +++ b/static/css/add_itr.css @@ -0,0 +1,135 @@ +body { + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; + background: #eef2f7; + margin: 0; + padding: 40px; + color: #333; +} + +.container { + max-width: 900px; + margin: auto; + background: #fff; + padding: 40px 50px; + border-radius: 12px; + box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1); + transition: box-shadow 0.3s ease; +} + +.container:hover { + box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15); +} + +h2 { + text-align: center; + margin-bottom: 35px; + font-size: 30px; + color: #2c3e50; + font-weight: 700; + letter-spacing: 0.5px; +} + +form { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px 30px; +} + +.form-group { + display: flex; + flex-direction: column; +} + +label { + font-weight: 600; + margin-bottom: 8px; + color: #555; + font-size: 14px; + font-weight: bold; +} + +input[type="number"] { + padding: 10px 12px; + border: 1px solid #ccd1d9; + border-radius: 6px; + font-size: 15px; + background-color: #fafafa; + transition: all 0.25s ease-in-out; +} + +input[type="number"]:focus { + border-color: #007BFF; + background: #fff; + box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); + outline: none; +} + +button[type="submit"] { + grid-column: span 2; + margin-top: 25px; + padding: 15px; + background: linear-gradient(135deg, #007BFF, #0056b3); + border: none; + border-radius: 8px; + color: #fff; + font-size: 18px; + font-weight: 600; + cursor: pointer; + transition: transform 0.2s, background 0.3s; +} + +button[type="submit"]:hover { + background: linear-gradient(135deg, #0056b3, #00408f); + transform: translateY(-2px); +} + +/* Back button styling */ +.back-btn { + display: inline-block; + margin-bottom: 20px; + padding: 10px 18px; + background: #6c757d; + color: white; + font-size: 15px; + font-weight: 600; + border-radius: 6px; + text-decoration: none; + transition: background 0.3s ease; +} + +.back-btn:hover { + background: #5a6268; +} + + +/* Style for Year Dropdown */ +select { + padding: 10px 5px; + border: 1px solid #ccd1d9; + border-radius: 6px; + font-size: 15px; + background-color: #fafafa; + transition: all 0.25s ease-in-out; + cursor: pointer; + height: 40px; +} + +select:focus { + border-color: #007BFF; + background: #fff; + box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); + outline: none; +} + + + +/* Responsive */ +@media (max-width: 768px) { + form { + grid-template-columns: 1fr; + } + + h2 { + font-size: 24px; + } +} \ No newline at end of file diff --git a/static/index.css b/static/index.css index 6c66df2..175fc97 100644 --- a/static/index.css +++ b/static/index.css @@ -11,7 +11,7 @@ body { padding: 30px; background-color: #ffffff; border-radius: 12px; - box-shadow: 0 4px 12px rgba(0,0,0,0.1); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } h2 { @@ -52,3 +52,54 @@ form button { form button:hover { background-color: #0056b3; } + +input[type="file"] { + padding: 10px 12px; + border: 1px solid #ccc; + border-radius: 6px; + font-size: 16px; + transition: border-color 0.3s ease; +} + +input[type="file"]:focus { + border-color: #007BFF; + outline: none; +} + + +/* Back button styling */ +.back-btn { + display: inline-block; + margin-bottom: 20px; + padding: 10px 18px; + background: #6c757d; + color: white; + font-size: 15px; + font-weight: 600; + border-radius: 6px; + text-decoration: none; + transition: background 0.3s ease; +} + +.back-btn:hover { + background: #5a6268; +} + +.form-group select { + width: 100%; + padding: 10px 12px; + border: 1px solid #cbd3da; + border-radius: 8px; + font-size: 16px; + background-color: #fdfdfd; + height: 40px; + cursor: pointer; + transition: all 0.25s ease-in-out; +} + +.form-group select:focus { + border-color: #007BFF; + background: #ffffff; + box-shadow: 0 0 8px rgba(0, 123, 255, 0.25); + outline: none; +} \ No newline at end of file diff --git a/static/js/year_dropdown.js b/static/js/year_dropdown.js new file mode 100644 index 0000000..6f8e3be --- /dev/null +++ b/static/js/year_dropdown.js @@ -0,0 +1,23 @@ +document.addEventListener("DOMContentLoaded", function () { + const yearDropdown = document.getElementById("year"); + + const currentYear = new Date().getFullYear(); + const startYear = 1990; + + for (let y = currentYear; y >= startYear; y--) { + let nextYear = y + 1; + + let option = document.createElement("option"); + + // Backend receives only first year (example 2024) + option.value = y; + + // User sees (example AY 2024–2025) + option.textContent = `AY ${y}-${nextYear}`; + + yearDropdown.appendChild(option); + } +}); + + + diff --git a/static/uploads/Income_Tax_System.docx b/static/uploads/Income_Tax_System.docx new file mode 100644 index 0000000..597d5f6 Binary files /dev/null and b/static/uploads/Income_Tax_System.docx differ diff --git a/templates/add_ao.html b/templates/add_ao.html index 003e6fa..45e1f76 100644 --- a/templates/add_ao.html +++ b/templates/add_ao.html @@ -2,119 +2,11 @@ - AO Form Entry - + Add New AO Record + + - @@ -124,8 +16,14 @@

AO Form Entry

- - + + +
+ + +
+ {% for field in [ "gross_total_income", "disallowance_14a", "disallowance_37", "deduction_80ia_business", "deduction_sec37_disallowance", "deduction_80g", @@ -136,6 +34,7 @@ ] %} + {% endfor %}
diff --git a/templates/add_cit.html b/templates/add_cit.html index a17fadc..05ad610 100644 --- a/templates/add_cit.html +++ b/templates/add_cit.html @@ -3,115 +3,10 @@ CIT Form Entry - + - @@ -121,8 +16,13 @@

CIT Form Entry

- - + + +
+ + +
{% for field in [ "gross_total_income", "deduction_80ia_business", "deduction_sec37_disallowance", diff --git a/templates/add_itat.html b/templates/add_itat.html index 568361a..b7264f4 100644 --- a/templates/add_itat.html +++ b/templates/add_itat.html @@ -2,115 +2,10 @@ - ITAT Form Entry - - @@ -120,8 +15,13 @@

ITAT Form Entry

- - + + +
+ + +
diff --git a/templates/add_itr.html b/templates/add_itr.html index 168fcd2..939a556 100644 --- a/templates/add_itr.html +++ b/templates/add_itr.html @@ -4,122 +4,10 @@ Add New Income Tax Return Record + + - @@ -130,9 +18,15 @@

Add New Income Tax Return Record

-
+ + +
+ +
{% for field in [ diff --git a/templates/ao_reports.html b/templates/ao_reports.html index d7d3252..0f39d50 100644 --- a/templates/ao_reports.html +++ b/templates/ao_reports.html @@ -52,24 +52,6 @@ button:hover { background-color: #0056b3; } - - /* Back button styling */ - .back-btn { - display: inline-block; - margin-bottom: 20px; - padding: 10px 18px; - background: #6c757d; - color: white; - font-size: 15px; - font-weight: 600; - border-radius: 6px; - text-decoration: none; - transition: background 0.3s ease; - } - - .back-btn:hover { - background: #5a6268; - } @@ -86,7 +68,8 @@

diff --git a/templates/cit_reports.html b/templates/cit_reports.html index 19d39db..47dddb8 100644 --- a/templates/cit_reports.html +++ b/templates/cit_reports.html @@ -52,24 +52,6 @@ button:hover { background-color: #0056b3; } - - /* Back button styling */ - .back-btn { - display: inline-block; - margin-bottom: 20px; - padding: 10px 18px; - background: #6c757d; - color: white; - font-size: 15px; - font-weight: 600; - border-radius: 6px; - text-decoration: none; - transition: background 0.3s ease; - } - - .back-btn:hover { - background: #5a6268; - } @@ -86,7 +68,8 @@

diff --git a/templates/itat_reports.html b/templates/itat_reports.html index 31c3f45..7126daf 100644 --- a/templates/itat_reports.html +++ b/templates/itat_reports.html @@ -52,24 +52,6 @@ button:hover { background-color: #0056b3; } - - /* Back button styling */ - .back-btn { - display: inline-block; - margin-bottom: 20px; - padding: 10px 18px; - background: #6c757d; - color: white; - font-size: 15px; - font-weight: 600; - border-radius: 6px; - text-decoration: none; - transition: background 0.3s ease; - } - - .back-btn:hover { - background: #5a6268; - } @@ -88,7 +70,8 @@

diff --git a/templates/itr_reports.html b/templates/itr_reports.html index 07ad1d2..80fd396 100644 --- a/templates/itr_reports.html +++ b/templates/itr_reports.html @@ -52,24 +52,6 @@ button:hover { background-color: #0056b3; } - - /* Back button styling */ - .back-btn { - display: inline-block; - margin-bottom: 20px; - padding: 10px 18px; - background: #6c757d; - color: white; - font-size: 15px; - font-weight: 600; - border-radius: 6px; - text-decoration: none; - transition: background 0.3s ease; - } - - .back-btn:hover { - background: #5a6268; - } @@ -87,7 +69,8 @@

diff --git a/templates/summary_reports.html b/templates/summary_reports.html index 901c4e0..311d7d8 100644 --- a/templates/summary_reports.html +++ b/templates/summary_reports.html @@ -56,7 +56,7 @@ } .message { - color: red; + color: rgb(0, 0, 0); margin-top: 15px; } @@ -97,7 +97,9 @@ diff --git a/templates/update_ao.html b/templates/update_ao.html index 5d03b6e..942f0bf 100644 --- a/templates/update_ao.html +++ b/templates/update_ao.html @@ -5,81 +5,14 @@ Update AO Record -
← Back to Dashboard +

Update AO Record for Year {{ record.year }}

{% for field in record.keys() if field != 'id' %} diff --git a/templates/update_cit.html b/templates/update_cit.html index e85632a..881fec8 100644 --- a/templates/update_cit.html +++ b/templates/update_cit.html @@ -5,75 +5,6 @@ Update CIT Record - diff --git a/templates/update_itr.html b/templates/update_itr.html index b31087f..f88c57d 100644 --- a/templates/update_itr.html +++ b/templates/update_itr.html @@ -5,25 +5,7 @@ Update ITR Record - diff --git a/templates/upload.html b/templates/upload.html index a3cbb79..8e1e2ec 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -4,119 +4,7 @@ Upload Documents - + @@ -127,17 +15,22 @@

Upload Income Tax Documents

- - - - - + +
+ + +
+
+ + +