Documentation

Apps › Manufacturing Suite › Shelf-Life Aware Replenishment › Documentation

Shelf-Life Aware Replenishment help

Shelf-Life Aware Replenishment makes remaining shelf life and batch quality status count in reservation, picking, posting and planning in Microsoft Dynamics 365 Business Central. This guide covers what you need before you start, how to set the app up, and how to use it day to day.

Before you start

  • Business Central online, version 29 or later. Essentials is enough for sales, purchasing, transfers and assembly. Reservation for production orders needs Premium.
  • Lot tracking with expiration dates. The app works on items that have an item tracking code with lot tracking and expiration dates switched on.
  • No other apps are required.

Quantities and expiration dates always come from the item ledger, and reservations are standard Business Central reservation entries. The app adds checks and information on top; it does not replace standard posting or planning.

Roles, permission sets and licences

The app has three roles. Choose yours under My Settings > Role.

RoleForPermission setLicence plan
Shelf Life UserPlanners, sales and warehouse leadsShelf Life User (or Shelf Life View for read-only)Shelf Life User
Shelf Life Quality ControlPeople who release, hold and reject batchesShelf Life Quality ControlShelf Life Quality & Admin
Shelf Life AdministratorThe person who configures the appShelf Life AdministratorShelf Life Quality & Admin

People who only post, pick or enter orders need no licence and no extra permission set. The Shelf Life Posting (indirect) permission set is included in the standard basic permission set, so the checks run for them automatically.

Each role opens a Role Center with the same cues:

  • Stock at Risk: expired lots, lots past their last ship date, critical lots and lots expiring soon.
  • Batch Status: lots in quarantine, restricted, rejected, and lots due for a retest.
  • Waiting for You: unacknowledged alerts and open markdown suggestions.

Choose a cue to open the list behind it.

Set up the app

Do these steps once, signed in with the Shelf Life Administrator role.

  1. Assign permission sets. On the Role Center, choose Users and give each person the permission set for their role.
  2. Open Shelf Life Setup and switch on Enable Shelf Life Logic. Nothing in the app runs until this is on.
  3. Check your item tracking codes. Each shelf life item needs a tracking code with lot tracking and expiration dates.
  4. Switch items on. On the item card, in the Shelf Life Configuration group, switch on Enable Shelf Life Tracking and enter the Default Shelf Life (Days).
  5. Schedule the daily refresh. In Shelf Life Setup choose Schedule Daily Refresh. Without it, expiry statuses only change when stock is posted.
  6. Run the diagnostics. Choose Run Setup Diagnostics. It lists setup mistakes, such as an item with no tracking code or no shelf life, with the action to fix each one.

To try the app with sample data in a sandbox, choose Create Demo Data in Shelf Life Setup. It is not available in production environments.

Shelf Life Setup fields

General

FieldWhat it does
Enable Shelf Life LogicThe master switch for the app.
Auto-Reserve by FEFOReserves the earliest-expiring acceptable lots automatically on sales orders.
Block Expired ItemsStops expired stock from being shipped.
Check FEFO on PicksChecks warehouse and inventory picks when they are registered or posted. Off by default.
Pick FEFO EnforcementWhether a pick that is out of expiry order only warns or is stopped.
Batch Status on ReceiptThe status a newly received lot gets. Choose Quarantine if stock must pass quality control first.
Auto-Reject Expired LotsLets the daily refresh set expired lots to Rejected. Off by default.
Calculate Expiry on OutputGives a new lot from production or assembly an expiration date when none was entered: the posting date plus the item’s shelf life. Off by default.
Cap Expiry at Earliest IngredientBrings the expiration date of a new lot from production or assembly forward to the earliest expiration date among the ingredient lots already consumed for the order. Off by default.
Last Daily RefreshWhen the daily refresh last completed. More than 36 hours ago means statuses and alerts may be out of date.

Shelf Life Parameters

FieldWhat it does
Min. Shelf Life on Receipt %The remaining shelf life a lot must have when it is received.
Block Receipt Below Min. Shelf LifeStops the purchase posting when a lot is below the minimum. When off, a warning is shown instead.
Min. Shelf Life on Sale %The remaining shelf life a lot must have to be sold.
Min. Days Before Expiry on SaleThe number of days a lot must have left to be sold. Use it when stock must leave the depot a fixed number of days before the printed date. It applies together with the percentage; the stricter one wins.
Min. Shelf Life on Consumption %The remaining shelf life a lot must have to be consumed in production or assembly. Zero allows use up to the expiration date.
Min. Shelf Life on Transfer %The remaining shelf life a lot must have to ship on a transfer order. Zero means no minimum.
Demand Averaging DaysHow many past days of sales and consumption are used to estimate daily demand.

