Pharmacy Stock Take Workflow - hmislk/hmis GitHub Wiki

Pharmacy Stock Take Workflow (End-User Guide)

This guide explains how to perform a pharmacy stock take using snapshot bills, Excel export/import, multiple uploads, and how to view the aggregated variance report. It is written for end users (pharmacy staff, supervisors) and assumes you can access the pharmacy module in the application.


Overview

  • Take a point-in-time snapshot of current stock (by department).
  • Export a guided or blind Excel sheet to conduct the physical count.
  • Enter real stock quantities in Excel and upload them to prepare a physical count bill.
  • You can upload multiple times for the same snapshot; nothing is saved until you click Save.
  • Approve the physical count when ready to post adjustments to stock.
  • Use the View Variance report to see the initial stock, aggregated variances across all uploads, and the last physical count per item.

Prerequisites

  • You have permissions to access Pharmacy Stock Take pages.
  • You know the Institution and Department for which you are counting stock.

Navigation

  • Stock Take Home: Pharmacy → Adjustments → Stock Take
    • URL: /pharmacy/adjustments/pharmacy_adjustment_index.xhtml
  • Create Snapshot: Stock Take button → Pharmacy Stock Take page
    • URL: /pharmacy/pharmacy_stock_take.xhtml
  • List Snapshots and Actions (View, Upload, View Variance): Stock Take Bills button
    • URL: /pharmacy/pharmacy_stock_take_list.xhtml
  • Upload Adjustments for a Snapshot:
    • URL: /pharmacy/pharmacy_stock_take_upload.xhtml
  • Variance Report for a Snapshot:
    • URL: /pharmacy/pharmacy_stock_take_variance.xhtml

Step 1 — Create a Snapshot

  1. Open Pharmacy Stock Take.
  2. Select the Institution and Department.
  3. Generate snapshot preview and review listed items and quantities.
  4. Click Settle to save the snapshot bill.
  5. Use Print if you need a hard copy reference.

The snapshot bill represents the system’s stock at that point in time. Each item in the snapshot has a unique BillItem ID.


Step 2 — Download Excel

From either the Snapshot print page or the Upload page:

  • Download Guided Sheet: includes system quantities to help counting.
  • Download Blind Sheet: hides system quantities for unbiased counting.

Excel columns include identifying fields such as Item Code, Batch, and the unique BillItem ID. Use that BillItem ID whenever possible.


Step 3 — Perform the Physical Count

  1. Conduct your physical count in the store/ward.
  2. Open the downloaded Excel sheet.
  3. Enter the counted amount in the Real Stock Qty column.
  4. Leave the Real Stock Qty cell blank for items you did not count. Blank means “skip”.
  5. Save your Excel file.

Important behavior:

  • Blank Real Stock Qty is treated as SKIP (not zero). The item is ignored during upload.
  • You can submit partial counts and come back later with more uploads.

Step 4 — Upload the Excel (Prepare Physical Count)

  1. Open Stock Take Bills and locate your snapshot.
  2. Click Upload Adjustments for that snapshot.
  3. Use the page’s buttons to re-download the Guided or Blind sheet if needed.
  4. Select your completed Excel file and click Parse Uploaded Sheet.
  5. Review the preview of parsed items:
    • System Qty (from snapshot)
    • Real Qty (from Excel)
    • Variance (Real − System)

Notes:

  • The system identifies items by BillItem ID first. If missing, it falls back to Item Code + Batch.
  • Uploading multiple times is allowed. Uploads do not save anything automatically.

Step 5 — Save the Physical Count (When Ready)

  • On the preview, click Save Physical Count.
  • This saves a Physical Count bill that references the Snapshot bill.
  • You may repeat upload and save again (multiple physical counts can reference the same snapshot) if you refine counts over time.

Nothing affects stock quantities yet. This step only persists the physical count record(s) linked to the snapshot.


Step 6 — View the Variance Report (Read-only)

  1. Go to Stock Take Bills.
  2. Click View Variance for your snapshot.
  3. The report shows one row per snapshot item:
    • BillItem ID
    • Code, Item, Batch
    • Initial Stock (from snapshot)
    • Sum of Variances (across all saved physical counts for the snapshot)
    • Last Physical Count (from the most recent physical count)
  4. Use the Print button to print, or Download to export to Excel.

This page is a read-only report. No editing occurs here.


Step 7 — Approve to Post Stock Adjustments

  • When satisfied with the counts and variances, approve the physical count (from the physical count context).
  • Approval creates a Stock Adjustment bill and posts non-zero variances to stock.
  • Approval requires appropriate privileges.

Tips and Best Practices

  • Prefer using the BillItem ID column in Excel to ensure exact matching between the snapshot and your counts.
  • Keep Real Stock Qty blank for items you didn’t count yet; later uploads can complete the picture.
  • Save Physical Count only when you want to preserve your current progress. Approval can be done after final review.
  • Use the View Variance report to spot check:
    • Large positive/negative variances
    • Whether all critical items have a recent physical count

Troubleshooting

  • “No snapshot selected” warnings:
    • Navigate from Stock Take Bills and use the action buttons on the correct row.
  • Upload shows fewer rows than expected:
    • Ensure Real Stock Qty is filled for items you want processed.
    • Ensure the Excel headers remain intact; do not delete or rename BillItem ID, Code, Batch, or Real Stock Qty columns.
  • Items not matching:
    • Verify BillItem ID in Excel matches the Snapshot’s item IDs for the selected snapshot.
    • If relying on Code + Batch, confirm those values exactly match the snapshot.
  • Variance seems duplicated:
    • Remember the Variance Report aggregates all saved physical counts referencing the snapshot.

Data Flow Notes (For Awareness)

  • Snapshot Bill: captures items and quantities at a point in time.
  • Physical Count Bill(s): created only when you click Save Physical Count; link back to snapshot via referenceBill.
  • Multiple Physical Counts: allowed per snapshot (there is no forward link from snapshot to a single physical count).
  • Approval: creates a Stock Adjustment bill and updates stock based on non-zero variances.

If you have further questions or need assistance, contact your system administrator or pharmacy IT support.

*** End of Document ***