Show all costs associated with a task

You can use the USER_SYM_SUBROUTINE subroutine with the COSTS argument in a complex User Symbolic to show all costs associated with a certain task of a specific cost type, or of a cost type within a task.

Subroutine name

USER_SYM_SUBROUTINE

Subroutine argument

COSTS

Field type

Tasks and Their Costs fields.

Example of use

You could see the total amount that has been spent on photography tasks or on exhibition purchases.

Argument syntax and parameters

The subroutine is a piece of code that uses ‘arguments’. An argument is a set of options that tells the subroutine what to do. The argument parameters are commonly separated by an exclamation mark.

The COSTS subroutine argument structure is:

COSTS!arg2!arg3

To show all costs associated with any task linked to the record, just enter COSTS as the argument.

What the argument parameters mean

Argument parameter Required or optional? Explanation
arg2 Optional The System ID of the Task or Cost Type.
arg3 Optional If you have specified a Task in arg2, enter the System ID of a Cost Type within this Task.

Example of subroutine argument

This argument will display costs of the type Processing Fee for the task Photograph Object.

PHO is the System ID of the task Photograph Object and PRO is the System ID of the cost type Processing Fee.

COSTS!PHO!PRO