mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
fix:linter issue
This commit is contained in:
@@ -689,18 +689,24 @@ def get_straight_line_or_manual_depr_amount(
|
|||||||
- flt(row.expected_value_after_useful_life)
|
- flt(row.expected_value_after_useful_life)
|
||||||
)
|
)
|
||||||
|
|
||||||
total_days = date_diff(
|
total_days = (
|
||||||
get_last_day(
|
date_diff(
|
||||||
add_months(
|
get_last_day(
|
||||||
row.depreciation_start_date,
|
add_months(
|
||||||
flt(row.total_number_of_depreciations - asset.number_of_depreciations_booked - 1)
|
row.depreciation_start_date,
|
||||||
* row.frequency_of_depreciation,
|
flt(row.total_number_of_depreciations - asset.number_of_depreciations_booked - 1)
|
||||||
)
|
* row.frequency_of_depreciation,
|
||||||
),
|
)
|
||||||
add_days(
|
),
|
||||||
get_last_day(add_months(row.depreciation_start_date, -1 * row.frequency_of_depreciation)), 1
|
add_days(
|
||||||
),
|
get_last_day(
|
||||||
) + 1
|
add_months(row.depreciation_start_date, -1 * row.frequency_of_depreciation)
|
||||||
|
),
|
||||||
|
1,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
+ 1
|
||||||
|
)
|
||||||
|
|
||||||
daily_depr_amount = amount / total_days
|
daily_depr_amount = amount / total_days
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user