Stock sometimes leaves the system not through consumption but through return or disposal. Damaged on receipt, recalled by vendor, expired in the dispensary, returned by a patient who never opened the pack, controlled drugs reaching end-of-life. Each path has its own workflow, audit, and accounting impact. This article walks the return and disposal surface end to end.
Where it lives#
- Inventory → Returns → + New: a vendor return (RTV) or a patient return. Pick the return type on the form.
- Inventory → Returns → [open existing]: continue inspection or finalisation.
Disposal is not a return type or a standalone screen. A disposal record is created when a return line is scrapped or when you confirm Dispose expired stock from an expiry alert. It carries the regulated-waste fields.
Two kinds of return#
Return to vendor (RTV)#
- Stock goes back to the vendor.
- Reasons: damaged at receipt, vendor recall, expired-on-arrival, wrong item.
- Vendor issues credit-note or replacement.
- AP adjusts.
Patient return#
- Patient brings back unopened material dispensed at a previous visit.
- Reasons: prescription discontinued, allergy reaction, patient cancelled treatment plan.
- Stock re-credits at original cost.
- Cost snapshot on the linked invoice adjusts.
- Refund may follow per refund workflow.
Disposal (not a return type)#
- Stock destroyed at the clinic: expired, damaged, contaminated, recalled.
- A disposal record is created when a return line's disposition is Scrap, not by picking a separate "internal disposal" return type.
- It carries the regulated-waste fields and posts the write-off journal.
RTV flow (vendor return)#
States#
| State | Meaning |
|---|---|
| Draft | Created, items being captured. |
| Pending inspection | Saved, awaiting line-by-line inspection. |
| Inspected | Every line has an inspection result (restock / scrap / return-to-vendor / rework). |
| Approved | Inspection signed off, ready to process. |
| Completed | Stock re-credited or scrapped per disposition. Vendor credit-note tracked externally. |
| Rejected | Return refused (out of policy, wrong vendor, etc.). |
| Cancelled | Return abandoned. |
There is no separate "Dispatched" state for RTV. Vendor shipment is recorded as a note on the return, not as a status transition. The vendor credit-note flows through AP separately.
In practice a return is created at Pending inspection and completes Inspected → Completed. The Draft, Approved, and Rejected states exist in the model but the current workflow doesn't move through them. RTV and patient returns share the same status machine; the return_type field decides which path the workflow follows.
Inspection result, what happens per line#
Each return line carries an inspection result that decides downstream behaviour:
- Restock: stock is re-credited at the original unit cost and a restock journal posts.
- Scrap: a Disposal record is created automatically (reason: damaged) for the scrapped qty, and the write-off journal posts.
- Return to vendor and Rework: selectable today, but they carry no system side effect yet (no stock move, no flag, no hold). Use Restock or Scrap for an outcome that actually posts, and handle the vendor return as a manual follow-up.
The flow#
- Inventory → Returns → + New return → Return to vendor.
- Pick the GRN or PO this return references (where applicable).
- Add items: product, quantity, batch, reason.
- Inspect: confirm items match reason, package, label.
- Process the return: restock or scrap each line per its disposition. There is no consumption-blocking quarantine status, so move return-to-vendor stock physically out of the dispensing location until it ships.
- Ship to the vendor (record the transporter and tracking reference as a note).
- Vendor issues a credit note (reconcile against AP) or sends a replacement (new GRN).
RTV accounting#
| Account | Debit | Credit | Why |
|---|---|---|---|
| Accounts Payable (vendor) | X | Vendor owes us | |
| Inventory Asset | X | Stock leaving |
If a credit note is received in lieu of replacement, AP clears. If a replacement is received, a new GRN posts and AP and Inventory both move.
Patient return flow#
States#
| State | Meaning |
|---|---|
| Draft | Patient brought items, capturing now. |
| Inspected | Items checked for resaleable condition. |
| Completed | Stock re-credited, refund processed if applicable. |
| Rejected | Items not in resaleable condition, refund denied or partial. |
The flow#
- Inventory → Returns → + New return → Patient return.
- Pick the patient and the linked invoice or session.
- Add items returned with quantity per batch.
- Inspect: sealed pack, within expiry, not opened.
- For each item, decide: Accept (re-stock) or Reject (cannot re-stock, becomes internal disposal).
- For accepted: stock re-credits at original cost on Completed return when inspection result is RESTOCK.
- For rejected: write-off posts, no refund or partial refund per policy.
- Complete the return.
Stock re-credits automatically on Completed return when inspection result is RESTOCK. The refund itself does not open automatically. It is a manual hand-off to the invoice / refund workflow. Open the linked invoice and process the refund there.
Patient return accounting#
| Account | Debit | Credit | Why |
|---|---|---|---|
| Inventory Asset | X | Stock restored | |
| COGS | X | Original COGS reversed |
If a refund follows (revenue reversal), additional postings fire per the refund workflow.
Disposal flow#
When to dispose#
- Stock expired in the dispensary.
- Stock damaged in storage.
- Stock recalled by vendor and not eligible for RTV.
- Stock contaminated (sterility broken).
- Single-use items opened but not used (sterile pack opened).
- Controlled substances at end-of-life requiring regulator-witnessed disposal.
The flow#
- Open Inventory → Returns → + New, capture the lines, and set each to the Scrap disposition.
- Process the return. A Disposal record is created for the scrapped lines and the write-off journal posts on creation.
- For controlled substances, the disposer and the witness must be different users (enforced when the warehouse is marked controlled).
- Capture the DOH waste fields on the disposal record (category, method, contractor, certificate reference, weight) where regulated.
- Arrange the licensed waste-vendor pickup and file the certificate.
Disposal accounting#
| Account | Debit | Credit | Why |
|---|---|---|---|
| Inventory Write-off Expense | X | Cost of disposed stock | |
| Inventory Asset | X | Stock removed |
The disposal reason is one of Expired, Damaged, Recalled, Contaminated, or Quality failure. Owner can read the cause distribution from the P&L.
Controlled substance disposal#
- The disposal record captures a witnessed_by user. The warehouse policy enforces dual-signoff when
is_controlled_substance=True. The disposer and the witness must be different users. - DOH waste fields (category, disposal method, contractor, certificate reference, weight) are stored on the disposal record and surface in the regulator report.
- Tatmeen DESTRUCTION event reporting is wired in the typed event schema but not emitted from the disposal service today. Manual sync to Tatmeen is the workaround for UAE tenants.
Hazardous waste category#
- Sharps: single-use needles, blades.
- Pharmaceuticals: expired drugs.
- Biohazard: contaminated dressings, samples.
- Cytotoxic: chemotherapy waste.
- Each category has its own vendor pickup and disposal protocol.
- Compliance reports per category for regulator inspection.
Permissions matrix#
| Action | Reception | Stock manager | Branch manager | Owner |
|---|---|---|---|---|
| Open RTV draft | No | Yes | Yes | Yes |
| Open patient return | Yes | Yes | Yes | Yes |
| Inspect and decide accept/reject | No | Yes | Yes | Yes |
| Dispatch RTV | No | Yes | Yes | Yes |
| Initiate disposal | No | Yes | Yes | Yes |
| Controlled substance disposal | No | No | Yes with witness | Yes |
| Capture disposal certificate | No | Yes | Yes | Yes |
Reports tied to returns and disposal#
- RTV volume: count and value per vendor.
- RTV reason distribution: vendor quality signal.
- Patient return rate: percentage of dispensed items returned.
- Disposal value by reason: expired vs damaged vs recall.
- Controlled substance disposal log: regulator-required.
- Hazardous waste pickup cadence: compliance evidence.
- Disposal certificate audit: attached PDFs queryable.
Coming soon#
- Vendor portal RTV submission: vendor receives the RTV directly via portal.
- Auto-scheduled hazardous waste pickup: based on accumulated quantity threshold.
- Disposal certificate OCR auto-attach: photo the certificate, system extracts and files.
- Recall-to-disposal automated pipeline: recalled lot auto-flows to disposal once vendor refund processed.
- Patient return prediction: ML on patient behaviour flags likely returns for prep.
- Regulator-witnessed disposal video record: tablet camera captures the witness moment for audit.
Common mistakes#
- Leaving return-to-vendor stock on the shelf: there's no consumption-blocking quarantine state, so move it physically out of the dispensing location until it ships.
- Patient return re-stocked when opened: clinical contamination risk.
- Hazardous waste in regular trash: regulator violation.
- Controlled substance disposal without witness: regulator audit gap.
- No disposal certificate captured: cannot prove compliance.
- RTV without reason: vendor quality reports blind.
- Patient refund processed before stock-return inspection: refund issued for unreturnable stock.
How returns and disposal connect#
- GRN: RTV references the original receipt.
- Vendor master: AP and credit-note flow.
- Inventory stock: re-credit on restock, removal on scrap.
- Accounting AP and write-off: postings.
- Refunds: patient return triggers refund workflow.
- Expiry tracking: drives disposal flow.
- Recall: quarantined stock flows to disposal or vendor return.
- Tatmeen (UAE): a DESTRUCTION event is on the roadmap; manual today.
- Hazardous waste vendor: integration for pickup and certificate.
- Audit log: every return and disposal captured.
