Yes, the user can add the discount earned to the invoice and deduct its value from the total purchase invoice. Or add a discount on a specific product within the purchase invoice.