commit | bb424965eebfa0538e0d60d18fc9e7e960bc3a2d | [log] [tgz] |
---|---|---|
author | Anand Baburajan <anandbaburajan@gmail.com> | Fri Feb 03 23:00:40 2023 +0530 |
committer | GitHub <noreply@github.com> | Fri Feb 03 23:00:40 2023 +0530 |
tree | 57ea719d07422f6e2924ce86cfad7f6c4e0ac8ae | |
parent | b961321de5447fe8049472f51ae89f1a3ff76665 [diff] | |
parent | 2afed7de0393a09e00773aa300a35ab56f56e663 [diff] |
Merge branch 'develop' into cancel_pi_cancelled_asset
diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 54f0d94..4ff4428 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py
@@ -712,6 +712,8 @@ asset.purchase_date = self.posting_date asset.supplier = self.supplier elif self.docstatus == 2: + if asset.docstatus == 2: + break if asset.docstatus == 0: asset.set(field, None) asset.supplier = None