fix: pass instance explicitly in static method

This commit is contained in:
Khushi Rawat
2025-04-02 01:19:28 +05:30
parent c9980c59e7
commit dc06116425

View File

@@ -77,7 +77,7 @@ 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)
return WDVMethod.calculate_wdv_or_dd_based_depreciation_amount(self, row_idx)
@staticmethod
def calculate_wdv_or_dd_based_depreciation_amount(self, row_idx):