1. Sign in
- Open /pmc and sign in with the email and password provided by your administrator.
- Your account must be on the PMC allowlist (
pmc_users in the database).
- After login, the app loads your procurement items, products, and batches for fast editing.
2. Sidebar modules
- Dashboard — Counts and recent batches / products.
- Procurement — Services and raw materials (codes, prices, vendors).
- Products — Finished products and their BOM (bill of materials).
- Batches — Production runs with batch-specific BOM and frozen prices.
- Compare — Side-by-side comparison of two batches for one product.
3. Recommended setup order
- Procurement — Add every service and material you buy (Code, Name, Price, Type). Vendor and Description are optional.
- Products — Add each product (Code, Name) and select procurement lines with quantities. The product unit price is the sum of (qty × current procurement rate) for all BOM lines.
- Batches — For each production run, pick a product and batch size. The app copies the product BOM; adjust lines if needed, then save. Batch prices are frozen at save time.
- Compare — When you need to see cost drift between runs, select the product and two batches.
4. Dashboard
Shows how many procurement items, products, and batches you have, plus shortcuts to recent activity. Use it for a quick overview before updating prices or creating batches.
5. Procurement
Listing
- Columns: Code, Name, Price, Type (Service or Material), Vendor, and actions.
- Double-click the Price cell to edit the rate inline (press Enter to save, Escape to cancel).
- Use Edit or Delete on each row for full changes or removal.
Add item
- Click Add (top right). Required: Code, Name, Price, Type. Optional: Vendor, Description.
- Changing procurement prices updates the product template unit price when you save a product BOM — it does not change prices on batches already saved.
6. Products
Listing
- Columns: Code (link), Product name, Unit price, number of raw materials, Edit / Delete.
- Click the product code to open the detail view.
Add product
- Click Add. Enter Code and Name, then add BOM lines by choosing procurement items and quantities.
- Unit price on the list is the sum of (quantity × current procurement price) for all BOM lines.
Product detail (click code)
- BOM — View or edit recipe lines; save to recalculate template unit price.
- Unit price chart — Bar chart of template price vs each batch’s unit price.
- Recent batches — Links to batch records for this product.
7. Batches
Listing
- Columns: Batch ID (e.g. BATCH-001), Status, product name/code, Batch size, Unit price.
- Click a row to open the batch editor.
Add
- Click Add batch.
- Select the product and enter batch size.
- The system loads BOM lines from the product with current procurement prices snapshotted on each line.
- Edit quantities or unit prices for this batch only, then Create.
- Status can be Draft, Active, Completed, or Cancelled.
Batch detail
- Use Edit BOM to change lines, batch size, or status, then Save.
- Delete removes the entire batch.
8. Compare
- Select a product.
- Choose Batch A and Batch B from the dropdowns (same product).
- Review line-by-line quantities, rates, totals, and the difference column.
- Summary cards show each batch’s overall unit price.
9. Important rules
- Frozen batch pricing — Past batches keep the unit prices saved when the batch was created. Procurement price updates only affect new batches and product template pricing.
- Factory scope — Procurement, products, and batches belong to one factory. You only see and edit data for factories assigned to you in Inventory (same as Inward–Outward). Use the factory selector in the sidebar when you have more than one.
- Open User manual from the sidebar anytime to return to this guide.
10. Database setup (administrators)
After a schema reset, run pmc-schema.sql in Supabase, then add users to pmc_users so they can sign in. Re-register PMC users before expecting any historical data.