move line total to end of line items
re-order columns to reflect fields
tidy ups around order, group bys, labels
improve table prefixing