mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
feat(Asset): Edit value_after_depreciation
This commit is contained in:
@@ -183,13 +183,12 @@ class Asset(AccountsController):
|
||||
start = 0
|
||||
for n in range (len(self.schedules)):
|
||||
if not self.schedules[n].journal_entry:
|
||||
print("*"*100)
|
||||
del self.schedules[n:]
|
||||
start = n
|
||||
break
|
||||
|
||||
value_after_depreciation = (flt(self.gross_purchase_amount) -
|
||||
flt(self.opening_accumulated_depreciation))
|
||||
value_after_depreciation = (flt(self.asset_value) -
|
||||
flt(self.opening_accumulated_depreciation)) - flt(d.expected_value_after_useful_life)
|
||||
|
||||
d.value_after_depreciation = value_after_depreciation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user