JurgestBalla
AboutServicesWorkBlogContact
JurgestBalla

Senior Full-Stack Engineer

ERP Integrations & Legacy Modernization

Tirana, Albania

Navigation

AboutServicesWorkBlogContact

Connect

LinkedInGitHubinfo@jurgest.comB2B projects via Klartech

Legal

Privacy policyImprint

© 2026 Jurgest Balla. All rights reserved.

Built by me ·

Back to selected work
ERP & integrationsInventory & VAT · Fiscal e-invoices

Stoku

When the point-of-sale stock figures could not be trusted, I rebuilt true stock and the monthly VAT ledger from the fiscal e-invoices themselves, shipped as an offline Windows desktop app.

Role
Creator: analysis, sync engine and desktop app
Client
A food & dairy distributor with a warehouse and three delivery vans

The problem

Stock in the point-of-sale system had drifted far from reality, so neither stock nor VAT could be trusted. Every sale and purchase, however, is registered with the tax authority as a fiscal e-invoice.

What I built

  1. 1

    Audited the existing POS data to find where and why the numbers went wrong.

  2. 2

    Built an incremental sync that pulls sales, delivery notes and transfers from the POS back office, and every invoice's line items from the tax authority's public verification service: a 40-day re-read for late fiscalization, idempotent on the fiscal invoice ID, six parallel workers with retries.

  3. 3

    Rebuilt stock as opening count + purchases ± transfers − sales, with supplier-item → article mapping rules, and a monthly VAT ledger with carry-forward credit.

  4. 4

    Packaged it as an offline Windows desktop app (Electron with a local SQLite database): encrypted secrets, a role per van, daily backups, and a health page for every data source.

Architecture

Stoku data flowSales and transfers from the POS back office and invoice lines from the tax authority flow through an incremental sync engine into a local SQLite database that powers the desktop app.incrementalinvoice linesupsertsopening stockPOS back officesales · transfersTax authorityfiscal e-invoicesSync engine40-day re-read · idempotentLocal SQLiteWAL · daily backupsDesktop appstock · VAT ledgerExcelimport · export
Sales and transfers from the POS back office and invoice lines from the tax authority flow through an incremental sync engine into a local SQLite database that powers the desktop app.Swipe sideways to see the whole diagram.

Integrations

  • POS back-office API: sales, delivery notes, transfers
  • Tax authority: fiscal e-invoice verification
  • Excel import and export

Outcomes

  • Stock and VAT derived from fiscal records instead of the POS's own numbers

  • Runs offline on a single Windows PC, with no server to maintain

  • Two languages (Albanian, English)

Tech stack

Node.jsSQLiteElectronNext.jsReactTypeScriptTailwind CSS

Next case study

SignalXchange