Splitting/Undo splitting invoice lines changes amounts on invoice

Purchase To Pay: Supplier Ledger Version 8.54

There was an issue when performing the split line / undo split operation several times on a purchase invoice (AP301000). Sometimes it caused the invoice to go out of balance.
The issue has now been fixed.