Skip to content

Commit 72056c2

Browse files
committed
fix(py3): Undefined variable
1 parent fbab416 commit 72056c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def make_depreciation_entry(self):
3636
fixed_asset_account, accumulated_depreciation_account, depreciation_expense_account = \
3737
get_depreciation_accounts(asset)
3838

39-
depreciation_cost_center, depreciation_series = frappe.get_cached_value('Company', asset.company,
39+
depreciation_cost_center, depreciation_series = frappe.get_cached_value('Company', asset.company,
4040
["depreciation_cost_center", "series_for_depreciation_entry"])
4141

4242
je = frappe.new_doc("Journal Entry")
@@ -75,8 +75,8 @@ def reschedule_depreciations(self, asset_value):
7575
rate_per_day = flt(d.value_after_depreciation) / flt(total_days)
7676
from_date = self.date
7777
else:
78-
no_of_depreciations = len([e.name for e in asset.schedules
79-
if (cint(s.finance_book_id) == d.idx and not e.journal_entry)])
78+
no_of_depreciations = len([s.name for s in asset.schedules
79+
if (cint(s.finance_book_id) == d.idx and not s.journal_entry)])
8080

8181
value_after_depreciation = d.value_after_depreciation
8282
for data in asset.schedules:

0 commit comments

Comments
 (0)