Merge pull request #53162 from frappe/mergify/bp/version-15-hotfix/pr-53154

fix: skip asset sale processing for internal transfer invoices (backport #53154)
This commit is contained in:
Khushi Rawat
2026-03-04 17:00:56 +05:30
committed by GitHub

View File

@@ -1199,6 +1199,9 @@ class SalesInvoice(SellingController):
throw(_("Delivery Note {0} is not submitted").format(d.delivery_note))
def process_asset_depreciation(self):
if self.is_internal_transfer():
return
if (self.is_return and self.docstatus == 2) or (not self.is_return and self.docstatus == 1):
self.depreciate_asset_on_sale()
else: