1 Commits

Author SHA1 Message Date
055b272703 change of gst rels detail proce calling add 2026-04-04 14:00:25 +05:30
5 changed files with 22 additions and 17 deletions

View File

@@ -307,7 +307,7 @@ def save_data():
else: else:
print("Hold columns data is not a valid list of dictionaries.") print("Hold columns data is not a valid list of dictionaries.")
#---------------------------------------------Credit Note--------------------------------------------------------------------------- #---------------------------------------------Credit Note---------------------------------------------------------------------------
elif any(keyword in Invoice_Details.lower() for keyword in ['credit note','logging report']): elif any(keyword in Invoice_Details.lower() for keyword in ['credit note','logging report','credit','Credit note Details']):
# print("Credit note found:", PMC_No, Invoice_No, Basic_Amount, Debit_Amount, Final_Amount, # print("Credit note found:", PMC_No, Invoice_No, Basic_Amount, Debit_Amount, Final_Amount,
# After_Debit_Amount, GST_Amount, Amount, Final_Amount, Payment_Amount, Total_Amount, UTR, Invoice_No) # After_Debit_Amount, GST_Amount, Amount, Final_Amount, Payment_Amount, Total_Amount, UTR, Invoice_No)
cursor.callproc( cursor.callproc(
@@ -330,7 +330,8 @@ def save_data():
'excess hold amount', 'excess hold amount',
'Multi to Single layer bill', 'Multi to Single layer bill',
'hold amount', 'hold amount',
'logging report' 'logging report',
'hold'
] ]
# Step 3: Matching condition # Step 3: Matching condition
if any(kw in normalized_details for kw in keywords): if any(kw in normalized_details for kw in keywords):

View File

@@ -44,6 +44,7 @@ class ReportService:
self.contInfo = GeneralUse.execute_sp(cursor, 'GetContractorInfo', [self.contractor_id], True) self.contInfo = GeneralUse.execute_sp(cursor, 'GetContractorInfo', [self.contractor_id], True)
self.hold_types = GeneralUse.execute_sp(cursor, 'HoldTypesByContractorId', [self.contractor_id]) self.hold_types = GeneralUse.execute_sp(cursor, 'HoldTypesByContractorId', [self.contractor_id])
self.invoices = GeneralUse.execute_sp(cursor, 'GetInvoicesByContractorOrPMCNo', [self.contractor_id, None]) self.invoices = GeneralUse.execute_sp(cursor, 'GetInvoicesByContractorOrPMCNo', [self.contractor_id, None])
self.gst_release_raw = GeneralUse.execute_sp(cursor, 'GetGSTRelease', [self.contractor_id])
# ---------- PMC ---------- # ---------- PMC ----------
elif self.pmc_no: elif self.pmc_no:
@@ -52,11 +53,12 @@ class ReportService:
self.hold_types = GeneralUse.execute_sp(cursor, 'GetHoldTypesByContractor', [self.contractor_id]) self.hold_types = GeneralUse.execute_sp(cursor, 'GetHoldTypesByContractor', [self.contractor_id])
self.invoices = GeneralUse.execute_sp(cursor, 'GetInvoicesByContractorOrPMCNo', [None, self.pmc_no]) self.invoices = GeneralUse.execute_sp(cursor, 'GetInvoicesByContractorOrPMCNo', [None, self.pmc_no])
self.gst_release_raw = GeneralUse.execute_sp(cursor, 'GetGSTReleaseDetailsByPMC', [self.pmc_no])
# ---------- COMMON ---------- # ---------- COMMON ----------
self.hold_amounts = GeneralUse.execute_sp(cursor, 'GetHoldAmountsByContractor', [self.contractor_id]) self.hold_amounts = GeneralUse.execute_sp(cursor, 'GetHoldAmountsByContractor', [self.contractor_id])
self.credit_note_raw = GeneralUse.execute_sp(cursor, 'GetCreditNotesByContractor', [self.contractor_id]) self.credit_note_raw = GeneralUse.execute_sp(cursor, 'GetCreditNotesByContractor', [self.contractor_id])
self.gst_release_raw = GeneralUse.execute_sp(cursor, 'GetGSTRelease', [self.contractor_id]) # self.gst_release_raw = GeneralUse.execute_sp(cursor, 'GetGSTRelease', [self.pmc_no, self.contractor_id])
self.prepare_maps() self.prepare_maps()

View File

