From a202da621ca8fc53727e2fd4a5d50d1706b509f1 Mon Sep 17 00:00:00 2001
From: akashbhome
Date: Mon, 6 Apr 2026 12:22:28 +0530
Subject: [PATCH] unreleased_gst will comment for not use
---
controllers/hold_types_controller.py | 18 +-
logs/activity.log | 11 +
model/GST.py | 80 ++---
templates/add_purchase_order.html | 147 --------
templates/add_work_order.html | 137 --------
templates/edit_grn.html | 39 ---
templates/edit_purchase.html | 47 ---
templates/grn_form.html | 77 -----
templates/index.html | 25 +-
templates/purchase_order.html | 10 -
templates/purchase_order_report.html | 205 ------------
templates/work_order_report.html | 209 ------------
unusedCode/unused.py | 482 ---------------------------
unusedCode/workOrder.py | 128 -------
14 files changed, 61 insertions(+), 1554 deletions(-)
delete mode 100644 templates/add_purchase_order.html
delete mode 100644 templates/add_work_order.html
delete mode 100644 templates/edit_grn.html
delete mode 100644 templates/edit_purchase.html
delete mode 100644 templates/grn_form.html
delete mode 100644 templates/purchase_order.html
delete mode 100644 templates/purchase_order_report.html
delete mode 100644 templates/work_order_report.html
delete mode 100644 unusedCode/unused.py
delete mode 100644 unusedCode/workOrder.py
diff --git a/controllers/hold_types_controller.py b/controllers/hold_types_controller.py
index 18c48f2..52a7f65 100644
--- a/controllers/hold_types_controller.py
+++ b/controllers/hold_types_controller.py
@@ -1,7 +1,7 @@
from flask import Blueprint, render_template, request, jsonify, redirect, url_for
from flask_login import login_required
from model.HoldTypes import HoldTypes
-from model.GST import GST
+# from model.GST import GST
hold_bp = Blueprint("hold_types", __name__)
@@ -58,13 +58,13 @@ def delete_hold_type(id):
# ---------------- GST ----------------
-@hold_bp.route('/unreleased_gst')
-@login_required
-def unreleased_gst():
+# @hold_bp.route('/unreleased_gst')
+# @login_required
+# def unreleased_gst():
- data = GST.get_unreleased_gst()
+# data = GST.get_unreleased_gst()
- return render_template(
- "unreleased_gst.html",
- data=data
- )
\ No newline at end of file
+# return render_template(
+# "unreleased_gst.html",
+# data=data
+# )
\ No newline at end of file
diff --git a/logs/activity.log b/logs/activity.log
index 714474b..ee65b6d 100644
--- a/logs/activity.log
+++ b/logs/activity.log
@@ -9761,3 +9761,14 @@ Timestamp: 2026-04-06 10:37:55 | User: Unknown | Action: Delete Payment | Detail
Timestamp: 2026-04-06 10:38:07 | User: Unknown | Action: Delete GSTRelease | Details:
Timestamp: 2026-04-06 10:38:07 | User: Unknown | Action: Delete GST Release | Details:
Timestamp: 2026-04-06 10:39:39 | User: Unknown | Action: Get hold type | Details:
+Timestamp: 2026-04-06 12:03:44 | User: Unknown | Action: Login | Details:
+Timestamp: 2026-04-06 12:12:33 | User: Unknown | Action: Add Hold Type | Details:
+Timestamp: 2026-04-06 12:12:42 | User: Unknown | Action: Edit Hold Type | Details:
+Timestamp: 2026-04-06 12:12:46 | User: Unknown | Action: Delete Hold Type | Details:
+Timestamp: 2026-04-06 12:14:00 | User: Unknown | Action: Add Hold Type | Details:
+Timestamp: 2026-04-06 12:14:07 | User: Unknown | Action: Edit Hold Type | Details:
+Timestamp: 2026-04-06 12:14:10 | User: Unknown | Action: Delete Hold Type | Details:
+Timestamp: 2026-04-06 12:17:03 | User: Unknown | Action: Login | Details:
+Timestamp: 2026-04-06 12:17:12 | User: Unknown | Action: Add Hold Type | Details:
+Timestamp: 2026-04-06 12:17:21 | User: Unknown | Action: Edit Hold Type | Details:
+Timestamp: 2026-04-06 12:17:30 | User: Unknown | Action: Delete Hold Type | Details:
diff --git a/model/GST.py b/model/GST.py
index 71da41e..fbb030a 100644
--- a/model/GST.py
+++ b/model/GST.py
@@ -1,51 +1,51 @@
-from model.ItemCRUD import ItemCRUD
-from model.Utilities import ItemCRUDType
+# from model.ItemCRUD import ItemCRUD
+# from model.Utilities import ItemCRUDType
-class GST:
+# class GST:
- @staticmethod
- def get_unreleased_gst():
- # Use ItemCRUD for Invoices
- invoice_crud = ItemCRUD(itemType=ItemCRUDType.Invoice)
- invoices_rows = invoice_crud.GetAllData(storedproc="GetAllInvoicesBasic")
+# @staticmethod
+# def get_unreleased_gst():
+# # Use ItemCRUD for Invoices
+# invoice_crud = ItemCRUD(itemType=ItemCRUDType.Invoice)
+# invoices_rows = invoice_crud.GetAllData(storedproc="GetAllInvoicesBasic")
- if not invoice_crud.isSuccess:
- return [] # Could also log invoice_crud.resultMessage
+# if not invoice_crud.isSuccess:
+# return [] # Could also log invoice_crud.resultMessage
- invoices = [
- dict(
- Invoice_No=row[1],
- GST_SD_Amount=float(row[2]) if row[2] is not None else 0
- )
- for row in invoices_rows
- ]
+# invoices = [
+# dict(
+# Invoice_No=row[1],
+# GST_SD_Amount=float(row[2]) if row[2] is not None else 0
+# )
+# for row in invoices_rows
+# ]
- # Use ItemCRUD for GST Releases
- gst_crud = ItemCRUD(itemType=ItemCRUDType.GSTRelease)
- gst_rows = gst_crud.GetAllData(storedproc="GetAllGSTReleasesBasic")
+# # Use ItemCRUD for GST Releases
+# gst_crud = ItemCRUD(itemType=ItemCRUDType.GSTRelease)
+# gst_rows = gst_crud.GetAllData(storedproc="GetAllGSTReleasesBasic")
- if not gst_crud.isSuccess:
- return [] # Could also log gst_crud.resultMessage
+# if not gst_crud.isSuccess:
+# return [] # Could also log gst_crud.resultMessage
- gst_invoice_nos = {
- g[2] # Invoice_No is at index 2
- for g in gst_rows
- if g[2]
- }
+# gst_invoice_nos = {
+# g[2] # Invoice_No is at index 2
+# for g in gst_rows
+# if g[2]
+# }
- gst_basic_amounts = {
- float(g[3]) # Basic_Amount at index 3
- for g in gst_rows
- if g[3] is not None
- }
+# gst_basic_amounts = {
+# float(g[3]) # Basic_Amount at index 3
+# for g in gst_rows
+# if g[3] is not None
+# }
- # Filter unreleased invoices
- unreleased = []
- for inv in invoices:
- match_by_invoice = inv['Invoice_No'] in gst_invoice_nos
- match_by_gst_amount = inv['GST_SD_Amount'] in gst_basic_amounts
+# # Filter unreleased invoices
+# unreleased = []
+# for inv in invoices:
+# match_by_invoice = inv['Invoice_No'] in gst_invoice_nos
+# match_by_gst_amount = inv['GST_SD_Amount'] in gst_basic_amounts
- if not (match_by_invoice or match_by_gst_amount):
- unreleased.append(inv)
+# if not (match_by_invoice or match_by_gst_amount):
+# unreleased.append(inv)
- return unreleased
\ No newline at end of file
+# return unreleased
\ No newline at end of file
diff --git a/templates/add_purchase_order.html b/templates/add_purchase_order.html
deleted file mode 100644
index 4e57849..0000000
--- a/templates/add_purchase_order.html
+++ /dev/null
@@ -1,147 +0,0 @@
-{% extends 'base.html' %}
-{% block content %}
-
- Manage Purchases
-
-
-
-
-
-
-
-
-
-
-
-
-
Add Purchase Entry
-
-
-
-
-
-
Purchase List
-
-
- | ID |
- Purchase Date |
- Supplier Name |
- Purchase Order No |
- Item Name |
- Quantity |
- Unit |
- Rate |
- Amount |
- GST Amount |
- TDS |
- Final Amount |
- Edit |
- Delete |
-
- {% for purchase in purchases %}
-
- | {{ purchase['purchase_id'] }} |
- {{ purchase['purchase_date'] }} |
- {{ purchase['supplier_name'] }} |
- {{ purchase['purchase_order_no'] }} |
- {{ purchase['item_name'] }} |
- {{ purchase['quantity'] }} |
- {{ purchase['unit'] }} |
- {{ purchase['rate'] }} |
- {{ purchase['amount'] }} |
- {{ purchase['GST_Amount'] }} |
- {{ purchase['TDS'] }} |
- {{ purchase['final_amount'] }} |
- Edit |
-
-
- |
-
- {% endfor %}
-
-
-
-
-
-
-
-{% endblock %}
diff --git a/templates/add_work_order.html b/templates/add_work_order.html
deleted file mode 100644
index ad5ad38..0000000
--- a/templates/add_work_order.html
+++ /dev/null
@@ -1,137 +0,0 @@
-{% extends 'base.html' %}
-{% block content %}
-
- Manage Work Order
-
-
-
-
-
-
-
-
-
-
-
-
-{# display data #}
-
-{#
#}
-{#
Hold Type List
#}
-{# #}
-{# #}
-
-
- | ID |
-
- Work Order Type |
- Work Order Amount |
- BOQ Amount |
- Work Done Percentage |
- Update |
- Delete |
-
- {% for htd in wo %}
-
- | {{ htd.work_order_id }} |
- {{ htd['vendor_name'] }} |
- {{ htd['work_order_type'] }} |
- {{ htd['work_order_amount'] }} |
- {{ htd['boq_amount'] }} |
- {{ htd['work_done_percentage'] }} |
- {{ htd['work_order_number'] }} |
- {{ htd['gst_amount'] }} |
- {{ htd['tds_amount'] }} |
- {{ htd[''] }} |
- Edit |
-
-
- |
-
- {% endfor %}
-
-
-
Back to Dashboard
-
-
-
-
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/templates/edit_grn.html b/templates/edit_grn.html
deleted file mode 100644
index 22f0200..0000000
--- a/templates/edit_grn.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-Edit GRN
-
-
-
- Edit GRN
-
-
-
diff --git a/templates/edit_purchase.html b/templates/edit_purchase.html
deleted file mode 100644
index bfa090a..0000000
--- a/templates/edit_purchase.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
- Edit Purchase
-
-
-
- Edit Purchase Order
-
-
-
diff --git a/templates/grn_form.html b/templates/grn_form.html
deleted file mode 100644
index eae3847..0000000
--- a/templates/grn_form.html
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
- GRN Management
-
-
-
- Add GRN
-
-
- All GRNs
-
-
- | ID | Date | Purchase ID | Supplier | Item |
- Qty | Unit | Rate | Amount | Remarks | Actions |
-
- {% for grn in grns %}
-
- | {{ grn[0] }} |
- {{ grn[1] }} |
- {{ grn[2] }} |
- {{ grn[3] }} |
- {{ grn[4] }} |
- {{ grn[5] }} |
- {{ grn[6] }} |
- {{ grn[7] }} |
- {{ grn[8] }} |
- {{ grn[9] }} |
-
- Edit
-
-
- |
-
- {% endfor %}
-
-
-
diff --git a/templates/index.html b/templates/index.html
index 809a639..e2ab991 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -133,30 +133,7 @@
Hold Types
Go ➜
-
-
-
-
+
-
-
diff --git a/templates/purchase_order.html b/templates/purchase_order.html
deleted file mode 100644
index 33b3c30..0000000
--- a/templates/purchase_order.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-