...
1. Record the actual deposit entry with Cash Payment or Bank Payment document with transaction type 'To Supplier':
Money > Cash Documents > Cash Payment
See also 6.3.2.1. Cash Payments (To Supplier)
Money > Bank Documents > Bank Payment
See also 6.2.2.1. Bank Payments (To Supplier)
2. On the Payment Details tab, chose GL Account - Deposits Paid to Suppliers:
...
3. To return deposit, create a Cash Receipt or Bank Receipt with transaction type 'From Supplier':
See also 6.2.1.2. Bank Receipts (From Supplier)
4. On the Payment Details tab, chose GL Account - Deposits Paid to Suppliers and link the advance document:
...