mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
fix: status for settled credit notes in sales invoice list (#54764)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user