Where two suppliers sell the same item, the catalogue's ranks decide between them. The starter rule Buy an item from a preferred supplier adds one rule that names, for one item, the supplier to try first and a second for when the first is on hold.
Use the starter rule
You need the Author role and a draft release. The rule is added to the draft: orders keep following the live release until a Reviewer makes a new one live.
- Open Releases and open your draft. If you have none, open the live release and choose Copy to a new draft.
- Choose Edit rules and examples. On a draft the page opens on Starter rules.
- Find Buy an item from a preferred supplier. Choose All or Suppliers to see it; you can also type a word from its title in Search starter rules and Help.
- Fill in the blanks in the card's sentence, "Buy … from …; if that supplier is on hold, use ….":
- Item: an item that at least two of this draft's suppliers sell, shown by its code and name. An item only one supplier sells is not listed: there is nothing to choose between.
- Supplier: the supplier to try first. The list holds the suppliers of this draft that sell an item two suppliers sell.
- Second supplier: the supplier used when the first is on hold or its supplier item is retired. It must be a different supplier that also sells the item.
- Choose Use this rule. The button waits until every blank has a value.
Purchasing adds one rule and its examples to the draft and says so above the cards. The page moves to the rule's family, where the rule now reads Began from the starter rule with the starter rule's name and version. No AI is asked, and nothing is frozen, approved, sent or made live.
What the rule does
The rule belongs to the decision which supplier is used. It applies to every request for the item you chose, whatever the quantity. It lists two supplier items in order: the first supplier's item for that item, then the second supplier's.
Purchasing uses the first whose supplier is active and whose supplier item is active. If neither can be used, the request waits as Needs a supplier for someone to choose.
Where a supplier has more than one supplier item for the item, the rule takes the one with the best rank.
The rule is placed after the conditional rules the family already has and before its default. The first rule that applies to an order wins, so a rule you already have still wins where both apply. Change the Precedence of either rule by hand if you want the other order.
Check the examples
The starter rule saves 2 examples with the rule, written for the values you chose. Find them under Saved examples, in the rule's family:
- A need for the item is prepared for the preferred supplier, then the second supplier.
- A need for another item keeps the supplier your release already chooses.
An example the rule does not apply to expects whatever your draft already decided for that case, so it names one of your own rules or the default. Read each example and edit any whose facts do not suit your site. Other items keep the supplier your release already chooses for them.
Each example names your draft's own suppliers and items, as the card's blanks do. Where the draft lacks one an example needs, such as a second supplier, the card says so in its description and that example is not saved.
Release it
Return to the release with Catalogue release and choose Run examples and freeze. Every saved example of the release is run, the starter rule's among them. A failure names what disagreed: decide whether the rule or the example is wrong before changing either. Then hand the frozen release to a Reviewer. Rules and releases describes the review; a rule from a starter rule is reviewed like any other, and its author cannot make the release live unless the Owner has allowed self-review.
If the card is refused
- This starter rule has changed since the page was opened. Purchasing has a newer version of the starter rule. Reload the page and fill the card in again.
- This release changed while you were working. Someone saved the draft after you opened the page. Reload it.
- Choose two different suppliers. The second supplier is used when the first is on hold, so it cannot be the same one.
- That supplier has no active supplier item for the item you chose. Choose a supplier that sells it, or add its supplier item to the catalogue first.
- If no answer comes back, choose Check original action before using the card again. See unconfirmed actions.
To remove the rule later, remove its examples under Saved examples first, then choose Remove rule. Nothing about a starter rule makes its rule permanent.