You can record an advance payment made to a vendor as credits and apply this amount on a bill that you later raise in his name.
Now, these credits will be displayed on top all unpaid bills in favor of this vendor as shown below. Applying them to the bill will reduce the amount due accordingly.
VAT ready accounting
software for small