From 341891e3260eaef31434843cb703cb755bc37c3a Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Wed, 20 May 2026 21:50:41 +0200 Subject: [PATCH] fix: status for settled credit notes in sales invoice list (#54764) --- .../accounts/doctype/sales_invoice/sales_invoice_list.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js index ea3ae2b6fab..bd50378c9fb 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice_list.js @@ -27,6 +27,15 @@ frappe.listview_settings["Sales Invoice"] = { "Partly Paid": "yellow", "Internal Transfer": "darkgrey", }; + + if (doc.status === "Credit Note Issued" && flt(doc.outstanding_amount) === 0) { + return [ + __("Settled with Credit Note"), + "green", + `status,=,Credit Note Issued|outstanding_amount,=,0`, + ]; + } + return [__(doc.status), status_colors[doc.status], "status,=," + doc.status]; }, right_column: "grand_total",