fix(Asset): Fix value_after_depreciation calculation
This commit is contained in:
parent
80399802c6
commit
2f5f9d8566
@ -182,10 +182,10 @@ class Asset(AccountsController):
|
||||
# value_after_depreciation - current Asset value
|
||||
if d.value_after_depreciation:
|
||||
value_after_depreciation = (flt(d.value_after_depreciation) -
|
||||
flt(self.opening_accumulated_depreciation)) - flt(d.expected_value_after_useful_life)
|
||||
flt(self.opening_accumulated_depreciation))
|
||||
else:
|
||||
value_after_depreciation = (flt(self.gross_purchase_amount) -
|
||||
flt(self.opening_accumulated_depreciation)) - flt(d.expected_value_after_useful_life)
|
||||
flt(self.opening_accumulated_depreciation))
|
||||
|
||||
d.value_after_depreciation = value_after_depreciation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user