fix: do not make new depreciation for fully depreciated asset

(cherry picked from commit 25de412371)
This commit is contained in:
Khushi Rawat
2024-10-18 16:47:57 +05:30
committed by Mergify
parent 03b5d5a0e0
commit ddb38db5c4

View File

@@ -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(