Back to projects

ERP ยท Manufacturing

X-ERP

Client: Benteng Mas

  • 30+transaction types

Overview

Manufacturing ERP from work order to delivery, with accounting, inventory and an HR module. A Vue PWA with offline storage and Bluetooth label and receipt printing, on a Laravel API.

The problem

X-ERP is the manufacturing ERP product of the Rexolusi platform, used by factory, warehouse, finance and sales staff. It runs on the shared Laravel API and the shared Vue app, and is chosen through an app switcher.

A manufacturer has to connect a sales order to a bill of materials, machine steps, material issues, finished stock and accounting entries. When these live in separate tools, stock and cost figures drift apart and the cost of a produced item is hard to trust. Floor and warehouse staff also need to print labels and receipts from a phone or tablet where the work happens.

My part

I worked on the Rexolusi platform as a Senior Software Engineer and took the lead on the backend architecture of the Laravel API that X-ERP runs on.

What I built

Work order to production flow
Approving a work order explodes the bill of materials and routing, then creates production orders, machine usage and material usage in one step. Material requests and transfers move stock to the floor, which has a board for machine start, pause, resume and complete.
Production result and costing
A production result computes the cost of production, creates the inventory lot and posts a journal. It supports actual and standard costing, and standard costing posts the variance to separate accounts.
Accounting and inventory
Purchase and sales documents, credit and debit notes, cash and bank, checks, fixed assets and depreciation, stock opname, landed cost and period closing, with FIFO and average inventory valuation.
Delivery and branches
Delivery orders, shipments and transfers between sites are separate documents. Models take the branch from the user session, and branch filtering switches off when the company does not use branches.
HR module and Bluetooth printing
An HR module covers employees and attendance. The browser app prints 58 mm ESC/POS receipts to a thermal printer over Web Bluetooth and prints QR labels to a label printer.
One front end for three products
The Vue app keeps each product in its own folder of types, services, queries and pages, mounted under its own route. It is built as a PWA and deployed as static assets on Cloudflare.

Decisions that shaped it

Modules from one scaffold
Every master and transaction module follows the same layout of model, controller, filter, request, resource and service, generated by one command. This keeps more than ninety transaction types consistent and lets new modules arrive without new patterns.
One status lifecycle for all transactions
Every transaction uses the same statuses and the same approve, unapprove and void routes. Approval can then trigger downstream documents, as a work order does, without each module inventing its own flow.
A uniform API envelope and query grammar
All endpoints return the same status, message and data shape, and list endpoints accept one filter grammar. The front end can then share one service base class and one set of query helpers.
Receipts as ESC/POS text, not images
The receipt module sends plain ESC/POS text for 58 mm paper instead of rendering an image, which gives sharper and smaller output. It does not work on iOS Safari, and the module says so.
Money and quantities as fixed-precision columns
Migration macros define money, quantity and percentage columns as fixed-precision decimals with a zero default, so every module stores amounts the same way and rounding is handled in one place.

Where it stands

  • The manufacturing flow is documented step by step, from cost pre-calculation to the certificate of analysis.
  • The backend has a Pest test suite, and the front end has Vitest unit tests and Playwright end-to-end configurations.
  • The front end deploys as static assets on Cloudflare and installs as a PWA.
  • Receipt printing and QR label printing over Bluetooth are implemented in the front end.

Core features

  • Work orders
  • Delivery
  • Accounting
  • Inventory
  • HR
  • Offline storage
  • Bluetooth printing

Tech stack

  • Laravel 10
  • PostgreSQL
  • Horizon
  • Vue 3
  • TypeScript
  • Tailwind 4
  • Dexie
  • Playwright
  • Cloudflare

Related clients