mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
perf: asset creation from purchase receipt
This commit is contained in:
@@ -905,7 +905,7 @@ def transfer_asset(args):
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_item_details(item_code, asset_category, gross_purchase_amount):
|
||||
asset_category_doc = frappe.get_doc("Asset Category", asset_category)
|
||||
asset_category_doc = frappe.get_cached_doc("Asset Category", asset_category)
|
||||
books = []
|
||||
for d in asset_category_doc.finance_books:
|
||||
books.append(
|
||||
|
||||
Reference in New Issue
Block a user