title: "Inventarium: What If Financial Software Worked Like Git?"
published: false
description: "Exploring the idea of a Financial Git: immutable history, traceable operations, synchronization integrity, and financial reconciliation for small businesses."
tags: opensource, architecture, finance, android
cover_image:

Inventarium: What If Financial Software Worked Like Git?

Most business management applications focus on recording what happens.

A sale is registered. Inventory decreases. An expense is recorded. A payment is received.

But there is another question that becomes increasingly important as a business grows:

How can we trust what happened yesterday, understand what changed today, and explain every financial difference tomorrow?

That question is behind Inventarium.

Inventarium is a business management project that connects inventory, sales, expenses, and financial control through an Android application and a Windows desktop application.

But its long-term vision goes beyond traditional inventory management.

I'm exploring an idea I call Financial Git.

The inspiration: Git is more than version control

Git changed how developers work with source code.

It provides a history of changes, identifies commits, detects differences, preserves previous states, and allows developers to investigate how a project evolved.

I started wondering:

What if financial software adopted some of those principles?

Business operations also change over time.

A sale can be registered, exported, synchronized, reviewed, or challenged. An inventory count can reveal a discrepancy. A previously imported operation might disappear from a later export.

Traditional synchronization often focuses on making two databases look identical.

But financial systems need something different.

They need to preserve evidence of what happened.

The Financial Git concept

The idea is not to turn accounting into source control.

Instead, it is to borrow some of Git's most valuable principles:

  • Stable identity: Every sale needs a persistent identity, not just a local database ID.
  • Immutable history: Previously recorded financial operations should not silently disappear or change.
  • Change detection: Differences between exports should be identified and explained.
  • Traceability: Every relevant decision should have a history.
  • Reconciliation: Receiving data successfully does not necessarily mean the financial information is correct.
  • Recovery: Synchronization failures should not create duplicate financial operations.

These principles shape Inventarium's architecture.

Android and Desktop: two different responsibilities

Inventarium uses two complementary applications.

Android: the operational side

The Android application is designed for daily business operations:

  • Product management.
  • Inventory control.
  • Sales and tickets.
  • Payment methods.
  • Costs and prices.
  • Business activity.

It is where operational data originates.

Windows Desktop: the administrative side

The desktop application is designed to consolidate and inspect business information.

Its responsibilities include:

  • Importing Android database exports.
  • Maintaining historical financial information.
  • Protecting previously imported sales.
  • Detecting synchronization inconsistencies.
  • Supporting financial review and reconciliation.

The goal is to let a business owner operate a store from Android while maintaining a more complete administrative and financial history on Desktop.

Stable identity: why SaleUid matters

One of the first architectural problems is identifying the same sale across different databases.

A local SQLite ID is not enough.

The same operation can have different local IDs on different installations.

Inventarium uses a persistent "SaleUid" to identify a sale independently of its local database identifier.

The logical identity also considers the source and inventory cycle:

"SourceId + InventoryUid + SaleUid"

This helps distinguish operations from different sources and inventory cycles.

It also provides a foundation for idempotent imports: importing the same operation again should not register another financial transaction.

Synchronization should not erase history

Imagine this situation:

  1. A store registers a sale on Android.
  2. The sale is exported and imported into Desktop.
  3. The sale is accidentally deleted on Android.
  4. A new export is generated.
  5. Desktop receives that export.

Should Desktop delete the original sale?

I believe the answer is no.

The absence of a sale in a new export is not sufficient evidence that its historical financial effects should be erased.

This is why I'm introducing the concept of tombstones.

A tombstone is an explicit record that an operation was deleted or removed.

Instead of silently disappearing, the deletion carries information such as:

  • Original sale identity.
  • Inventory cycle.
  • Event identifier.
  • Timestamp.
  • Responsible person, when available.
  • Reason for deletion.
  • Snapshot of the original operation.

Desktop can then recognize the deletion request without automatically deleting the original sale or its financial records.

This creates an important distinction:

An operational deletion is not automatically an accounting reversal.

A financial correction should be a separate, traceable operation.

Three different histories

An important architectural decision is separating three concepts that are often mixed together.

  1. Synchronization History

What files were received?

Which source produced them?

When did synchronization happen?

Were there errors or warnings?

  1. Financial Continuity

What happened to previously imported operations?

Which sales are new, modified, unchanged, or absent?

Are there differences that require investigation?

  1. Financial Ledger

What financial movements were actually recorded?

Which operations affected cash, bank accounts, expenses, receivables, or accounting entries?

These histories are related, but they are not interchangeable.

A successful synchronization does not guarantee financial reconciliation.

And identifying a difference does not authorize changing the accounting records.

The importance of human decisions

Financial software should not silently make important decisions on behalf of business owners.

If a sale changes unexpectedly, the system should preserve the original information and present the difference for review.

If a deletion is detected, it should become a reviewable event.

If a financial discrepancy appears, it should remain visible until the appropriate correction is documented.

The goal is to distinguish:

  • Detected.
  • Reviewed.
  • Accepted or rejected.
  • Financially adjusted.
  • Reconciled.

Those states represent different levels of certainty.

Building for small businesses

A small business owner should not need to understand database migrations, SQLite transactions, hashes, or accounting internals to use reliable software.

That's another important part of Inventarium's philosophy.

The interface should remain approachable.

Technical diagnostics and advanced accounting information should be available when needed, without overwhelming the everyday dashboard.

The complexity belongs in the architecture, not in the user's daily workflow.

Where the project is heading

Inventarium is evolving toward a more complete financial continuity model.

Some of the current development areas include:

  • Persistent synchronization history.
  • Stable sale identity.
  • Duplicate import protection.
  • Detection of unexpected modifications.
  • Immutable continuity snapshots.
  • Auditable incident decisions.
  • Explicit deletion events.
  • Financial reconciliation.
  • Controlled compensating transactions.

Not every part of this vision is finished.

In particular, controlled financial reversals require careful handling of cash, bank movements, receivables, inventory, and accounting periods. They must never be implemented as simple deletion of historical records.

This is an ongoing engineering project, and preserving that distinction is essential.

Final thoughts

Git taught developers that history matters.

I believe business software should take that lesson seriously.

A financial system should not only tell us what the current balance is.

It should help us understand how that balance was reached, what changed along the way, and whether those changes can be trusted.

That's the idea behind Inventarium:

A financial system with the memory of Git.

Not Git for accounting.

But Git-inspired principles for financial traceability, continuity, and trust.