fix: use get_last_day to get the correct date (#42564)

This commit is contained in:
Khushi Rawat
2024-08-02 16:21:21 +05:30
committed by GitHub
parent 281198456d
commit 5d58eb67a6

View File

@@ -729,11 +729,16 @@ def get_daily_depr_amount(asset, row, schedule_idx, amount):
) )
), ),
add_days( add_days(
get_last_day(
add_months( add_months(
row.depreciation_start_date, row.depreciation_start_date,
(row.frequency_of_depreciation * (asset.opening_number_of_booked_depreciations + 1)) (
row.frequency_of_depreciation
* (asset.opening_number_of_booked_depreciations + 1)
)
* -1, * -1,
), ),
),
1, 1,
), ),
) )