If you are looking to apply the discount before the GST amount, we suggest changing the discount type to Net Amount / Unit Price while creating the invoice, and then adding the discount accordingly.