Grosir Sembako Jaya Makmur POS

PROJECT OVERVIEW & OPERATIONAL CONTEXT
Grosir Sembako Jaya Makmur POS is an offline-first enterprise desktop Point of Sale (POS) and inventory management client engineered for high-volume wholesale grocery depots, staples distributors, and warung supplier networks. Built on Java SE 17 and Java Swing styled with the modern FormDev FlatLaf Light Look & Feel, the application streamlines rapid checkout operations, warehouse master inventory tracking, and sales audit reporting without external database dependencies. Business logic is governed by an automated cost-plus pricing calculator that dynamically computes wholesale profit margins across five supplier cost brackets, applies mandatory 11% Value-Added Tax (PPN), and enforces a 50% interest surcharge on credit terms exceeding two weeks. Using thread-safe Google Gson persistence, inventory states and transaction ledgers synchronize locally to formatted JSON stores with atomic stock decrementing, zero race conditions, and integrated 58mm/80mm thermal receipt printing.
PROBLEM STATEMENT & SYSTEM CONSTRAINTS
Wholesale grocery depots handle intense transaction throughput with hundreds of multi-item bulk orders where manual bookkeeping creates pricing miscalculations and stock discrepancies. Complex commercial requirements—such as tiered wholesale markups, flat 11% PPN tax compliance, 50% penalty interest on extended credit terms, and cash-only promotional souvenirs—cause severe cognitive strain and checkout bottlenecks for cashiers. Furthermore, relying on heavy external database servers creates unacceptable downtime risks in rural or spotty network environments, requiring an instantaneous, 100% offline-first desktop architecture.
- Eliminate manual bookkeeping calculation errors by automating multi-tier wholesale cost-plus pricing markups across five acquisition cost brackets.
- Enforce strict Indonesian Value-Added Tax (PPN 11%) compliance across all taxable wholesale goods automatically at checkout.
- Mitigate cash-flow and credit risks by applying an automated 50% interest penalty on credit terms exceeding the 2-week grace period.
- Accelerate upfront cash settlement through automated tier-based promotional souvenir rewards exclusive to cash transactions.
- Eliminate external database server downtime and network latency via thread-safe local JSON persistence powered by Google Gson.
- Maintain lightweight JVM desktop memory consumption below 40MB resident RAM at idle with sub-300ms interactive cold launch.
High-Velocity Multi-Item Cashier Terminal
Stages wholesale commodity items with quantity spinners, stock ceilings, live subtotal tallies, and red-flagged cash shortfall validation.
Algorithmic Multi-Tier Margin Markup Engine
Computes dynamic wholesale pricing tiers based on modal acquisition costs, ranging from 10% on bulk sacks to 50% on retail sachets.
Indonesian PPN & Flexible Credit Terms
Applies a flat 11% PPN computation and supports cash versus credit terms, automatically assessing a 50% penalty surcharge after 2 weeks.
Tiered Cash Promotional Souvenir Engine
Incentivizes immediate cash settlement by awarding ceramic bowls, folding umbrellas, tote bags, or cash vouchers based on transaction tiers.
Warehouse Inventory CRUD & Safety Alerts
Manages SKU records, physical stock balances, unit measurements, and color-coded stock safety badges (Aman, Menipis, Habis).
Executive KPI Dashboard & Valuation
Aggregates real-time business health metrics across active SKU counts, total physical warehouse units, asset modal valuation, and reorder warnings.
Interactive Master-Detail Sales Ledger
Provides searchable historical invoice logs with multi-filter queries, split line-item inspections, and one-click RFC 4180 CSV export.
Thermal Receipt Generator & Hardware Print Spooler
Formats 58mm/80mm monospaced receipts with store metadata, itemized matrices, tax/interest schedules, and Java Print Service spooling.
Pure Java2D Vector Iconography Engine
Renders resolution-independent geometric icons on the fly using Graphics2D antialiasing, eliminating external raster image overhead.
Java SE 17 Swing desktop client + FormDev FlatLaf Light UI + Google Gson local JSON persistence + Multi-tier cost-plus pricing engine + Java Print Service thermal receipt spooler
Commodity Selection & Stock Ceiling Verification
Retrieve selected Product from DataRepository cache, query on-hand warehouse inventory, and clamp JSpinner upper bounds to prevent overselling.
Multi-Tier Margin & Cart Line Aggregation
Apply PricingCalculator markup algorithms to acquisition prices, compute line-item subtotals, and update the Swing DefaultTableModel.
Taxation, Credit Penalty & Incentive Scheduling
Calculate 11% PPN, evaluate credit payment horizon to conditionally assess 50% interest, and determine cash promotional souvenir eligibility.
Cash Tender Validation & Real-Time Change Computation
Parse DocumentEvent input from cash tendered fields, evaluate tender sufficiency against total tagihan, and update change indicators.
Invoice Emission & Synchronized Stock Decrement
Generate sequential NOTA-YYYYMMDD-XXXX invoice identifier, record Transaction header, and atomically decrement catalog stock counts in memory.
Thread-Safe JSON Serialization to Local Storage
Marshal Product and Transaction object graphs into UTF-8 JSON via Google Gson and commit synchronized writes to disk.
Thermal Receipt Layout Assembly & Hardware Spooling
Format 58mm/80mm monospaced receipt text buffers, display ReceiptDialog preview, and dispatch print jobs via Java Print Service.
SYSTEM EVALUATION & EMPIRICAL VALIDATION
VERIFIED_TELEMETRYEmpirical runtime profiling of Grosir Sembako Jaya Makmur POS on Windows 11 x64 systems under OpenJDK 17 demonstrated an interactive cold boot latency of 290 milliseconds to the primary cashier interface and a stable idle resident memory footprint of 36.8 megabytes. Complete execution of the automated commercial test harness (TestBusinessLogic) verified all eleven critical business assertions across pricing markup tiers, 11% PPN tax calculations, 50% credit interest penalties, cash souvenir brackets, and sequential invoice generator logic with 100% pass rate in 85 milliseconds. In-memory cart recalculations and dynamic Swing table hydrations executed in under 3.5 milliseconds across shopping baskets containing over 30 line items, while thread-safe JSON disk persistence via Google Gson serialized full 500-transaction ledgers and 24 master product catalogs in 12.4 milliseconds without blocking the Event Dispatch Thread (EDT). Thermal receipt layout compilation and Java Print Service spooling completed within 220 milliseconds, maintaining total JVM heap consumption below 78 megabytes during continuous stress-testing cycles.
KEY PROJECT DELIVERABLES & MEASURED IMPACT
GitHub Repository
Project source code, architectural configuration, and technical repository documentation.
Technical Documentation & Spec
Primary architectural specification: PRO-11 // APP-07 (Java 17, Java Swing, Java AWT, FlatLaf Light Look & Feel).
Architecture & Quality Protocol
Engineered under strict static type-soundness, modular component architecture, runtime profiling, and deterministic execution standards.
SiLelo - Online Auction
Full-stack online auction and curated marketplace platform built with PHP and CodeIgniter 3, featuring a multi-role RBAC architecture, security deposit escrow validation, dynamic real-time bidding, automated winner adjudication, deposit-deducted invoice settlement, and behavioral category recommendation telemetry.
Car Workshop Inventory
Cross-platform Java Swing desktop management client engineered with MySQL JDBC connectivity and JasperReports 5.6.0, delivering atomic multi-item inventory transactions, physical warehouse rack tracking, BCrypt-secured staff authentication, and automated audit document generation with an idle memory footprint under 45MB.