Look at this advanced split payment tutorial it would work how you want without having to change your calculation at all. It lets you select items in ticket view then press settle and it splits the ticket automatically into new ticket.