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)