Skip to content
All projects

2026 · Operations

Durian Estate Management System (DEMS)

Orchard money and personal money are kept apart, so the profit figure means something.

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

Documentation

DEMS login screen asking for the owner PIN.
Sign in: owner access by PIN.
Inventory table with current stock, minimum level, and status.
Inventory: stock, minimum level, and average price.
Finance page separating orchard cash from the bank account. Balances are masked.
Finance: orchard cash and bank account kept apart.

Context

Maintenance for 800 trees across three blocks was scheduled from memory. Fertiliser and diesel purchases lived in a notebook, weekly wages were recalculated every week, and harvest income was mixed with the owner's personal cash.

Approach

A single spreadsheet holds the database across 27 sheets behind it. Maintenance schedules attach to blocks, stock has minimum thresholds, and harvests are recorded by grade. Weekly payroll uses the rate stored for that period, while owner withdrawals and loans sit in their own accounts and never count as operating costs.

Outcome

Orchard spending, wages, and personal money no longer mix. Every purchase and stock movement leaves an audit trail, and the monthly report is built from the same data.

Technical notes

  • Operating cash, owner withdrawals, and owner loans each sit in their own account.
  • Wage rates are stored per period, so raising a rate never rewrites past payroll.
  • Stock rejects negative values and warns when it reaches the minimum threshold.
  • Harvests are recorded by grade A, B, and C, then sold with outstanding balances.
  • Every write carries an idempotency key, runs under LockService, and lands in an audit log.
  • Asia/Makassar time and Rupiah formatting are consistent across the whole interface.