It feels like incremental/organic growth in capability has left the code in a bit of a mess:
- transactions have been hacked in
table type (when orders are the input) is only discovered by a lookup instead of in the original command from control.ts, even though control.ts also controls the table type selected (radio buttons).
- duplication of code in table.ts