fix: linter issues

This commit is contained in:
Nabin Hait
2024-02-20 11:57:06 +05:30
parent 963ddac528
commit e99485bfa7

View File

@@ -514,13 +514,14 @@ class Asset(AccountsController):
# Adjust depreciation amount in the last period based on the expected value after useful life
if (
(
n == cint(final_number_of_depreciations) - 1
and flt(value_after_depreciation) != flt(finance_book.expected_value_after_useful_life)
)
or flt(value_after_depreciation) < flt(finance_book.expected_value_after_useful_life)
n == cint(final_number_of_depreciations) - 1
and flt(value_after_depreciation) != flt(finance_book.expected_value_after_useful_life)
) or flt(value_after_depreciation) < flt(
finance_book.expected_value_after_useful_life
):
depreciation_amount += flt(value_after_depreciation) - flt(finance_book.expected_value_after_useful_life)
depreciation_amount += flt(value_after_depreciation) - flt(
finance_book.expected_value_after_useful_life
)
skip_row = True
if flt(depreciation_amount, self.precision("gross_purchase_amount")) > 0: