Hello, I want to make an automatic delivery note for sales orders when the items appear in the store
Hi @EslamAfify2015,
Automatically delivery note creates a from sales order for, please apply server script.
facture = frappe.call('erpnext.selling.doctype.sales_order.sales_order.make_delivery_note',source_name = doc.name)
// delivery note goes to submit stage.
facture.docstatus = 1
// delivery note goes to draft stage.
//facture.docstatus = 0
facture_doc = frappe.get_doc(
facture
)
facture_doc.insert()
doc.reload()
Please set your condition, for available items in stock or not.
Thank You!
1 Like