PMC Portal — User manual

Procurement, product BOMs, production batches, and batch comparison.

1. Sign in

  1. Open /pmc and sign in with the email and password provided by your administrator.
  2. Your account must be on the PMC allowlist (pmc_users in the database).
  3. After login, the app loads your procurement items, products, and batches for fast editing.

2. Sidebar modules

3. Recommended setup order

  1. Procurement — Add every service and material you buy (Code, Name, Price, Type). Vendor and Description are optional.
  2. 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.
  3. 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.
  4. 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

Add item

6. Products

Listing

Add product

Product detail (click code)

7. Batches

Listing

Add

  1. Click Add batch.
  2. Select the product and enter batch size.
  3. The system loads BOM lines from the product with current procurement prices snapshotted on each line.
  4. Edit quantities or unit prices for this batch only, then Create.
  5. Status can be Draft, Active, Completed, or Cancelled.

Batch detail

8. Compare

  1. Select a product.
  2. Choose Batch A and Batch B from the dropdowns (same product).
  3. Review line-by-line quantities, rates, totals, and the difference column.
  4. Summary cards show each batch’s overall unit price.

9. Important rules

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.