Back to Projects
REGISTRY / shalom-pos
● ARCHIVED Lead Full-Stack Engineer & System ArchitectClient: Shalom Digital Printing & Framing Developed by iamkavinayan.com

Shalom POS — ERP & Retail Billing System

Enterprise POS and financial ledger engineered for digital printing and custom framing businesses, featuring dynamic square-footage pricing calculations, cash drawer session reconciliation, dual-direction cheque tracking, and hardware-accelerated 80mm thermal receipt generation.

Shalom POS — ERP & Retail Billing System showcase - Developed by Kavinayan
CHECKOUT SPEED
< 15s
Dynamic area & add-on calculation
REGISTER ACCURACY
100%
Shift variance & float reconciliation
DIMENSION PRICING DRIFT
0.00%
Sq.ft, cm, inch & tiered rules
CHEQUE MATURITY TRACKING
100%
Dual payable & receivable ledger

The Challenge & Objectives

Commercial printing, signage, and custom picture-framing businesses operate under dynamic geometric constraints that standard retail POS systems (like Shopify or Square) fail to handle: • Dynamic Area & Tiered Pricing: Jobs are not fixed-price SKUs; they require real-time two-dimensional calculations (width × height across feet, inches, centimeters) coupled with material waste multipliers, board mounts, lamination, and framing border add-ons. • Cash Register Drawer Accountability: High volumes of walk-in cash payments led to daily register balance discrepancies, missing opening float records, and unmonitored mid-shift cash withdrawals. • Post-Dated Cheque Vulnerability: The business frequently deals with post-dated customer cheques and issues post-dated supplier cheques. Without a structured maturity calendar, bounced cheques and cash-flow blind spots were frequent. • Thermal Receipt Hardware Limits: Legacy receipt drivers failed to produce readable printouts for custom dimensions and multi-line service breakdown on 80mm ESC/POS thermal printers.

Architecture & Engineering Decisions

• Dynamic Dimension Calculation Engine: Developed a mathematical pricing engine in TypeScript that dynamically resolves unit conversions (sq.ft, sq.in, cm, linear feet), applies configurable service tier rules, and calculates nested material add-ons with zero floating-point drift. • Strict Register Session Enforcement: Implemented an ACID-compliant cash session state machine. Cashiers are strictly prevented from billing sales unless a shift register is opened with a verified float. Automated closing reconciliation audits counted cash against expected cash and logs variance discrepancies. • Dual-Ledger Cheque Maturity Tracker: Architected a full cheque lifecycle engine distinguishing between Payable (supplier commitments) and Receivable (customer deposits) cheques, with 7-day maturity countdowns, overdue alerting, and clearance state mutations. • Pure ESC/POS Thermal Printing Pipeline: Engineered print-specific CSS (@media print) with Space Mono typography, enforcing pure black density (#000000), dashed cutlines, and sub-second print dialog rendering on 80mm thermal receipt rolls. • Strict Role-Based Access Control (RBAC) & Immutable Audit Trail: Built stateless JWT authorization with role segregation (SUPER_ADMIN, SHOP_ADMIN, CASHIER_WORKER). Implemented a comprehensive audit logging engine recording actor ID, client IP, before/after JSON diffs, and reasons for all sensitive actions (refunds, voids, price overrides, cheque clearances).

System Architecture Blueprint

Frontend Engine

Next.js 14 App Router + Tailwind CSS

Server-rendered layouts with reactive client-side POS terminal state, keyboard shortcuts (F-keys/Esc), and high-contrast glassmorphism interface.

Database & ORM

MySQL 8.0 + Drizzle ORM

High-throughput relational schema with Drizzle type safety, transactional write integrity, and strict decimal precision for financial calculations.

Infrastructure

Ubuntu 24.04 VPS / Nginx Reverse Proxy

PM2 daemon process management, Nginx reverse proxy, automated TLS/SSL encryption, and scheduled MySQL database snapshot dumps.

Security Protocols

Stateless JWT + RBAC + Mutation Audit Log

Cryptographic JWT session validation, Zod payload validation, fine-grained role gating, and immutable JSON-diff audit logging.

Production Interface Gallery

Click any photo to expand
Shalom POS — ERP & Retail Billing System screenshot 1
Expand Fullscreen
Shalom POS — ERP & Retail Billing System screenshot 2
Expand Fullscreen

Business Impact & Results

• Reduced customer billing checkout latency from ~3 minutes of manual paper calculations to under 15 seconds per custom-dimension sale. • Eliminated 100% of untracked cash drawer discrepancies through shift-based opening float and variance reconciliation. • Automated 100% of vendor and client cheque tracking, preventing late penalties and missed deposit windows. • Delivered instant tabular reporting with one-click multi-page PDF generation (jspdf-autotable) and multi-sheet Excel exports (xlsx) for tax and accounting audits.

System Telemetry

Status
archived
Verified Views
127
Host Deployment
Ubuntu VPS / aaPanel

Technology Taxonomy

TypeScriptTailwind CSSDrizzle ORMZodMySQL 8.0Lucide IconsNext.js 14JWTjsPDFSheetJS (XLSX)ESC/POS Thermal Printing
Engineering Attribution

Architected, engineered, and maintained by Kavinayan. Discover all digital systems at iamkavinayan.com.

Commission Similar System

Looking to architect an enterprise web platform or custom client software?

Initialize Contact Relay →