mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 12:25:09 +00:00
fix(asset): handle None in depreciation value
This commit is contained in:
@@ -456,7 +456,7 @@ class AssetDepreciationSchedule(Document):
|
|||||||
continue
|
continue
|
||||||
depreciation_amount = flt(depreciation_amount, asset_doc.precision("gross_purchase_amount"))
|
depreciation_amount = flt(depreciation_amount, asset_doc.precision("gross_purchase_amount"))
|
||||||
value_after_depreciation = flt(
|
value_after_depreciation = flt(
|
||||||
value_after_depreciation - flt(depreciation_amount),
|
flt(value_after_depreciation) - flt(depreciation_amount),
|
||||||
asset_doc.precision("gross_purchase_amount"),
|
asset_doc.precision("gross_purchase_amount"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user