Dated material should be used before it expires. The starter rule Reserve dated material by earliest expiry adds one allocation rule that reserves every item needing an expiry date from the store you choose, earliest expiry first.
Use the starter rule
You need the Author role, an approved material catalogue with at least one item that needs an expiry date, and an approved policy, or a policy draft open in the editor. The rule is added to a draft: work keeps following the approved policy until a Reviewer activates a new release.
- Open Materials and policies. Under Starter rules, the cards are listed before Prepare a closed draft.
- Find Reserve dated material by earliest expiry. It is under Reserving stock; you can also type a word from its title in Search starter rules and Help.
- Fill in the blank in the card's sentence, "Reserve items that need an expiry date from …, earliest expiry first.":
- Store: one of this site's active stores, such as MAIN (Main stores).
- Choose Use this rule. The button waits until the blank has a value.
If a policy draft is open in the editor, the rule joins it as its next revision. Otherwise StoresFlow first copies the approved policy into a new draft, as Copy approved policy into a new draft does, and adds the rule as that draft's second revision. The page says what was added and opens the draft in Draft document. If the editor holds text you have not saved, it is left alone and Open the policy draft opens the new revision when you are ready. No AI is asked.
What the rule does
The rule belongs to the decision which stores stock is reserved from, and in what order. When a job needs an item that the approved catalogue says needs an expiry date, StoresFlow reserves it from the store you chose, the stock with the earliest expiry date first. Items that need no expiry date are reserved as before. Reservation still takes only available stock, so expired stock is never reserved.
The rule names one store. If your policy reserves dated items from several stores today, they now come only from the store you chose.
The rule is placed after the allocation rules the policy already has, so a rule you already have still decides where both apply. Change its precedence in the draft document if you want the other order.
Check the examples
The starter rule adds 2 examples under Independent examples, written for the store you chose and your site's own families:
- A job needing a dated item is reserved from your store, earliest expiry first.
- A job needing an item that needs no expiry date is reserved as your draft already decided for it.
Read each example and change any whose facts do not suit your site.
Release it
In Retained drafts, choose Prove this exact draft. Every example is run, the starter rule's among them. A failure names the example that disagreed: decide whether the rule or the example is wrong before changing either. Then a Reviewer activates the proved release, as for any policy change; see examples and releases. Activation checks that your plan includes advanced routing, as it does for any allocation rule that changes the order of reservation.
If the card is refused
- This starter rule has changed since the page was read. Read the page again and fill in the card once more.
- The policy draft already has this rule. Nothing was added.
- The policy's default for that stage already decides this. Every item is already reserved from that store by earliest expiry, so the rule would change nothing.
To remove the rule later, copy the approved policy into a new draft, delete the rule and the examples that expect it from the draft document, then prove and activate the draft as usual. Nothing about a starter rule makes its rule permanent.