Sales order number in sales invoice print out

Hello,

Just want to ask if how can the sales order number will appear in sales invoice print out form?

Can the reference be used as the link to the sales order number? or How can i use the frappe.db.get_value when the link between the sales order is from sales invoice item?

Thank you.

@ossphinc,

Sales Order reference is already available in the Sales Invoice Item so you can directly get the sales order in print format no need to use frappe.db.get_value.

Thanks,
Makarand

Hello @makarand_b I’ve tried it but i just want to show only one sales order number for reference. Is it possible?