mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 18:24:10 +00:00
Added finance book in Asset Depreciation Ledger report, fixed asset issue
This commit is contained in:
@@ -140,6 +140,8 @@ class Asset(AccountsController):
|
||||
|
||||
if d.depreciation_method in ("Straight Line", "Manual"):
|
||||
days = date_diff(schedule_date, from_date)
|
||||
if n == 0: days += 1
|
||||
|
||||
depreciation_amount = days * rate_per_day
|
||||
from_date = schedule_date
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user