Skip to content
All projects

2026 · Operations

Batakoku

One place to work out profit per sale and daily wages, from the yard to the delivery.

Role
Fullstack
Year
2026
Type
Operations
Stack
Google Apps Script, Google Sheets, PWA, Capacitor, Vercel

Documentation

Sales form showing price, delivery, cost of goods, and owner share.
Sales: gross profit and owner pay computed as the transaction is saved.
Daily production form with worker attendance and cement sack usage.
Production: daily attendance and material usage.
Wage recap per worker for one period. Worker names are masked.
Wages: per-period recap with payments and balance.

Context

The owner kept production and sales in a notebook, then retyped them into a spreadsheet. Wages were counted by hand from attendance, and cash advances were often confused with business costs.

Approach

The Vercel site is a PWA shell that loads an Apps Script app, with Google Sheets as the database. Each sale works out price, delivery cost, cost of goods, the owner's share, and gross profit. Daily attendance turns straight into wages, while cash advances are recorded as receivables. The Android build wraps the same code with Capacitor.

Outcome

Production, sales, and wages now live in one database. The owner can see profit per sale without recalculating, and each person's outstanding advance stays visible.

Technical notes

  • Writes to the spreadsheet are locked so two users cannot overwrite the same rows.
  • A service worker makes repeat visits open instantly, even on a weak connection.
  • One codebase for web and Android through Capacitor, with the APK built on GitHub Actions.
  • Wages are derived from daily attendance instead of a second manual entry.
  • Cash advances are recorded as receivables, so they never inflate business costs.
  • Cement sack usage and defective bricks are recorded per production day.