mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
fix: set value after depreciation when creating test asset
This commit is contained in:
@@ -1707,6 +1707,9 @@ def create_asset(**args):
|
||||
"is_composite_asset": args.is_composite_asset or 0,
|
||||
"asset_quantity": args.get("asset_quantity") or 1,
|
||||
"depr_entry_posting_status": args.depr_entry_posting_status or "",
|
||||
"value_after_depreciation": (
|
||||
(args.gross_purchase_amount or 100000) - (args.opening_accumulated_depreciation or 0)
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user