When creating or editing an invoice a discount can be applied using the discount field in the individual line items. Add the discount as a percentage, and the invoice will do the calculation for you.