Skip to content

Commit

Permalink
Merge pull request #2572 from resilient-tech/mergify/bp/version-15-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-2562

fix: adjust depreciation when daily pro-rata is enabled (backport #2562)
  • Loading branch information
mergify[bot] authored Aug 24, 2024
2 parents 44817b2 + 3550b6e commit 9a475b4
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 9a475b4

Please sign in to comment.