mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
fix: fiscal year check in depreciation logic
This commit is contained in:
@@ -59,7 +59,8 @@ class DepreciationScheduleController(StraightLineMethod, WDVMethod):
|
|||||||
if self.skip_row:
|
if self.skip_row:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.has_fiscal_year_changed(row_idx):
|
self.has_fiscal_year_changed(row_idx)
|
||||||
|
if self.fiscal_year_changed:
|
||||||
self.yearly_opening_wdv = self.pending_depreciation_amount
|
self.yearly_opening_wdv = self.pending_depreciation_amount
|
||||||
|
|
||||||
self.get_prev_depreciation_amount(row_idx)
|
self.get_prev_depreciation_amount(row_idx)
|
||||||
|
|||||||
Reference in New Issue
Block a user