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 %} -
-| ID | Date | Purchase ID | Supplier | Item | -Qty | Unit | Rate | Amount | Remarks | Actions | -
|---|---|---|---|---|---|---|---|---|---|---|
| {{ grn[0] }} | -{{ grn[1] }} | -{{ grn[2] }} | -{{ grn[3] }} | -{{ grn[4] }} | -{{ grn[5] }} | -{{ grn[6] }} | -{{ grn[7] }} | -{{ grn[8] }} | -{{ grn[9] }} | -- Edit - - - | -
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 @@ - - -
- -
- -
-