Separate ownership from custody
A purchased asset can remain unallocated, be returned, or move between employees without rewriting the purchase that established ownership.
Client project · User acceptance testing
I built backend services and Flutter workflows for a client replacing spreadsheets and a legacy asset register. The system tracks individual assets, calculates depreciation under two sets of accounting rules, and imports procurement records from Excel. Client testing covered 956 records.
See the import pipeline diagramAccountants needed one register for procurement, custody, depreciation, physical verification, and disposal. Each asset needed a traceable history even when multiple identical units were bought on one invoice.
The same register also needed separate depreciation schedules under India’s Companies Act and Income Tax Act.
A purchased asset can remain unallocated, be returned, or move between employees without rewriting the purchase that established ownership.
Voucher numbers must remain unique when separate workstations create records at the same time. Replaced process-local locking and read-then-update allocation with a PostgreSQL atomic upsert keyed by entity type and prefix, allowing independent ASSET, VENDOR, and PURCHASE sequences without a JVM-wide lock.
The workbook stays familiar to accountants while the application validates formats, resolves existing masters, creates missing dependencies in order, and batches purchase creation.
Open full resolution ↗
Open full resolution ↗
Open full resolution ↗Selected screens show how the lifecycle model became an operator-facing product, from procurement and custody through calculation, verification, reporting, and disposal.
View complete screenshot gallery ↗A purchase header groups the invoice, line items carry asset economics, and labels identify each physical unit so identical assets can develop different histories.
Allocation, depreciation, verification, sale, and scrap operate at label level.
Calculation, human verification, and financial mutation are separate stages. Multi-year previews remain sequential without forcing users to post each year manually.
The product exposes preview, Excel export, per-label histories, and controlled posting.
Flutter requests and presents calculations; the backend resolves rules, lifecycle state, and posted history so results do not depend on a particular client build.
Financial calculation and persistence moved from the Flutter client into Spring Boot services.
The architecture turns a spreadsheet-based asset register into connected financial and physical histories. A layered Spring Boot backend owns accounting rules and lifecycle writes; Flutter gives operators forms, previews, and correction workflows; PostgreSQL stores the relationships shared by procurement, custody, depreciation, verification, and disposal. Each boundary answers a business question: what was purchased, where is it now, how is it valued, and what changed?
Screens present forms, import feedback, registers, and reports. Riverpod manages asynchronous state, GoRouter handles navigation, and HTTP service classes isolate API calls from widgets. The backend URL is configured at runtime, allowing the same client to connect to the selected installation.
Controllers accept requests and return workflow outcomes. JWT authentication and role checks protect API operations; company context supports data scoping. Company identity is also part of import lookup keys where needed, so a master-data name alone does not identify a record across companies.
An invoice for ten identical laptops is one purchase, but each laptop can move to a different employee and develop its own verification and disposal history. Purchase headers hold invoice details, items carry quantities and economics, and labels identify physical units. Spring Boot services coordinate lifecycle operations around those identities, allowing custody to change while retaining the purchase that established financial ownership.
Spring Data repositories and JPA entities map the domain to PostgreSQL. Transactional service calls group a purchase and its related items. An AOP audit layer records entity changes, giving operators a change history alongside the asset lifecycle and financial records.
Accountants should be able to import their register without manually creating every prerequisite. The service resolves a block before its sub-block, resolves depreciation rules by name and method, and then finds or creates the asset definition with those references. Import-scoped maps reuse company-specific vendors, assets, and rule lookups across entries. This preserves the relationships needed by downstream calculations while reducing repeated database work.
Each submitted purchase runs through a transactional service call, grouping its header and related items. The bulk controller collects independent outcomes so one failed purchase does not undo valid purchases elsewhere in the upload. Within a large purchase, Hibernate flushes and clears after every 20 asset items and reacquires the parent, controlling retained managed state while keeping the purchase as the transaction boundary. The interface maps outcomes back to the workbook so operators know which entries need correction.
An Inno Setup installer packages the Flutter desktop build, backend JAR, and bundled Java runtime. NSSM runs the backend as a Windows service with restart behavior and persistent logs. Application settings and writable credentials live in separate locations so upgrades can replace configuration templates without overwriting secrets.
A single Spring Boot backend and relational database keep related accounting operations within one service and transaction model. Domain services centralize the rules, label identity connects physical history to financial records, and the import pipeline constructs that model from familiar spreadsheet input. Client testing covered 956 records, and personal testing reached 10,000 records. The resulting architecture supports register migration and the continuing asset lifecycle through the same domain relationships.
Conducted stakeholder interviews with accounting operators to map the complete asset lifecycle—distinguishing initial purchase capitalization from employee custody and physical unit identity.
Established a clear relational domain where purchase records establish financial ownership, allocation tracks department/custody, and unique barcode/QR labels follow physical assets across their lifespan.
Architected Spring Boot calculation services supporting parallel Companies Act and Income Tax Act schedules with sequential multi-year preview, Excel verification, and immutable posting.
Engineered an Excel import processor with automated dependency resolution that validates formats, resolves existing masters, and creates structured procurement entries in batches.
Worked with the client to check depreciation calculations, asset movement, and physical verification during user acceptance testing.
Evolved large initial monolithic controllers into focused service layers for procurement, allocation, depreciation, and disposal, ensuring high testability and clean domain boundaries.
Resolved import dependencies in order, bounded batch processing, indexed queries, and used virtualized tables for large registers.
Categorized user feedback into defect fixes, validation regressions, usability enhancements, and accounting rule refinements with systematic tracking and verification across releases.
AI use. I used AI for parts of the application code, tests, and scripts. I owned client discovery, architecture, code review, debugging, and release validation.