Skip to content

Commit

Permalink
fix: 1st row depr. sch. value of asset put to less than 180 days acc.…
Browse files Browse the repository at this point in the history
… to I.T. S. 32 (#38696)

fix: 1st row value of asset put to less than 180 days acc. to IT S. 32
  • Loading branch information
anandbaburajan authored Dec 12, 2023
1 parent b562b4c commit e7984b3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ def _make_depr_schedule(
n == 0
and (has_pro_rata or has_wdv_or_dd_non_yearly_pro_rata)
and not self.opening_accumulated_depreciation
and get_updated_rate_of_depreciation_for_wdv_and_dd(
asset_doc, value_after_depreciation, row, False
)
== row.rate_of_depreciation
):
from_date = add_days(
asset_doc.available_for_use_date, -1
Expand Down Expand Up @@ -605,7 +609,9 @@ def get_depreciation_amount(


@erpnext.allow_regional
def get_updated_rate_of_depreciation_for_wdv_and_dd(asset, depreciable_value, fb_row):
def get_updated_rate_of_depreciation_for_wdv_and_dd(
asset, depreciable_value, fb_row, show_msg=True
):
return fb_row.rate_of_depreciation


Expand Down

0 comments on commit e7984b3

Please sign in to comment.