Backend for a multi-store dashboard
- Starts when
- The dashboard asks for its data, or the nightly sync writes a day’s numbers.
- Does
- A web-app script reads the sheet’s accounting, fixed costs, cash flow, one-off expenses and forecast tabs and returns them as JSON. A second script takes the nightly sync’s writes, but only with the shared secret.
- Result
- The dashboard reads one live source, and the sheet stays the place the owner edits.