Hi mahdi-sun212,
Keeping your books accurate is key in the running of your business. QuickBooks Online offers several great features that help you record various types of transactions. I'll be happy to share more on this.
When it comes to money movements between your accounts payable and accounts receivable, journal entries are a good option. For more on how to create a Journal Entry in the system, check out this article: Create a journal entry in QuickBooks Online
Choosing the default A/P and A/R accounts in the journal entry enables you to select corresponding vendors and customers related to the transaction to debit and credit accordingly. Because this procedure is recommended if you're well versed in accounting, I'd suggest reaching out to your accountant to make sure everything is lining up correctly in your books. If you don't have an accountant, you can find one on our Find-a-proAdvisor website
I hope this helps! Feel free to stop by if you need anything else.