Due to rounding differences, an amount could incorrectly remain open when invoicing multiple discounted products on one line

When invoicing multiple products with discounts on one line, it could happen that due to rounding differences, an amount remained open on the balance account, while the order line was financially settled.