@@ -34,7 +34,7 @@
<a href="/logout">Logout</a> <a href="/logout">Logout</a>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<img src="https://lceplpmprod.btltech.xyz/assets/images/lcpl.png" alt="logo-image" class="logo"> <img src="http://lceplpmprod.btltech.xyz/assets/images/lcpl.png" alt="logo-image" class="logo">
<ul class="nav-menu"> <ul class="nav-menu">
<li class="nav-item"> <li class="nav-item">
@@ -136,7 +136,7 @@
<div class="card"> <div class="card">
<h2>Work Order</h2> <h2>Work Order</h2>
<!-- <a class="btn" href="/add_work_order">Go ➜</a> --> <!-- <a class="btn" href="/add_work_order">Go ➜</a> -->
<a class="btn">Go ➜</a> <a class="btn">Go ➜</a>
</div> </div>
<!-- <div class="card"> <!-- <div class="card">
<h2>Purchase Order</h2> <h2>Purchase Order</h2>

View File

@@ -122,7 +122,7 @@
<td>{{ invoice.Work_Type }}</td> <td>{{ invoice.Work_Type }}</td>
<td>{{ invoice.Invoice_Details }}</td> <td>{{ invoice.Invoice_Details }}</td>
<td>{{ invoice.Invoice_Date }}</td> <td>{{ invoice.Invoice_Date }}</td>
<td>{{ invoice.Invoice_No }}</td> <td>{{ invoice.invoice_no }}</td>
<td>{{ invoice.Basic_Amount }}</td> <td>{{ invoice.Basic_Amount }}</td>
<td>{{ invoice.Debit_Amount }}</td> <td>{{ invoice.Debit_Amount }}</td>
<td>{{ invoice.After_Debit_Amount }}</td> <td>{{ invoice.After_Debit_Amount }}</td>
@@ -224,8 +224,8 @@
{% if gst_rel %} {% if gst_rel %}
{% for gst in gst_rel %} {% for gst in gst_rel %}
<tr> <tr>
<td>{{ gst.pmc_no }}</td> <td>{{ gst.PMC_No }}</td>
<td>{{ gst.Invoice_No }}</td> <td>{{ gst.invoice_no }}</td>
<td>{{ gst.Basic_Amount }}</td> <td>{{ gst.Basic_Amount }}</td>
<td>{{ gst.Final_Amount }}</td> <td>{{ gst.Final_Amount }}</td>
<td>{{ gst.Total_Amount }}</td> <td>{{ gst.Total_Amount }}</td>

View File

@@ -69,14 +69,14 @@
</div> </div>
<!-- {% if hold_types %}--> <!-- {% if hold_types %}
<!-- <h3>Hold Types</h3>--> <h3>Hold Types</h3>
<!-- <ul>--> <ul>
<!-- {% for hold in hold_types %}--> {% for hold in hold_types %}
<!-- <li>{{ hold.hold_type }}</li>--> <li>{{ hold.hold_type }}</li>
<!-- {% endfor %}--> {% endfor %}
<!-- </ul>--> </ul>
<!-- {% endif %}--> {% endif %} -->
<h3>Invoice Details</h3> <h3>Invoice Details</h3>
@@ -118,7 +118,7 @@
<td>{{ invoice.Work_Type }}</td> <td>{{ invoice.Work_Type }}</td>
<td>{{ invoice.Invoice_Details }}</td> <td>{{ invoice.Invoice_Details }}</td>
<td>{{ invoice.Invoice_Date }}</td> <td>{{ invoice.Invoice_Date }}</td>
<td>{{ invoice.Invoice_No }}</td> <td>{{ invoice.invoice_no }}</td>
<td>{{ invoice.Basic_Amount }}</td> <td>{{ invoice.Basic_Amount }}</td>
<td>{{ invoice.Debit_Amount }}</td> <td>{{ invoice.Debit_Amount }}</td>
<td>{{ invoice.After_Debit_Amount }}</td> <td>{{ invoice.After_Debit_Amount }}</td>
@@ -139,6 +139,7 @@
0.00 0.00
{% endif %} {% endif %}
</td> </td>
<td>hold.</td>
{% endfor %} {% endfor %}
<td>{{ invoice.GST_SD_Amount }}</td> <td>{{ invoice.GST_SD_Amount }}</td>
@@ -258,6 +259,7 @@
</thead> </thead>
</table> </table>
<h3>GST Release Note Details</h3> <h3>GST Release Note Details</h3>
<table> <table>
<thead> <thead>