fix: over billed purchase receipt status

(cherry picked from commit 15e354f76e)
This commit is contained in:
Mihir Kandoi
2025-07-29 11:15:14 +05:30
committed by Mergify
parent 92e315c4e1
commit 1efdff0ad1
2 changed files with 3 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ status_map = {
["Return Issued", "eval:self.per_returned == 100 and self.docstatus == 1"],
[
"Completed",
"eval:(self.per_billed == 100 and self.docstatus == 1) or (self.docstatus == 1 and self.grand_total == 0 and self.per_returned != 100 and self.is_return == 0)",
"eval:(self.per_billed >= 100 and self.docstatus == 1) or (self.docstatus == 1 and self.grand_total == 0 and self.per_returned != 100 and self.is_return == 0)",
],
["Cancelled", "eval:self.docstatus==2"],
["Closed", "eval:self.status=='Closed' and self.docstatus != 2"],