When the amount is negative, it is passed as a credit in accounting in the case of a supplier invoice and as a debit in the case of a credit memo. The invoice cannot have a negative ex-tax and tax-incl. total: it is possible for some on line ex-tax amounts but the ex-tax amount of the header is always positive.