Skip to content · Zum Inhalt

Price rules and their formulas

A price rule carries the formulas that calculate its prices. Most rules are built once and then copied, extended with a template or given a filter, which is faster and safer than typing every line again.

Before you start. The rule you work from exists and you know which items or groups it covers.

Copy a price rule

  1. Open QUAPL Price Rules and select the rule you want to copy.
  2. Choose Copy Rule.
  3. Type the code and the description of the new rule.
  4. Open the copy, change the applies-to fields and the formulas.
  5. Choose Run to calculate the copy.

Insert a formula template into a rule

  1. Open the rule and choose Insert Template.
  2. Pick the template whose formulas you want.
  3. Check the new lines in Formulas: each template line arrives with its kind and its starting price.
  4. Change the amounts that are specific to this rule.
  5. Choose Run to calculate the rule.

Tip: Copy a rule before you insert a template into it. If the template was the wrong one, you still have the rule as it was.

Test an item filter before you run the rule

The formulas of a rule with the action that tests its item filter

  1. Open the rule whose filter you want to test.
  2. Choose Test Filter.
  3. Read the items the app lists. Only these items are changed when the rule runs.
  4. Correct the filter on the rule when items are missing or too many.
  5. Choose Run when the list is right.

Example. FILT-50 covers the filter QUAFILTER50. The test shows the items the filter selects; the rule then calculates its 40 cost formulas for exactly those items.

What happens. The rule calculates its formulas from the first line to the last and writes the price it arrives at into the target price list of the formula.

If something goes wrong

A price cannot be calculated for a customer discount group. The app refuses the calculation because a discount group carries no price of its own. Use a customer or a customer price group as the target.

A target price list that does not allow updates is refused. Switch updating of defaults on for the price list, or choose another target price list.

A lowest price lookup must use the highest discount lookup. When a formula takes the lowest price, its discount lookup must be the highest one. Change the lookup method of the formula.