You first need to create an advance payment entry.
After you’ve created the appropriate purchase invoices, you can use the payment reconciliation tool to sync up your balance with your supplier.
Btw, this works for customers too if they are giving you payments in advance and you can sync up your balance after the appropriate sales invoices have been created.
Edit: also check out this post from several hours ago.