You must set up an account in to record the discount in the ledger. If no account is specified, the discount is not recorded directly in the ledger account. Instead, the discount will be deducted from the revenue/cost value.