fix:linter issue

This commit is contained in:
Nabin Hait
2024-04-04 18:28:29 +05:30
parent 68b076cb61
commit be0cb5289f

View File

@@ -689,7 +689,8 @@ def get_straight_line_or_manual_depr_amount(
- flt(row.expected_value_after_useful_life)
)
total_days = date_diff(
total_days = (
date_diff(
get_last_day(
add_months(
row.depreciation_start_date,
@@ -698,9 +699,14 @@ def get_straight_line_or_manual_depr_amount(
)
),
add_days(
get_last_day(add_months(row.depreciation_start_date, -1 * row.frequency_of_depreciation)), 1
get_last_day(
add_months(row.depreciation_start_date, -1 * row.frequency_of_depreciation)
),
) + 1
1,
),
)
+ 1
)
daily_depr_amount = amount / total_days