Thank you for posting here in the Community, @i-abdulkarim.
Let me lend a hand so you can register discounts in QuickBooks Online.
The Discount feature allows you to provide discounts to your customers using an invoice or sales receipt. Before you start, you'll need to enable the option first from the Account and Settings section.
Here's how:
Go to the Gear icon.
Under Your Company, choose Accounts and Settings.
Select Sales.
Click Sales form content.
Put a check for the Discount option to turn it on.
Click on Save and then Done.
Once done, a field for the discount will now be available on your sales transactions (see sample screenshot below).