Documentation >
MAC-PAC Reference Library >
Distribution >
Order Processing >
Key Concepts and Procedures >
Pricing/Discount Templates >
Defining Templates
Defining Templates
Before setting up template relationships, a template code must be valid on defined on Reference File category G69 - Pricing/Discount Template Code, refer to the figure below. This category defines the type of template (price list, volume discount, header discount, or line discount) and indicates which key fields are associated with the template. For more specific information about setting up this category, refer to the Reference File Categories User Manual.
WILLIAMS COMMON FEATURES 5/24/94
DSP01 REFERENCE FILE CATEGORY G69 CHANGE
Category Name PRC/DISC TEMPLATE CODE
TEMPLATE CODE
Category Key TEMP1
TEMPLATE TYPE DESCRIPTION CDE1 CDE2 CDE3 CDE4
Data L LINE DISCOUNT TEMPLATE Y Y Y N
X TTTTTTTTTTTTTTTTTTTTTTTTT Y Y Y Y
CDE5 CDE6 CDE7 CDE8 CDE9 CDE10 CDE11 CDE12 CDE13 CDE14
Data N N N N Y Y Y N Y N
Y Y Y Y Y Y Y Y Y Y
CDE15 CDE16 CDE17 CDE18 CDE19 CDE20 CDE21
Data N Y Y N N N N
Y Y Y Y Y Y Y
F2=Command F3=Exit F9=Inquiry F10=Function Select
F12=Lower Case F15=Rekey Data
|
Defining Template Codes on Reference File Category G69.
This category defines the type of template and identifies which key fields will be used.
Once established on Reference File category G69, you can set up template relationships. This is done in the Pricing/Discount Template Relationship Maintenance conversation which allows you to associate the template with a price list/discount code and to determine values for each of the key fields. Associating specific values with each of the key fields allows you to determine the actual target set of the template (i.e., the template will be triggered if the conditions of the order match the template criteria—the values of the key fields).
Note: If you wish to establish multiple target sets for one template, you can do so by defining different values for the key fields and associating them with another version of the template.