chore: adjust regional depreciation logic after refactor

This commit is contained in:
Khushi Rawat
2025-04-02 01:02:07 +05:30
parent 0e93c573a6
commit c9980c59e7

View File

@@ -75,7 +75,12 @@ class StraightLineMethod(Document):
class WDVMethod(Document):
@erpnext.allow_regional
def get_wdv_or_dd_depr_amount(self, row_idx):
return self.calculate_wdv_or_dd_based_depreciation_amount(row_idx)
@staticmethod
def calculate_wdv_or_dd_based_depreciation_amount(self, row_idx):
if self.fb_row.daily_prorata_based:
return self.get_daily_prorata_based_wdv_depr_amount(row_idx)
else: