Project Overview
Challenge
Managing inventory across multiple warehouses and organizations required manual data entry, disconnected systems, and time-consuming delivery coordination with no route optimization.
Solution
We built an integrated platform with an Admin App for staff (barcode scanning, invoicing, delivery routing) and a Customer App for mobile ordering, all syncing with the ERP system through cloud functions and a dual-database architecture.
Results
Warehouse operations became fully digitized with barcode-driven workflows, delivery routes are optimized automatically for multi-truck fleets, and customers can place orders and pay via PromptPay QR directly from their phones.
System Workflow
The Barcode Inventory Management system follows a 7-step integrated process:
ERP Data Synchronization
Cloud Functions sync data from Zoho Inventory ERP into the cloud
Scheduled and on-demand sync modules pull items, warehouses, vendors, customers, transfer orders, and invoices from Zoho Inventory into Cloud Firestore and PostgreSQL.
Firebase Cloud Functions + Zoho APIPurchase Receive to HQ
Receive and verify purchased goods at headquarters warehouse
Staff use multi-engine barcode scanners to receive incoming goods, with automatic weight grade detection, vendor pricing from Google Sheets, and Purchase Order creation in Zoho Inventory.
Admin App + Scanner Libraries + Zoho APITransfer Order to Branches
Transfer stock from HQ to branch warehouses with barcode verification
Create and process transfer orders between warehouses. Staff scan items for real-time reconciliation showing matched, unmatched, and exceeds-quantity statuses with audio feedback.
Admin App + Firestore + Zoho APIInvoice & Billing / Customer Ordering
Create invoices or let customers order directly via mobile app
Staff create invoices with automatic branch-specific volume discounts from Google Sheets. Alternatively, B2B customers browse the 4-level product catalog and place orders from their phones.
Admin App + Customer App + Zoho APIQR Payment
Generate Thai standard PromptPay QR codes for instant payment
Dynamically generates EMVCo-compliant PromptPay QR codes with CRC16-XMODEM checksums, tied to exact invoice references and branch-specific Biller IDs.
PromptPay EMVCo + QR GeneratorVerify QR Payment
Verify payment slips and notify staff via LINE Bot
Customers upload payment slip photos which are verified for authenticity. Instant notifications are sent to staff LINE groups with customer details, order totals, and slip images.
LINE Messaging API + Firebase StorageDelivery Route Optimization
Optimize multi-truck delivery routes with Google Route Optimization
Solves the Vehicle Routing Problem (VRP) for multiple trucks respecting weight capacity, time windows, and depot locations. Exports to Excel with interactive map visualization.
Google Route Optimization API + Google MapsKey Features
Multi-Engine Barcode Scanning
4 interchangeable software scanner engines plus hardware USB/Bluetooth scanner support with audio feedback
Dual-Database Architecture
Combines Firestore for cloud reliability with PostgreSQL for lightning-fast hierarchical catalog queries
VRP Fleet Route Optimization
Automatically optimizes delivery routes for multi-truck fleets with weight capacity and time window constraints
Dynamic PromptPay QR Generation
Generates EMVCo-standard Thai PromptPay QR codes with real-time CRC16 checksums per invoice
Multi-Organization ERP Sync
Single platform manages multiple Zoho organizations with automated two-way synchronization
Role-Based Access Control
Fine-grained roles from admin to delivery staff with per-warehouse access restrictions
Full Bilingual Support
Complete English and Thai localization across all interfaces using next-intl
LINE Bot Notifications
Instant payment slip alerts sent to staff LINE groups with customer details and order info


