fix: corrected mismatch in the Purchase Receipt Status #15620 (#42138)

This commit is contained in:
Poorvi-R-Bhat
2024-07-09 14:59:31 +05:30
committed by GitHub
parent ad137250fc
commit 623b4c21cd
3 changed files with 23 additions and 3 deletions

View File

@@ -102,7 +102,10 @@ status_map = {
["To Bill", "eval:self.per_billed == 0 and self.docstatus == 1"],
["Partly Billed", "eval:self.per_billed > 0 and self.per_billed < 100 and self.docstatus == 1"],
["Return Issued", "eval:self.per_returned == 100 and self.docstatus == 1"],
["Completed", "eval:self.per_billed == 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)",
],
["Cancelled", "eval:self.docstatus==2"],
["Closed", "eval:self.status=='Closed' and self.docstatus != 2"],
],