Welcome to QuickBooks Community, akhan-masaraty-s!
Using an E-invoicing system as per KSA law isn't yet available in the system. I see how important to use this feature that will meet the new requirements for electronic invoicing regulations in Saudi Arabia.
For now, we can look for a third-party application that you can integrate with QuickBooks Online to comply with the new invoice regulation. In the meantime, you may review this article to learn more about creating invoices in QBO: Create invoices in QuickBooks Online. This includes details about recording invoice payments.