How to get Sales Invoice ID

To show the Form ID try with code {{ doc.name }}
Also refer following link -