Fix double discount in invoices