Skip to content

Commit

Permalink
fix: adjust depreciation when daily prorata is enabled
Browse files Browse the repository at this point in the history
(cherry picked from commit 1e6f689)
  • Loading branch information
khushi8112 authored and mergify[bot] committed Aug 24, 2024
1 parent d08fa79 commit 3550b6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_wdv_or_dd_depr_amount(
flt(fb_row.rate_of_depreciation) / 100
)
# if leap year, then consider 366 days
if cint(schedule_date.year) % 4 == 0:
if cint(schedule_date.year) % 4 == 0 and fb_row.daily_prorata_based:
depreciation_amount = depreciation_amount * 366 / 365
elif fb_row.frequency_of_depreciation == 1:
if fb_row.daily_prorata_based:
Expand Down

0 comments on commit 3550b6e

Please sign in to comment.