mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 07:38:29 +00:00
fix: skip asset sale processing for internal transfer invoices
(cherry picked from commit 9cb3dad079)
This commit is contained in:
@@ -1451,6 +1451,9 @@ class SalesInvoice(SellingController):
|
|||||||
return asset_qty_map
|
return asset_qty_map
|
||||||
|
|
||||||
def process_asset_depreciation(self):
|
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):
|
if (self.is_return and self.docstatus == 2) or (not self.is_return and self.docstatus == 1):
|
||||||
self.depreciate_asset_on_sale()
|
self.depreciate_asset_on_sale()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user