Alerts, planning and markdowns

FieldWhat it does
Alert Days Before ExpiryWhen a lot enters the warning window.
Critical Days Before ExpiryWhen a lot enters the critical window.
Planning Horizon (Days)How far ahead the replenishment suggestion looks for stock that will expire unused.
Expiry-Aware PlanningMakes standard planning ignore stock that will expire before demand can use it, and rejected stock. Off by default; test it in a sandbox first.
Exclude Quarantine from PlanningWhen on, quarantined stock is not counted as supply until it is released.
Enable Markdown SuggestionsGenerates suggested discounts for lots near expiry.
Warning Markdown % / Critical Markdown %The suggested discount in each window.

Item shelf life settings

Item Shelf Life Setup holds settings for one item that override the system-wide values: its default shelf life, its own minimum percentages on receipt, sale, consumption and transfer, its own minimum days before expiry on sale, and its own alert days. Leave a value at zero to use the system-wide one.

Three switches apply per item:

  • Require Expiry Date: a lot cannot be received without an expiration date.
  • Require Lot/Serial No.: stock cannot be received without tracking.
  • Quarantine on Receipt: new lots of this item start in quarantine.

Shelf life rules

Use Shelf Life Rules when a customer needs more remaining shelf life than your general minimum, when you require a minimum from a vendor, or when the ingredients of a product you make need a minimum of their own.

  1. Choose Shelf Life Rules and add a line.
  2. Set Rule Type to Customer or Vendor and enter the Partner No. For a customer, a Ship-to Code limits the rule to one delivery address.
  3. Set Item Scope to All Items, Item Category or Item.
  4. Enter Min. Remaining Shelf Life Days or Min. Remaining Shelf Life %.
  5. Set Enforcement to Warn or Block.
  6. Optionally enter a Starting Date and Ending Date.

Switch on Measure at Delivery when the minimum must still be met on the day the goods arrive, so transit time is taken into account. When more than one rule applies, the most specific one wins: a rule for the item overrides a rule for all items.

Production rules for the products you make

Use a Production rule when the ingredients of a product must have a minimum remaining shelf life at the moment they are consumed. For example, a premix going into a two-year supplement needs more life left than the same premix going into a 30-day drink.

  1. Add a line and set Rule Type to Production. Leave Partner No. blank; a production rule has no partner.
  2. Set Item Scope to the product the rule is for: one Item, an Item Category (for example all dietary supplements), or All Items.
  3. Enter Min. Remaining Shelf Life Days or Min. Remaining Shelf Life %. The minimum is measured on each ingredient lot, on the date it is consumed. A percentage is taken of that ingredient lot’s own total life.
  4. Set Enforcement to Warn or Block.

What the rule does:

  • Reserve Components by FEFO on production and assembly orders leaves out ingredient lots that fail the rule, whether it is set to Warn or Block, and takes the next lot that passes.
  • With Block, posting the consumption of a failing lot for that product is refused, with a message naming the lot and the product. With Check FEFO on Picks switched on, a warehouse pick of such a lot for that product is stopped as well.
  • With Warn, posting is allowed, so a supervisor can still decide to use the lot.

The item’s own Min. Shelf Life on Consumption % still applies as well. A lot must pass both.

Expiration dates of the products you make

Two switches in Shelf Life Setup deal with the lots that come out of production and assembly.

  • Calculate Expiry on Output: if the operator does not enter an expiration date for a new lot, the app sets it to the posting date plus the item’s shelf life in days.
  • Cap Expiry at Earliest Ingredient: a product cannot outlive its shortest-dated ingredient. The new lot’s expiration date is brought forward to the earliest expiration date among the ingredient lots already consumed for that order.

What to know:

  • Both apply to new lots only. Output posted to a lot that already exists keeps that lot’s date.
  • The cap looks at ingredients consumed before the output is posted. With backward flushing the ingredients are consumed afterwards and cannot be taken into account, so post consumption first if you rely on the cap.
  • If the item tracking code makes the expiration date mandatory, Business Central asks for the date before the app can calculate it.

Day-to-day work

See what is about to expire

Item Expiry Tracking lists every lot in stock with its expiration date, last ship date, days until expiry, remaining shelf life, quantity, reserved quantity and batch status. The expiry status is Normal, Warning, Critical or Expired. Statuses are updated when stock is posted and by the daily refresh.

