upteded pmc report code

This commit is contained in:
2026-03-28 13:39:19 +05:30
parent 1a825ba46c
commit f238b49a84
13 changed files with 5195 additions and 243 deletions

View File

@@ -350,6 +350,8 @@ def save_data():
# --------------------------------------
# If no village/work detected, only PMC/Payment
if not (Invoice_Details and 'village' in Invoice_Details.lower() and 'work' in Invoice_Details.lower()):
# if not (Invoice_Details and 'village' in Invoice_Details.lower() and 'work' in Invoice_Details.lower() and 'gst' in Invoice_Details.lower() and 'gst release note' in Invoice_Details.lower() and 'release' in Invoice_Details.lower()):
# ---------- Only PMC / Payment rows ----------
if PMC_No and not Invoice_No and UTR :
# print("No village/work, using PMC only :", PMC_No)

View File

@@ -3,6 +3,8 @@ from flask_login import login_required
from model.PmcReport import PmcReport
pmc_report_bp = Blueprint("pmc_report", __name__)
# ---------------- Contractor Report by pmc no ----------------
@@ -37,4 +39,5 @@ def download_pmc_report(pmc_no):
output_folder, file_name = result
return send_from_directory(output_folder, file_name, as_attachment=True)
return send_from_directory(output_folder, file_name, as_attachment=True)