Setup Required

Supabase Key Missing

Your app file still has the placeholder anon key. Open index.html and replace:

PASTE_YOUR_SUPABASE_ANON_KEY_HERE

Use your Supabase anon public key. Do not use the service role key.

Pharmacy PMS Starter

Login

Use the admin user you created in Supabase Authentication.

This is your first Supabase-connected starter app. Use demo data only.

Pharmacy PMS

Loading...

Dashboard

Live on Cloudflare Pages, connected to Supabase.
0Products
0Suppliers
0Total Stock Qty
0Low Stock Items

System Status

This starter app is working if you can login and see database statistics.

Foundation ready: GitHub + Cloudflare Pages + Supabase.

Products / Medicines

Products from your Supabase database.

Name Generic Unit Reorder Level Current Stock Status

Add Product / Medicine

Quick Add Category / Manufacturer

Stock Movement

Use this to test stock in/out. Later purchase and sales modules will create these movements automatically.

Add Supplier

Supplier List

NamePhoneAddressStatus

Create Multi-item Purchase Order

v1.0 upgrade: add multiple products to a purchase cart, then save one purchase order with many items. If status is RECEIVED, stock increases for every item.

Add Purchase Item

Purchase Cart

ProductBatchQtyPurchase PriceSale PriceTotalAction
Cart total: 0.00
0Purchase Orders
0Total Purchase Value
0Total Paid
0Total Due

Purchase Order List

PO NumberDateSupplierStatusGrand TotalPaidDueNoteAction

Create Multi-item Sales / POS Invoice

v1.0 upgrade: add multiple products to a POS cart, then save one invoice with many sale items. Completed invoices automatically decrease stock and create cash collection.

Add POS Item

POS Cart

ProductBatchQtySale PriceTotalStock NowAction
Cart total: 0.00
0Sales Invoices
0Total Sales
0Sales Paid
0Sales Due

Sales List

InvoiceDateCustomerStatusTotalPaidDueMethodAction

Cash Management

Track manual cash in/out. Sales with paid amount automatically create SALE_COLLECTION transactions.

0Total Cash In
0Total Cash Out
0Cash Balance
0Transactions

Cash Transactions

DateTypeAmountReferenceNote

Expense Management

Create pharmacy expenses. Each expense automatically creates an EXPENSE cash transaction.

Quick Add Expense Category

0Expense Records
0Total Expenses
0Categories
0This Month

Expense List

DateCategoryCash AccountAmountNote

Customer Management

Customer List

NamePhoneEmailOpening BalanceStatus

Sales Return

Returns one item and automatically increases stock. If refund amount is entered, cash decreases.

Purchase Return

Returns one item to supplier and automatically decreases stock. If refund amount is entered, cash increases.

0Sales Returns
0Sales Refunds
0Purchase Returns
0Purchase Refunds

Sales Returns List

NoDateCustomerRefundNote

Purchase Returns List

NoDateSupplierRefundNote

Customer Payment Collection

Supplier Payment

0Customer Payments
0Collected
0Supplier Payments
0Paid to Suppliers

Customer Payments

DateCustomerAmountMethodNote

Supplier Payments

DateSupplierAmountMethodNote

Salary Payment / Payroll

This creates salary payment record and automatically creates CASH_OUT transaction.

0Salary Payments
0Total Salary Paid
0Total Bonus
0Total Deduction

Salary Payment List

DateMonthEmployeeBasicBonusDeductionNetNote

Add Employee

Attendance Entry

0Employees
0Present Records
0Absent Records
0Attendance Records

Employee List

CodeNamePhoneDepartmentDesignationSalaryStatus

Attendance List

DateEmployeeStatusCheck InCheck OutNote

Advanced Reports & Export Center

This report center calculates totals from your current Supabase data. Use it for demo/testing and management review.

0Net Sales
0Purchase Value
0Cash Balance
0Inventory Value

Management Summary

Export Data

Download CSV or JSON backup of your demo data. This is useful before making big AI-generated changes.

Inventory Valuation Report

ProductCurrent StockReorder LevelAvg Purchase PriceStock ValueStatus

Due Summary

TypeTotal AmountPaid/CollectedDue

Pharmacy / Invoice Settings

These settings are used in sales invoice and purchase order printing.

Safety Checklist Before Real Use

This is still a demo/MVP. Before real use: strict permissions, backups, paid domain, reviewed RLS policies, and production testing are required.
  • Use fake data while testing.
  • Export JSON backup before every big update.
  • Never expose Supabase service role key in frontend.
  • Do not give all staff admin-level access in production.

Low Stock Report

ProductCurrent StockReorder LevelStatus

Expiry Report

Product IDBatchExpiry DateSale PriceStatus

Roadmap

This is only the first Supabase-connected starter version.

  • Current: login, products, suppliers, customers, stock movements, purchase orders, sales/POS, returns, payments, cash, payroll, HRM, attendance, reports.
  • Current upgrade: multi-item POS and purchase carts. Next: invoice print/PDF, strict role permissions, security hardening, better UI.
  • Later: HRM, attendance, payroll, role permissions, audit logs.
Use fake/demo data only until production security, backups, and paid domain/hosting are ready.