mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Merge pull request #33963 from frappe/mergify/bp/version-13-hotfix/pr-33946
fix: allow cancelling purchase invoice if linked asset is already cancelled (backport #33946)
This commit is contained in:
@@ -755,6 +755,8 @@ class BuyingController(StockController, Subcontracting):
|
|||||||
asset.purchase_date = self.posting_date
|
asset.purchase_date = self.posting_date
|
||||||
asset.supplier = self.supplier
|
asset.supplier = self.supplier
|
||||||
elif self.docstatus == 2:
|
elif self.docstatus == 2:
|
||||||
|
if asset.docstatus == 2:
|
||||||
|
continue
|
||||||
if asset.docstatus == 0:
|
if asset.docstatus == 0:
|
||||||
asset.set(field, None)
|
asset.set(field, None)
|
||||||
asset.supplier = None
|
asset.supplier = None
|
||||||
|
|||||||
Reference in New Issue
Block a user