The last ship date

A lot has two dates that matter. The Expiration Date is the one printed on the product. The Last Ship Date is the last day the depot can still send the lot to a customer: the expiration date less the minimum remaining shelf life on sale for the item, in days or as a percentage, whichever asks for more.

You never type the last ship date; the app calculates it, so it cannot disagree with the printed date. A lot past its last ship date has not expired but can no longer be sold. It is counted in the Past Ship Date cue on the Role Center and raises an alert of its own.

A customer rule can ask for more than the item’s general minimum. For that customer the lot must leave even earlier, and the sales check applies the customer’s rule.

Reserve by expiry date

  • Sales orders: with Auto-Reserve by FEFO on, lines are reserved from the earliest-expiring lots the customer will accept.
  • Released production orders and assembly orders: choose Reserve Components by FEFO.
  • Transfer orders: choose Reserve Lines by FEFO.

A lot is skipped if it is expired, not released for that use, or below the minimum remaining shelf life. Existing reservations are kept.

Alerts

Expiry Alerts lists lots that entered the warning or critical window, expired lots, lots past their last ship date, and reservations that do not follow first-expired-first-out. Choose Acknowledge when you have dealt with one. A lot gets one alert per stage, not one per day.

Markdown suggestions

Markdown Suggestions lists suggested discounts for lots near expiry. Choose Approve or Reject for each. The app suggests; it does not change prices.

Plan replacements for expiring stock

On the requisition worksheet, choose Suggest Shelf-Life Replenishment. It adds purchase suggestions for stock that is projected to expire before it can be used within the planning horizon, with an explanation of the numbers on each line.

With Expiry-Aware Planning on, standard planning (Calculate Plan) also leaves unusable stock out of supply, so replacements come through your normal reordering policy.

Quality control: batch status

Every lot has a batch status.

StatusCan be soldCan be consumedCounted by planning
ReleasedYesYesYes
RestrictedNoYesFor consumption only
QuarantineNoNoDepends on Exclude Quarantine from Planning
RejectedNoNoNo

To change a status:

  1. Open Item Expiry Tracking and select the lot.
  2. Choose Change Batch Status.
  3. Choose the New Status and enter a Reason. A reason is required.

Every change is written to Batch Status Entries with the user, date, old and new status and reason. These entries cannot be changed or deleted. Only the Shelf Life Quality Control and Shelf Life Administrator permission sets can change a status.

A lot that passes its Retest Date is moved to Quarantine by the daily refresh, and is treated as held from that date even if the refresh has not run yet.

Held stock can always be moved or written off: item reclassification journals and negative adjustments are never blocked by batch status.

Reports

ReportWhat it shows
Expiry Status ReportLots in stock by expiry status.
FEFO Compliance ReportHow consistently stock was shipped first-expired-first-out.
Waste Analysis ReportStock that expired before it could be used.
Expiry Write-OffStock written off because it expired or was rejected.

The daily refresh

The daily refresh updates expiry statuses and reserved quantities for today, moves lots past their retest date to Quarantine, rejects expired lots if Auto-Reject Expired Lots is on, and generates alerts and markdown suggestions.

Schedule it once with Schedule Daily Refresh in Shelf Life Setup. To run it by hand, choose Run Daily Refresh Now. Check Job Queue Entries if Last Daily Refresh is more than 36 hours old.

Troubleshooting

A lot is not being reserved or picked. Open it in Item Expiry Tracking. Check its batch status, its expiration date and its remaining shelf life against the minimum for the item and any rule for the customer.

Expiry statuses look out of date. Check Last Daily Refresh in Shelf Life Setup. If the refresh is not scheduled, choose Schedule Daily Refresh.

Quantities in Item Expiry Tracking do not match the item ledger. Choose Rebuild Expiry Tracking in Shelf Life Setup. It recalculates every entry from the item ledger and keeps batch status, manufacturing dates, retest dates and shelf life days.

A receipt is refused for a missing expiration date. The item has Require Expiry Date switched on in Item Shelf Life Setup. Enter the expiration date on the item tracking lines.

A user cannot change a batch status. They need the Shelf Life Quality Control or Shelf Life Administrator permission set.

Something is not working and you are not sure why. Choose Run Setup Diagnostics in Shelf Life Setup first.

Support

Contact GMSOFT through the contact page at gmsoftdynamics.com. Include your Business Central version, the app version shown in Extension Management, and the steps that lead to the problem.

Scroll to Top