ER : GET CUSTOM PRICE in formula doesn't evaluate Simulation_flag from qp_preq_lines_tmp
We use QP for OM module (and its Off-Invoice Offers) and for OZF module (and its Rebates Offers).
For one "Off-Invoice" offer, we use a formula that call the function GET CUSTOM PRICE with 2 objectives
- to determine a rate for the offer
- to write a record in a custom table (depending the rate determined in 1)).
When we launch the QP engine during the OM order life cycle (simulation flag = No), the 2 objectives are satisfied.
When we launch the QP engine during the OZF offer life cycle(simulation flag = Yes),
- the formula is called,
- the objective 1 (rate for the offer) is not applied due to the simulation flag = Yes