When creating a Sales Invoice from a custom page, the Sales Invoice number needs to match the number on the custom page. How can the same number be set for both documents?
Hi,
If you are inserting sales invoice through API from custom page, then you can send the invoice number from custom page in ID field to match the same.
Thanks,
Divyesh Mangroliya
used get_doc() to perform the sales posting,
Invoice = frappe.get_doc({
“doctype”:“Sales Invoice”,
}Invoice.insert()
is it possible to call rest api from custom page ?