Customisation add new print format

Hello…I need to make proforma invoice parallel to sales order…so I can make either sales order or proforma invoice from the quotation. Please help.
(Contents in Both sales order and Proforma invoice should me same…I just need to change the heading)

You can edit the heading in the print format editor.

image

What I would do is change the {{doc.name}} code to something that makes more sense. Try:
PROFORMA-{{doc.name.split("-")[1]}}

image

thank you, but i cannot see the sales order in print format.

erp

from quote i need to make sales order or proforma invoice, it changes depend on the customer.