new fom of MAT credit add in table formate and update show
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{% block title %}Income Tax Utilities{% endblock %}</title>
|
||||
@@ -23,7 +24,9 @@
|
||||
|
||||
<!-- SIDEBAR -->
|
||||
<div class="sidebar hide" id="sidebar">
|
||||
<a href="{{ url_for('index') }}"><h2>Dashboard</h2></a>
|
||||
<a href="{{ url_for('index') }}">
|
||||
<h2>Dashboard</h2>
|
||||
</a>
|
||||
|
||||
<div class="menu-btn" onclick="toggleMenu('itrMenu')">ITR ▼</div>
|
||||
<div class="submenu" id="itrMenu">
|
||||
@@ -57,6 +60,14 @@
|
||||
<a href="{{ url_for('summary_report') }}">📝 Summary Report</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="menu-btn" onclick="toggleMenu('matCredit')">Mat Credit ▼</div>
|
||||
<div class="submenu" id="matCredit">
|
||||
<a href="{{ url_for('mat_credit') }}">📄 Mat Credit from</a>
|
||||
<!-- <a href="{{ url_for('view_documents') }}">📄 Documents</a> -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Logout at bottom -->
|
||||
<a href="{{ url_for('auth.logout') }}" class="sidebar-logout">
|
||||
<img src="{{ url_for('static', filename='images/logout_icon.png') }}" class="logout-icon" alt="Logout" />
|
||||
@@ -74,4 +85,5 @@
|
||||
<!-- Extra JS for child pages -->
|
||||
{% block extra_js %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
||||
74
templates/mat_credit.html
Normal file
74
templates/mat_credit.html
Normal file
@@ -0,0 +1,74 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}MAT Credit{% endblock %}
|
||||
|
||||
{% block extra_css %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/mat_credit.css') }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
|
||||
<!-- YEAR ADD CONTROLS -->
|
||||
<div class="year-controls">
|
||||
<select id="yearSelect">
|
||||
<option value="">-- Select AY --</option>
|
||||
{% for y in range(2001, 2026) %}
|
||||
<option value="{{ y }}-{{ y+1 }}">{{ y }}-{{ y+1 }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<button onclick="addYearColumn()">➕ Add Year</button>
|
||||
</div>
|
||||
|
||||
<!-- SCROLL WRAPPER -->
|
||||
<div class="table-wrapper">
|
||||
<table id="matTable">
|
||||
<thead>
|
||||
<tr id="tableHeader">
|
||||
<th>AY</th>
|
||||
<th>MAT Credit</th>
|
||||
|
||||
{% for y in added_years %}
|
||||
<th>Utilized {{ y }}</th>
|
||||
{% endfor %}
|
||||
|
||||
<th>Balance</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in mat_rows %}
|
||||
<tr>
|
||||
<td contenteditable="true">{{ row.financial_year }}</td>
|
||||
<td><input value="{{ row.mat_credit }}"></td>
|
||||
|
||||
{% for y in added_years %}
|
||||
<td>
|
||||
<input value="{{ utilization_map.get(row.id, {}).get(y, '') }}">
|
||||
</td>
|
||||
{% endfor %}
|
||||
|
||||
<td><input value="{{ row.balance }}"></td>
|
||||
<td><button onclick="saveRow(this)">Save</button></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<button onclick="addRow()">➕ Add Row</button>
|
||||
<button onclick="saveAll()">💾 Save All</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% block extra_js %}
|
||||
<script src="{{ url_for('static', filename='js/mat_credit.js') }}"></script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user