From d7556069e440e2412a7026d918a9e86955645d2c Mon Sep 17 00:00:00 2001 From: Soham Kulkarni <77533095+sokumon@users.noreply.github.com> Date: Tue, 22 Apr 2025 14:19:41 +0530 Subject: [PATCH] Merge pull request #47175 from sokumon/purchase-receipt-quick-list fix: add grand_total to show correct status in quick list widget (cherry picked from commit 68ca4a77c9034359b21974199dcb620b5e42d4ee) --- erpnext/stock/doctype/purchase_receipt/purchase_receipt_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt_list.js b/erpnext/stock/doctype/purchase_receipt/purchase_receipt_list.js index e295127e6fc..e95a1a2e9f8 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt_list.js +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt_list.js @@ -17,7 +17,7 @@ frappe.listview_settings["Purchase Receipt"] = { return [__("Closed"), "green", "status,=,Closed"]; } else if (flt(doc.per_returned, 2) === 100) { return [__("Return Issued"), "grey", "per_returned,=,100|docstatus,=,1"]; - } else if (flt(doc.grand_total) !== 0 && flt(doc.per_billed, 2) == 0) { + } else if (flt(doc.grand_total || doc.base_grand_total) !== 0 && flt(doc.per_billed, 2) == 0) { return [__("To Bill"), "orange", "per_billed,<,100|docstatus,=,1"]; } else if (flt(doc.per_billed, 2) > 0 && flt(doc.per_billed, 2) < 100) { return [__("Partly Billed"), "yellow", "per_billed,<,100|docstatus,=,1"];