Documentation >
MAC-PAC Technical Library >
Distribution >
Order Processing >
Programs >
Pricing/Discount Template Relationship Maintenance - Purpose
Pricing/Discount Template Relationship Maintenance - Purpose
OP245E
The Pricing/Discount Template Relationship Maintenance program (OP245E) updates the Template/Pricing Relationship Master file (OP245M). The Template/Pricing Relationship file is where pricing template codes are related to price lists or discount codes. In order entry, based on given template codes, this file is scanned to search for the price list or discount code that will be used for an order line or the entire order.
The valid values processing in the detail screen of this program is different from the normal prompt processing in MAC-PAC. This is mainly because the promptable field in the subfile can be any of 21 definable codes in a template. The program, therefore, dynamically determines the valid values program of a subfile line by defining the valid values programs and some of the required parameters as hidden fields in the subfile. The valid values programs that are called are based on Reference File category G85.