|
Code Substitution |
Top Previous Next |
|
Allows Code Substitution to be embedded in the workup text of any item in a bill. When activated, the system will substitute one code with another, either for the whole job or for a specified cost centre, and also delete nominated cost centre(s)
Ideal for mini bills enforcing a change of codes in the main bill, or replacing one cost centre with another
Setup
The workup text contains lines such as:
[HIDE] replace code 0001 with 0002 replace code 0003 with 0002 CC 018 replace code 0004 with 0002 delete cc 007 delete cost centre 007
There two possible keywords at the start of each line that can trigger the substitution:
"replace code" replace code 0003 with 0002 CC 018
The system parses each line into a series of words separated by spaces. The Third and Fifth words are the keywords for the FROM and TO codes The Seventh word (if it exists) is the cost centre that the change is limited to
"delete c" delete cost centre 007
The last word on the line is the cost centre to be deleted
Notes: Commands are not case sensitive [HIDE] line merely stops following lines from printing Searching stops when an empty line is encountered
Activating
There are 2 ways to activate:
A check box in Copy Quantities activates the option
From the Go To menu in Quantities (this works on the current bill)
|