2026-01-07 16:26:59 +05:30
|
|
|
|
{% 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 %}
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<div class="container mat-container">
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<h2 class="page-title">MAT Credit and Utilization Records</h2>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<!-- 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 Utilized Year</button>
|
|
|
|
|
|
</div>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<!-- TABLE WRAPPER -->
|
|
|
|
|
|
<div class="table-wrapper">
|
|
|
|
|
|
<table id="matTable">
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<tr id="tableHeader">
|
|
|
|
|
|
<th>AY</th>
|
|
|
|
|
|
<th>MAT Credit</th>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
{% for y in added_years %}
|
|
|
|
|
|
<th>Utilized {{ y }}</th>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<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>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
{% for y in added_years %}
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<input value="{{ utilization_map.get(row.id, {}).get(y, '') }}">
|
|
|
|
|
|
</td>
|
|
|
|
|
|
{% endfor %}
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<td><input value="{{ row.balance }}"></td>
|
|
|
|
|
|
<td><button onclick="saveRow(this)">Save</button></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-31 11:45:26 +05:30
|
|
|
|
<div class="action-footer">
|
|
|
|
|
|
<button class="add-row-btn" onclick="addRow()">➕ Add New Row</button>
|
|
|
|
|
|
</div>
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
|
|
|
|
|
</div>
|
2026-01-31 11:45:26 +05:30
|
|
|
|
{% endblock %}
|
2026-01-07 16:26:59 +05:30
|
|
|
|
|
|
|
|
|
|
{% block extra_js %}
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/mat_credit.js') }}"></script>
|
|
|
|
|
|
{% endblock %}
|