The Discount setup must "Include Tax" if it has got a Sales Invoicing Element [SFINUM] or Purchase Invoicing Element[PFINUM] associated with it
To change the Discount setup to Exclude Tax, the invoicing element must be zero