Hmm, FWIW a customised Sales Order template might be easier - then you can access quantity billed, quantity fulfilled received etc on each line - though building all you listed into one json object/array that's easily accessed is equally straightforward, similarly if you added those transaction columns to the cash sale form a lot would be accessible. Long story short - there's no easy solution, but is simple enough customisation with a good dev/consultant.