How apply 2 discounts while making an invoice/ bill?

There are 2 types of discount that can be applied while making an invoice.

  1. Product/ Item level discount
    How to add discount to product while creating the invoice on web?

  2. Extra discount
    How to apply extra discount while creating an invoice on web?