Hi Sylviesu,
If your vendor gives you credit, you can enter it as a Prepayment as a Payments Journal.
Open the Payments Journal. If you do not see the Prepayment Account box on top of the Total box, go to Payment in the menu bar and select Enter Prepayment…