Rounding error for VAT taxable and VAT exempt totals in Sales orders window

Order To Cash: Sales Order Version 8.96

Previously, in certain scenarios where an order contained discount, the roundings done for the VAT taxable and VAT exempt totals in the Sales orders (SO301000) window were incorrect. When an invoice was created for the order, the same rounding issue occured on the invoice, which led to the invoice ending in an error state when sent as e-invoice in Peppol format.
This has now been fixed.