commit | 396f4552588c8b4975f4330f459c684d8cad9a41 | [log] [tgz] |
---|---|---|
author | Anand Baburajan <anandbaburajan@gmail.com> | Sun Feb 05 12:19:21 2023 +0530 |
committer | GitHub <noreply@github.com> | Sun Feb 05 12:19:21 2023 +0530 |
tree | bbd3b6a889631f1966d6b3e0a4849e9b3e7c1fc0 | |
parent | 82490d9f55b1cc4518d114dff272466d4d2c86dc [diff] | |
parent | 05f4b659a7ad12a22c3ac09e57d7d0c43c98d6cf [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..4f7d9ad 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: + continue if asset.docstatus == 0: asset.set(field, None) asset.supplier = None