mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
Merge pull request #43733 from frappe/mergify/bp/version-15-hotfix/pr-43723
fix: do not make new depreciation for fully depreciated asset (backport #43723)
This commit is contained in:
@@ -1359,6 +1359,7 @@ class SalesInvoice(SellingController):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if asset.calculate_depreciation:
|
if asset.calculate_depreciation:
|
||||||
|
if not asset.status == "Fully Depreciated":
|
||||||
notes = _(
|
notes = _(
|
||||||
"This schedule was created when Asset {0} was sold through Sales Invoice {1}."
|
"This schedule was created when Asset {0} was sold through Sales Invoice {1}."
|
||||||
).format(
|
).format(
|
||||||
|
|||||||
Reference in New Issue
Block a user