mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: pass instance explicitly in static method
This commit is contained in:
@@ -77,7 +77,7 @@ class StraightLineMethod(Document):
|
|||||||
class WDVMethod(Document):
|
class WDVMethod(Document):
|
||||||
@erpnext.allow_regional
|
@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)
|
return WDVMethod.calculate_wdv_or_dd_based_depreciation_amount(self, row_idx)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def calculate_wdv_or_dd_based_depreciation_amount(self, row_idx):
|
def calculate_wdv_or_dd_based_depreciation_amount(self, row_idx):
|
||||||
|
|||||||
Reference in New Issue
Block a user