Generates QR code by calculating the price difference and returning the difference amount as expected discount.
The extension fetches the subtotal from pos system using active Tab and then lets the user enter the amount for the desired amount. The discounted amount is then retrieved and is then placed in the discount section to calculate the final price.