During settlement, the discount is not applied proportionally to the items, as expected, but deducted as a total amount from the final amount. The discount was entered as a lump sum — but this does not appear to be distributed proportionally to the individual items.
·