Skip to content

Commit

Permalink
Merge pull request #2562 from khushi8112/leap-year-depreciation-handling
Browse files Browse the repository at this point in the history
fix: adjust depreciation when daily pro-rata is enabled
  • Loading branch information
vorasmit authored Aug 24, 2024
2 parents 4ce0242 + 1e6f689 commit 01cfd49
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 01cfd49

Please sign in to comment.