In the following code I want to fetch data from my doctype of Item and make a new entry in the Cart doctype using AJAX:
Doctype details:
- Item(child doctype) → (item_name, price, quantity)
- Cart(parent doctype) → (user, Item Table, total_price)
In the following code I want to fetch data from my doctype of Item and make a new entry in the Cart doctype using AJAX:
Doctype details:
Following is the code of function:
Sending some hardcoded values into the function:
I am confused in using frappe.call here…
In the following discussion I have solved this issue by using another approach called async/await, here is the link: