On my AR invoice I am using a UDF which is linked to a User Table called Department.
When invoicing on each line I have to chose a Department.
For the Text I am using the Type - Text.
For example i have 20 lines of Billing. When printing the AR Invoice I need the invoice to be sorted by Department and subtotal automaticially by Department.