Go to Tools > Print Designer

Click on Sales Invoice



The following screen appears.  In the following screen, click on the Edit Layout




In the Edit Layout window, add the {partyGstin} variable