How to customize invoice fields?

How to add Advance payment option in Sales invoice?

That is not an appropriate use of a sales invoice. To request advance payment, use a sales quote. See these Guides:

https://forum.manager.io/t/customer-deposits-and-advances/7093

https://forum.manager.io/t/creating-sales-quotes/7238