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
- URL:
- Create Snapshot:
Stock Takebutton →Pharmacy Stock Takepage- URL:
/pharmacy/pharmacy_stock_take.xhtml
- URL:
- List Snapshots and Actions (View, Upload, View Variance):
Stock Take Billsbutton- URL:
/pharmacy/pharmacy_stock_take_list.xhtml
- URL:
- Upload Adjustments for a Snapshot:
- URL:
/pharmacy/pharmacy_stock_take_upload.xhtml
- URL:
- Variance Report for a Snapshot:
- URL:
/pharmacy/pharmacy_stock_take_variance.xhtml
- URL:
Step 1 — Create a Snapshot
- Open
Pharmacy Stock Take. - Select the
InstitutionandDepartment. - Generate snapshot preview and review listed items and quantities.
- Click
Settleto save the snapshot bill. - Use
Printif 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
- Conduct your physical count in the store/ward.
- Open the downloaded Excel sheet.
- Enter the counted amount in the
Real Stock Qtycolumn. - Leave the
Real Stock Qtycell blank for items you did not count. Blank means “skip”. - Save your Excel file.
Important behavior:
- Blank
Real Stock Qtyis 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)
- Open
Stock Take Billsand locate your snapshot. - Click
Upload Adjustmentsfor that snapshot. - Use the page’s buttons to re-download the Guided or Blind sheet if needed.
- Select your completed Excel file and click
Parse Uploaded Sheet. - Review the preview of parsed items:
- System Qty (from snapshot)
- Real Qty (from Excel)
- Variance (Real − System)
Notes:
- The system identifies items by
BillItem IDfirst. 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)
- Go to
Stock Take Bills. - Click
View Variancefor your snapshot. - 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)
- Use the
Printbutton to print, orDownloadto 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 IDcolumn in Excel to ensure exact matching between the snapshot and your counts. - Keep
Real Stock Qtyblank 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 Variancereport 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 Billsand use the action buttons on the correct row.
- Navigate from
- Upload shows fewer rows than expected:
- Ensure
Real Stock Qtyis filled for items you want processed. - Ensure the Excel headers remain intact; do not delete or rename
BillItem ID,Code,Batch, orReal Stock Qtycolumns.
- Ensure
- Items not matching:
- Verify
BillItem IDin Excel matches the Snapshot’s item IDs for the selected snapshot. - If relying on Code + Batch, confirm those values exactly match the snapshot.
- Verify
- 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 viareferenceBill. - 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 ***