Price List Creation
The user creates a new price list, selects the products to be calculated.
On the pricelist parameters definition, the user selects the pricing logic to be used. Note, that if there was some default logic defined in partition configuration, it will be used, if the user does not select any specific logic.
The system executes the price list logic in Syntax Check Input Generation mode, to retrieve the list of input fields definitions.
The logic calculates/creates the definitions of the input fields.
The system gets the list of input fields from the logic context and adds the input fields to the PL object. Also shows the input fields on the page.
The user enters the values to the custom input fields
The user selects the elements to be mapped to a price list line item.
Price List Calculation
The user starts the calculation of the price list.
The system queries the list of products to be calculated.
For each product, the system will:
take the product ID and put that ID under SKU to the logic context
executes the price list logic in standard mode
the logic calculates the results for the SKU and provides the results via elements output
create the price list item (PLI), and store put/map there:
some product attributes, like label, uom and currency
the outputs of logic visible elements (selected in the price list setup)
result, dynamic currency and dynamic uom, if defined