HomeCase studiesUnifying Finance, Procurement, and Operations in a...

Case study · Munich, Germany

Unifying Finance, Procurement, and Operations in a Modular Business ERP Platform

Enterprise Resource Planning

Mid-sized manufacturing and distribution enterprises frequently outgrow disconnected accounting packages, spreadsheets, and standalone warehouse tools that force teams into manual reconciliation. We engineered a unified, modular business ERP platform using Java, Spring Boot, React, and PostgreSQL to consolidate double-entry accounting, procurement, sales order fulfillment, and warehouse inventory into one transactional core. Domain modules communicate through deterministic internal events and an outbox pattern, preserving ledger accuracy while allowing finance and operations teams to work concurrently without data drift.

Industry
Enterprise Resource Planning
Solution
A unified web-based ERP platform and REST API suite uniting general ledger accounting, purchase-to-pay, order-to-cash, and multi-location warehouse operations.
Platforms
Web & API
Stack
Java · Spring Boot · React · TypeScript · PostgreSQL · Redis
Location
Munich, Germany · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Munich, Germany. Names withheld by agreement.

Project Overview

Industry: Enterprise Resource Planning

Solution scope: An integrated, web-based ERP platform and API suite engineered with Java, Spring Boot, React, TypeScript, and PostgreSQL to centralize general ledger accounting, procurement, order fulfillment, and warehouse inventory control.

Context: Growing commercial and manufacturing businesses in Munich and across the DACH region often operate on a patchwork of standalone bookkeeping software, legacy warehouse databases, and shared spreadsheets. While each tool solves an isolated department task, the boundaries between them break down during month-end close, cross-warehouse replenishment, and statutory tax audits. Consolidating financial and operational workflows into one transactional ERP system eliminates manual re-keying and gives leadership real-time visibility into working capital, open commitments, and margin performance.

Business Bottleneck

Disconnected operational and financial records. When goods receipts sit in warehouse spreadsheets and supplier invoices live in standalone accounting tools, three-way matching becomes a manual clerical bottleneck that delays vendor payments and obscures accrued liabilities.

Fragile month-end reconciliations. Exporting CSV batches between sales, stock, and ledger systems introduces timing mismatches, unposted cost-of-goods-sold entries, and currency discrepancies that prolong financial close cycles.

Opaque approval chains. Requisitions, credit limit overrides, and non-standard supplier discounts often travel through email threads, leaving controllers without an auditable trail of spending authorizations.

Inflexible legacy interfaces. Desktop ERP clients force staff through nested modal forms for routine multi-line orders, slowing daily execution and pushing teams back to external spreadsheets.

Architectural Strategy

Build a transactional modular monolith. ERP domains share financial truth: receiving stock updates warehouse balances, purchase orders, and accrued payables together. Packaging Finance, Procurement, Sales, and Inventory as encapsulated Spring Boot modules over one PostgreSQL cluster preserves ACID atomicity without distributed two-phase commit complexity.

Model accounting as an append-only ledger. Rather than allowing mutable edits on posted documents, operational events emit balanced journal entries into an immutable ledger. Corrections occur strictly via dated reversal entries mirroring statutory bookkeeping rules.

Deliver keyboard-centric React workflows. Staff work inside tabular grids all day. The React TypeScript frontend provides virtualized tables, inline validation, keyboard shortcuts for voucher entry, and split-pane document comparisons.

Isolate side effects via an outbox pattern. Rendering commercial PDFs, emailing suppliers, and refreshing analytical summaries run outside interactive HTTP transactions through a PostgreSQL transactional outbox processed by Spring workers.

Core Capabilities

  • Double-entry general ledger & multi-entity finance: Supports configurable charts of accounts, multi-currency revaluation, fiscal period locking, cost-center allocations, and automated trial balance generation.
  • Procure-to-pay with three-way matching: Links purchase requisitions, approved purchase orders, warehouse goods receipt notes, and supplier invoices, flagging price or quantity variances before payment release.
  • Order-to-cash & credit control: Manages customer quotations, confirmed sales orders, real-time credit limit checks, picking slips, delivery notes, and tax-compliant invoicing.
  • Multi-warehouse inventory valuation: Tracks stock across bins and locations using FIFO or weighted-average costing, recording every transfer, cycle count adjustment, and reservation in an unbroken stock ledger.
  • Configurable approval workflows: Routes high-value requisitions, vendor onboarding requests, and credit memos through threshold-based multi-tier sign-offs with delegation support.
  • Role-scoped analytical reporting: Delivers aged payables, aged receivables, gross margin by SKU, and cash-flow projections filtered by legal entity, department, or project code.

Technical Architecture

Spring Boot domain core. The backend organizes controllers, application services, and domain aggregates into isolated Java packages enforced via ArchUnit tests. Spring Security validates stateless JWT tokens alongside fine-grained permission claims covering entity scope, cost center, and document state transitions.

PostgreSQL transactional engine. Relational integrity binds every invoice line, stock movement, and ledger journal via strict foreign keys, check constraints, and serializable or READ COMMITTED transactions with deterministic row-level locking on inventory counters.

Redis coordination layer. Redis caches active fiscal calendar rules, exchange rate tables, and user permission matrices while providing short-lived distributed locks for batch depreciation runs and month-end period closing jobs.

React single-page workspace. Built with TypeScript, React Query, and a modular component library, the web client maintains local draft state for multi-line vouchers, validates tax codes client-side against cached schemas, and communicates with versioned Spring REST endpoints.

