The solution is a construction quoting system. This part of the system allows a salesman to produce a quote based on the specifications entered on a worksheet. This creates an editable quote linked to the customer file.
The script in question gathers the input from a worksheet layout in the worksheet table, makes the necessary calculations to price each item and post the concatenated data to the cost field in the quotes layout in the quotes table.
A sister script gathers the input from the worksheet layout, makes the necessary calculations, writes a line item description for each price and post the concatenated data to the description field in the quotes layout in the quotes table.
The description and cost fields are single text fields, side by side on the quotes layout, expanded to 3 pages long, set not to print. They have identical merge fields sitting on top, mirroring the input. This allows the fields to be edited and to expand and print properly.
The script in place now works. What I am trying to accomplish is to reduce or eliminate the repetition of the "thousands" formula for each item gathered in the script.