From 3550b6e3a987091a9330e9306b14e9e6515de165 Mon Sep 17 00:00:00 2001 From: Khushi Rawat <142375893+khushi8112@users.noreply.github.com> Date: Sat, 24 Aug 2024 00:35:46 +0530 Subject: [PATCH] fix: adjust depreciation when daily prorata is enabled (cherry picked from commit 1e6f6893248666f4e8c2b0742da50c70aec011da) --- .../income_tax_india/overrides/asset_depreciation_schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/india_compliance/income_tax_india/overrides/asset_depreciation_schedule.py b/india_compliance/income_tax_india/overrides/asset_depreciation_schedule.py index 5adafa6221..3e49d27a67 100644 --- a/india_compliance/income_tax_india/overrides/asset_depreciation_schedule.py +++ b/india_compliance/income_tax_india/overrides/asset_depreciation_schedule.py @@ -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: