Welcome to the Community space, @lucyav087.
Ideally, if a customer pays in cash (immediate payment), you will enter the sales transaction as a sales receipt. Since you've created an invoice, you have to link the payment and then deposit it to the Petty Cash account.
I'll show you how:
- On the top menu, click the Plus icon.
- Choose Receive Payment.

- Enter the customer name.
- Select Cash as the Payment method.
- Choose the Petty Cash account for the Deposit to field.
- Select the invoice transaction.
- Click Save and close.

For additional references, you can open the links below:
Please let me know how it goes or if you have any follow-up questions about invoices. I'll be here if you need further assistance. Wishing you all the best!