Back to ProjectsProject Case File

Chiya Sansar POS

Premium Point of Sale & Restaurant Management System

A Point of Sale and management system built for Chiya Sansar, a tea lounge in Chitwan, Nepal. It unifies floor staff, kitchen operations, counter billing, stock accounting, customer credit, and VAT invoicing into one real-time system, self-hosted with no monthly fees or vendor lock-in. It has been in daily use since early 2026, with ongoing maintenance and support.

What Powers It

Backend

PHP 8.0+PDO (100% Parameterized Queries)

Database

MySQL 5.7+ / MariaDB 10.3+

Frontend

HTML5CSS3 (Glassmorphic, Mobile-First)JavaScript (ES6+)

UI & Data Libraries

SweetAlert2Chart.js

Security

Bcrypt HashingCSRF TokensRole-Based Access Control

Hosting

Apache / Shared cPanel Hosting

Inside the Build

Global Router & Entry Portal

  • Portal router cards for Counter Admin vs. Waiter Floor login
  • Live Nepal Standard Time (Asia/Kathmandu) clock widget
  • Interactive tactile click audio feedback

Waiter Mobile POS Portal

  • Touch-optimized floor plan covering tables and private cabins
  • Live status badges: Free, Occupied, Served, Paid
  • Instant menu search, category filters, and live stock guards
  • Order cart with quantity modifiers and special notes
  • One-tap Kitchen Order Ticket (KOT) dispatch

Counter & Admin POS Dashboard

  • Master table control with live sessions and pending orders
  • Session transfer and bill merging between tables
  • Cash, online (Fonepay/QR/Bank), and credit ('Khata') settlement
  • Flat-rate or percentage discounts, standard or VAT invoice printing
  • Real-time kitchen monitor with order status toggles
  • PIN-protected menu manager for items, pricing, and availability

Stock & Raw Material Inventory

  • Raw ingredient tracking (milk, tea leaves, sugar, cups, etc.)
  • Automatic recipe-based stock deduction on every sale
  • Reorder-level warnings for low inventory
  • Full stock audit log of additions, write-offs, and adjustments

Supplier Purchasing & Payables

  • Vendor directory with contacts and payment terms
  • Purchase recording with quantities, rates, taxes, and invoices
  • Payables tracking with partial payments and account statements
  • Printable purchase ledgers for auditing

Credit Customer Management (Khata)

  • Registered credit accounts for regulars, staff, and corporate clients
  • Real-time balance and limit tracking
  • Full or partial repayment logging with receipts
  • Printable per-customer and all-customer credit statements

VAT Invoicing

  • Tax invoices with customer PAN/VAT numbers
  • Automatic 13% VAT breakdown: taxable amount, tax, net total
  • Printable VAT sales register filtered by date range

Staff Control & Security

  • Admin and waiter account management with encrypted credentials
  • Live waiter heartbeat/activity monitoring
  • Instant account deactivation without losing audit history
  • Global kill-switch to lock all waiter access at closing time

Thermal Printing Engine

  • 80mm and 58mm thermal printer layouts via CSS @media print
  • High-contrast KOT printouts with table, time, and items
  • Instant receipt, settlement voucher, and credit log printing
From the Working System

Screenshots

Screenshots from the live system, running in the business. Test data is shown where a real record would contain a customer's details.

Directory & File Organization

admin/Admin & management portal — dashboard, stock, purchases, print templates
api/36 async API endpoints for orders, billing, stock, users, and VAT reports
assets/Stylesheets, client scripts, audio, and logo assets
auth/Counter admin and waiter login views
config/Master init, session router, and access-denial .htaccess
includes/Core libraries — auth, CSRF, DB, permissions, PIN, invoices, printing
secure_config/Encrypted DB credentials and bcrypt-hashed menu PIN
sessions/Protected, file-backed PHP session storage
index.phpPortal router and role-selection interface

Want Something Like This?

I build production-grade platforms like this one, end-to-end. Let's talk about your project.

Get In Touch