commit | 8993ccb7d20e8a6fade8f6cccf5b7977f0442a79 | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@iwebnotes.com> | Wed Mar 31 17:05:00 2021 +0530 |
committer | Ankush Menat <ankush@iwebnotes.com> | Thu Apr 01 11:51:31 2021 +0530 |
tree | 8d77f9cd468cc5caa9ec03b6bd5e80490e15dbde | |
parent | 4198cf58e55d7ba7b4e79e0a3ff220ef9ddd5382 [diff] |
fix: update PR status in database
diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index 70687bda..5d7597b 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
@@ -176,7 +176,7 @@ if flt(self.per_billed) < 100: self.update_billing_status() else: - self.status = "Completed" + self.db_set("status", "Completed") # Updating stock ledger should always be called after updating prevdoc status,