mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
chore: adjust regional depreciation logic after refactor
This commit is contained in:
@@ -75,7 +75,12 @@ class StraightLineMethod(Document):
|
|||||||
|
|
||||||
|
|
||||||
class WDVMethod(Document):
|
class WDVMethod(Document):
|
||||||
|
@erpnext.allow_regional
|
||||||
def get_wdv_or_dd_depr_amount(self, row_idx):
|
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:
|
if self.fb_row.daily_prorata_based:
|
||||||
return self.get_daily_prorata_based_wdv_depr_amount(row_idx)
|
return self.get_daily_prorata_based_wdv_depr_amount(row_idx)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user