fix: change is_return value in filter from Yes to 1

(cherry picked from commit af212f520d)
This commit is contained in:
Pugazhendhi Velu
2025-12-03 13:14:39 +00:00
committed by Mergify
parent ebb62966d3
commit 52e26b6da8
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ frappe.listview_settings["Delivery Note"] = {
],
get_indicator: function (doc) {
if (cint(doc.is_return) == 1 && doc.status == "Return") {
return [__("Return"), "gray", "is_return,=,Yes"];
return [__("Return"), "gray", "is_return,=,1"];
} else if (doc.status === "Closed") {
return [__("Closed"), "green", "status,=,Closed"];
} else if (doc.status === "Return Issued") {

View File

@@ -12,7 +12,7 @@ frappe.listview_settings["Purchase Receipt"] = {
],
get_indicator: function (doc) {
if (cint(doc.is_return) == 1 && doc.status == "Return") {
return [__("Return"), "gray", "is_return,=,Yes"];
return [__("Return"), "gray", "is_return,=,1"];
} else if (doc.status === "Closed") {
return [__("Closed"), "green", "status,=,Closed"];
} else if (flt(doc.per_returned, 2) === 100) {