From b93509bd8ac7ecff7b956e6da1fe9e205de0111f Mon Sep 17 00:00:00 2001 From: akashbhome Date: Mon, 6 Apr 2026 13:39:04 +0530 Subject: [PATCH] update --- logs/activity.log | 10 ++++++++++ model/excel.py | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/logs/activity.log b/logs/activity.log index c2eb161..8f904c0 100644 --- a/logs/activity.log +++ b/logs/activity.log @@ -9775,3 +9775,13 @@ Timestamp: 2026-04-06 12:17:30 | User: Unknown | Action: Delete Hold Type | Deta Timestamp: 2026-04-06 13:02:34 | User: Unknown | Action: Login | Details: Timestamp: 2026-04-06 13:02:40 | User: Unknown | Action: Search Contractor | Details: Timestamp: 2026-04-06 13:02:42 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:41 | User: Unknown | Action: Login | Details: +Timestamp: 2026-04-06 13:33:46 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:49 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:53 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:53 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:53 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:55 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:55 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:56 | User: Unknown | Action: Search Contractor | Details: +Timestamp: 2026-04-06 13:33:58 | User: Unknown | Action: Search Contractor | Details: diff --git a/model/excel.py b/model/excel.py index add7341..cc05251 100644 --- a/model/excel.py +++ b/model/excel.py @@ -178,7 +178,10 @@ class excel: fill_color = PatternFill(start_color="FFC7CE", end_color="FFC7CE", fill_type="solid") # Light red cell.fill = fill_color - sheet.append(["Total Hold Amount", str(Decimal(total["sum_invo_hold_amt"]))]) + # sheet.append(["Total Hold Amount", str(Decimal(total["sum_invo_hold_amt"]))]) + for ht in hold_types: + sheet.append([ht['hold_type'], hold_totals.get(ht['hold_type_id'], 0)]) + sheet.append(["Amount With TDS", str(total.get('sum_invo_tds_amt', 0))]) # Auto adjust column widths