Account for QC samples and retained material in inventory
For QC lead and inventory accountant · Compare approaches
TL;DR — what you’ll learn
- Record sample withdrawals as traceable movements from a parent lot and container, with a clear purpose and destination.
- Reconcile testing consumption, retained material and production stock without double counting the same quantity.
- Follow a 50 kg container through two withdrawals and distinguish remaining production stock from material still held elsewhere.
- Connect laboratory and warehouse records while preserving the approved rules for sampling, retention, return and disposal.
The warehouse repeatedly finds small shortages in opened containers. Quality control (QC) has complete sample records, but the inventory system still shows the original quantities. Neither team's record is obviously wrong within its own process; the missing link is the physical withdrawal that should connect them.
A sampling inventory workflow should explain where the quantity went and why. It should connect the source container to a sample identity, its intended purpose and its later handling. That connection reduces unexplained differences without pretending that every laboratory sample remains eligible production stock.
The sampling plan and required quantities are scientific and procedural decisions. The examples here concern record design and arithmetic, not instructions for choosing representative samples or retention quantities.
Separate the purposes before designing one sample table
Testing samples, reserve or retention samples, stability-study samples and investigation samples can have different uses and lifecycles. Their records may share identifiers, but the system should preserve the reason each quantity was withdrawn.
For API operations, ICH Q7 distinguishes reserve samples from material held for stability testing. ICH Q7, section 11.7. Apply the relevant product, jurisdiction and approved procedure when establishing actual retention or study requirements.
In the proposed design, a withdrawal purpose controls the destination workflow and the expected closure evidence. A testing sample may be consumed during analysis. A retained sample remains in controlled storage until its authorised next action. A stability sample belongs to a study schedule and specified conditions.
Do not derive a return-to-production rule from the fact that a sample remains physically present. Eligibility for any later use requires the approved process and relevant decision. The quantity record and the quality assessment should remain distinct.
Connect the withdrawal to its physical source
Record the parent material, batch and source container. If a sample combines material from several containers under an approved plan, retain those source relationships rather than creating one unexplained parent identifier.
Capture withdrawn quantity and unit, destination sample or container, purpose, responsible person and event time. Where weighing is involved, connect the appropriate measurement record and its context. A typed number without a source can be difficult to reconcile later.
Scroll horizontally to see all columns.
| Record relationship | Question it should answer |
|---|---|
| Source container to withdrawal | Which physical balance changed? |
| Withdrawal to sample ID | What represents the removed material? |
| Sample to request or study | Why was it taken? |
| Sample to subsequent movement | Was it consumed, retained, transferred or otherwise handled? |
| Correction to original event | What changed and why? |
Agree the inventory boundary. Some organisations track laboratory stock in the same inventory platform; others maintain an authoritative laboratory ledger connected to an enterprise resource planning (ERP) system. Either can work if the reports explain which balances they include and how transfers reconcile.
Reconcile the 50 kg example
Consider an illustrative container initially holding 50 kg. Under the approved process, 0.2 kg is withdrawn for testing and 0.3 kg for retained material. These quantities are teaching assumptions, not recommended sampling amounts.
The production-stock container now holds 49.5 kg: 50 minus 0.2 minus 0.3. Immediately after withdrawal, before testing consumption or other handling, 0.5 kg also exists in sample custody.
Scroll horizontally to see all columns.
| Location or purpose immediately after withdrawal | Quantity |
|---|---|
| Original production-stock container | 49.5 kg |
| Testing sample | 0.2 kg |
| Retained sample | 0.3 kg |
| Total material accounted for | 50.0 kg |
The total accounted quantity is not the same as quantity available for production. The samples have moved to their own authorised purpose and status. A report that adds the sample balances back into production availability recreates the original problem in a different form.
If the testing activity later consumes the full 0.2 kg, the ledger records that consumption. Material physically remaining across these locations becomes 49.8 kg, with 0.2 kg explained by consumption. The retained 0.3 kg remains separately visible. If only part is consumed, record the actual outcome and subsequent authorised handling of the remainder.
Decide when the warehouse balance changes
The withdrawal event should correspond to the physical action under the approved workflow. A planned sample request does not prove that material has left the container. Conversely, waiting until the final laboratory report is issued can leave the warehouse balance wrong for days.
Use distinct planned, withdrawn and received-in-laboratory events where those handovers exist. Confirm how differences are handled if the laboratory receives less than the recorded withdrawal or identifies a damaged container. The receiving discrepancy should remain linked to the original movement.
If the same sample information is entered in two systems, establish which event owns the quantity change. A warehouse posting and a laboratory import must not both decrement stock for the same withdrawal. Preserve one movement identity through interface retries.
The LIMS sample workflow guide develops the laboratory queue. Inventory reconciliation needs its movement events, not a second copy of every analytical task.
Treat unused samples deliberately
After testing, the sample may have a remaining quantity. Record its actual state and the authorised handling decision. Do not assume unused means unchanged: preparation, storage, exposure or custody may affect whether any return is permitted.
Where return is permitted by the approved process, connect the return to the original withdrawal, the quantity and the relevant acceptance decision. The system should not restore the full withdrawn quantity when only a smaller amount returns.
Where disposal is authorised, retain the required record and quantity reconciliation. A deleted sample record is not evidence of disposal. Likewise, moving a retained sample to another storage location should preserve its identity and purpose rather than closing it as consumed.
The stability sample inventory guide covers scheduled pulls and study balances. Avoid applying a generic testing-sample closure rule to a study population with different obligations.
Investigate differences without manufacturing precision
Small quantities can expose inconsistent units and rounding. A withdrawal entered as grams in one system and kilograms in another needs a controlled conversion and clear display. Preserve the original measurement and unit alongside the normalised value.
Agree how the procedure handles measurement resolution and legitimate differences. Do not invent a numerical tolerance in software simply to eliminate exceptions. The relevant specialists should establish the appropriate rule and its basis.
A recurring difference can also reflect timing: samples may have been physically taken but not posted before a count. Reconstruct the event sequence before making another adjustment. The cycle-counting guide explains how to handle this cutoff problem.
Investigate repeated manual corrections by source. If every retained-sample withdrawal requires a later adjustment, the process probably lacks a reliable movement event. Increasing the adjustment approval threshold will not solve that gap.
Prove the joins with a small pilot
Choose one material family and reconcile several complete sample histories. Include a fully consumed sample, a partial consumption, a retained sample transfer and an interface retry. Start with the source container and account for each subsequent quantity exactly once.
Confirm that a planned request does not prematurely reduce stock, an actual withdrawal does reduce the appropriate balance, and a duplicate message creates no second movement. Verify that a sample remains traceable after its analytical request closes.
Measure unexplained sample-related differences, unlinked withdrawals and overdue closure tasks using clearly defined populations. Avoid claiming that every discrepancy represents physical loss; some will be missing links or timing errors. The workflow should make those categories visible.
NextEdge Labs can help connect the warehouse and laboratory records around these movements. A bounded pilot should demonstrate the quantity trail and its review responsibilities before broader automation.
Summary and next actions
Sampling changes where material is held and what it is intended for. Record that change explicitly so production availability, laboratory custody and consumption reconcile without treating them as the same balance.
- Map sample purposes and identify the authorised destination and closure process for each.
- Reconstruct one container's withdrawals, sample balances and consumption using consistent units.
- Agree which system posts each physical movement and how duplicate messages are recognised.
- Test partial consumption, retained-sample transfer and permitted return or disposal through to reconciliation.
Compare this workflow with your current setup
Share the step that takes the most manual work, the systems involved and the exceptions your team handles. That gives us a concrete starting point for comparing approaches.
About this guide
NextEdge Labs develops software, integrations and AI-assisted workflows. This guide presents practical workflow analysis with linked source references. Worked examples are illustrative, not client results.
Apply the sources within their stated market and scope, together with your approved procedures and the decisions of the responsible specialists.
Browse all Pharma & life sciences guides or explore our engineering capabilities.