Flow: Department user (React TypeScript UI) → Spring Security & permission gate → Spring Boot domain service → PostgreSQL ACID ledger & outbox → Asynchronous PDF/notification workers

Technology Stack

Category Technology
Core runtime Java 21 LTS providing strong static typing, virtual threads, and predictable memory management
Backend framework Spring Boot 3 delivering modular domain boundaries, Spring Security, and transactional service orchestration
Frontend framework React with TypeScript powering high-density data grids, split-screen voucher entry, and keyboard-first workflows
Primary database PostgreSQL enforcing ACID double-entry ledger invariants, row-level locks, and multi-entity schemas
Caching & session store Redis holding distributed locks, active fiscal period configurations, and permission matrices
Messaging & outbox Transactional outbox table paired with Spring application events for reliable cross-module posting
Document rendering Server-side PDF generation for purchase orders, commercial invoices, and statutory VAT trial balances
Search & indexing PostgreSQL GIN trigram indexes enabling sub-second lookups across SKUs, suppliers, and journal vouchers
Containerization Docker packaging reproducible backend services, worker nodes, and Nginx-served React bundles
Observability OpenTelemetry traces, structured JSON audit logs, and Micrometer JVM health metrics

Engineering Trade-offs & Solutions

Challenge Solution
Cross-module workflows risked partial commits when stock moved without ledger posting Encapsulated domains inside a Spring Boot modular monolith sharing a single PostgreSQL transaction boundary for financial and stock writes.
Concurrent sales orders competing for limited SKU stock risked deadlocks Enforced deterministic ascending SKU lock ordering during stock reservation transactions inside PostgreSQL.
Editing posted invoices created audit discrepancies during statutory tax reviews Made posted documents and ledger journals append-only, forcing adjustments through linked credit notes and reversing journals.
Computing live financial balances across years of raw journal lines slowed reporting Maintained incremental period-balance summary tables updated atomically whenever journals post or close.
Heavy batch exports and PDF invoice compilation degraded interactive API latency Shifted rendering and email dispatch onto transactional outbox workers decoupled from user-facing Spring endpoints.
Multi-entity teams struggled with strict field-level visibility requirements Implemented Spring Security attribute-based policies filtering entities, warehouses, and salary/cost accounts per role.

Security & Reliability

Entity-scoped RBAC and approval separation. Segregation-of-duties rules prevent the same user from creating a supplier record, approving a purchase order, and releasing payment. Every API endpoint enforces both functional permissions and entity-level row filtering.

Tamper-evident fiscal audit trail. Every state transition—from draft approval to period close—records user identity, client correlation ID, UTC timestamp, and structured JSON diffs in an append-only audit table.

Deterministic idempotency on financial writes. Voucher submissions and payment allocations carry client-generated idempotency keys stored in PostgreSQL so transient network retries never produce duplicate ledger postings.

Performance & Scale

Keyset pagination and read-optimized reporting views. High-volume transaction registers avoid deep OFFSET scans by paginating via indexed cursor timestamps and primary keys, keeping latency flat even as historical journal counts grow across fiscal years.

Containerized horizontal web scaling. Stateless Spring Boot API nodes packaged in Docker scale horizontally behind a load balancer, while Redis coordinates scheduled batch jobs so only one node executes period-end accruals or currency revaluations.

Operational Outcomes

  • Single source of financial and stock truth: Inventory movements post their accounting impact in real time, removing end-of-month spreadsheet reconciliation cycles between warehouse and finance teams.
  • Audit-ready statutory compliance: Immutable journal histories, three-way match trails, and fiscal period locks satisfy external auditors without manual document reconstruction.
  • Faster order-to-cash and procurement cycles: Keyboard-driven React forms, automated credit checks, and structured approval routing keep daily purchasing and fulfillment queues moving cleanly.
  • Predictable extensibility across business units: Clear Spring Boot module boundaries allow new subsidiaries, warehouses, or regional tax rules to onboard without re-architecting the core platform.

01 — Questions

asked about this kind of project

Why structure the Spring Boot backend as a modular monolith rather than separate microservices?

ERP workflows span inventory movements, tax calculations, and general ledger postings that require atomic ACID guarantees. A modular monolith inside Spring Boot enforces strict package boundaries between finance, procurement, and fulfillment while letting cross-domain postings commit inside a single PostgreSQL transaction instead of fragile distributed sagas.

How does the system guarantee that operational transactions never leave the general ledger out of balance?

Every inventory receipt, vendor bill, or customer invoice routes through an immutable journal posting engine backed by a database constraint checking that debits equal credits per currency and fiscal period. Posted entries cannot be edited in place; corrections require reversing journals linked to the original document.

How are concurrent stock reservations and order approvals handled without overselling?

Sales order confirmation acquires deterministic pessimistic row locks on warehouse SKU balance records inside PostgreSQL, sorted by SKU identifier to prevent deadlocks. Available-to-promise quantities deduct open allocations immediately before releasing the lock.

What prevents sluggish UI performance when accountants filter tens of thousands of ledger lines?

React screens use keyset-paginated REST endpoints, virtualized table rendering, and debounced server-side filtering backed by composite PostgreSQL indexes. Financial totals aggregate incrementally via period summary tables rather than scanning raw historical journal rows on every page load.

How does the platform accommodate multi-company groups with differing chart-of-accounts structures?

Legal entities share a single deployment while maintaining isolated charts of accounts, fiscal calendars, and tax regimes keyed by entity ID. Inter-company transfers generate paired due-to and due-from ledger entries automatically and roll up into consolidated group reporting.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.