From a4022a8920ffeb79a1945ad6912cabf1e441d72d Mon Sep 17 00:00:00 2001 From: rocketdebris Date: Tue, 2 Dec 2025 14:00:08 -0500 Subject: [PATCH] Added rudimentary currency rendering for grand total. --- custom_ui/api/db/invoices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_ui/api/db/invoices.py b/custom_ui/api/db/invoices.py index a4fe47d..65f7eac 100644 --- a/custom_ui/api/db/invoices.py +++ b/custom_ui/api/db/invoices.py @@ -2,7 +2,7 @@ import frappe, json from custom_ui.db_utils import process_query_conditions, build_datatable_dict, get_count_or_filters, build_success_response, build_error_response # =============================================================================== -# ESTIMATES & INVOICES API METHODS +# INVOICES API METHODS # =============================================================================== @@ -36,7 +36,7 @@ def get_invoice_table_data(filters={}, sortings=[], page=1, page_size=10): tableRow["id"] = invoice["name"] tableRow["address"] = invoice.get("custom_installation_address", "") tableRow["customer"] = invoice.get("customer", "") - tableRow["grand_total"] = invoice.get("grand_total", "") + tableRow["grand_total"] = f"${invoice.get('grand_total', '')}0" tableRow["status"] = invoice.get("status", "") tableRow["items"] = invoice.get("items", "") tableRows.append(tableRow)