mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-17 13:55:10 +00:00
fix: pass instance explicitly in static method
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user