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