How to reverse the change done in default print format

I wanted to add one field data in print format of e-invoice, by mistake I did not create duplicate document of e-invoice print format instead edited the original document. now the original document is distorted and i am not able to undo the change.

How to undo the change?

I think it’s not possible, but if you have another site, you can check it and set it again to the standard position.

If you don’t have a reference for the standard position, please refer to the image below. This shows the standard position for the e-invoice print format.

Thank You, I went through the image you shared, position of fields are intact. But things I am missing are IRN numebr and QR code. Earlier e-invoice had IRN number and QR on print but it’s missing now. We checked code also, not able find any change in code.

You can also search that field. please check it.

Thank You, I could bring everything in place except QR code which was there earlier.

I have succeeded to insert QR code by adding following html

<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
    <div>
    <p><strong>Tax Invoice</strong></p>
    <p><strong>IRN: </strong>{{ doc.irn }}</p>
    <p>Invoice Number: <strong>{{ doc.name }}</strong></p>
    <p>Date: <strong>{{ doc.posting_date }}</strong></p>
    </div>
    <div>
      <img src={{ doc.custom_qr_link}} width="80" height="80">
      <p>e-invoice</p>
    </div>
</div>

and server script to set QR code url I am running server script before print:

if doc.irn:
    doc.custom_qr_link = 'https://api.qrserver.com/v1/create-qr-code/?data=' + doc.irn
else:
    doc.custom_qr_link = 'https://api.qrserver.com/v1/create-qr-code/?data=' + doc.name

Finally header looks wonderful like this: