Define a default Discount account in Configuration

OR

Set up the invoice or vendor to distribute discounts to the debit account from the invoice