Writing a PRD for a Restaurant ERP Before Code

Four modules, the user stories that shaped them, the scope cuts that saved the project, and why the calendar is a requirement, not polish.

3 min read

A restaurant ERP sounds like a bounded problem and is not. Orders, inventory, billing and staff each look simple alone and become a scheduling problem the moment they share a database, a table is occupied, a dish is out of stock, a shift ends, and the bill has to reflect all three.

Writing the document first is what stopped this becoming six months of rework. What follows is the shape of that document, not a template to copy.

The four modules, and what each really is

Orders

The naive model is a ticket with line items. The real one is a state machine with a time dimension: placed, fired, served, voided, split, merged, moved to another table. Half the user stories are about the transitions, not the order.

Inventory

Inventory is not a stock count. It is a recipe-driven deduction problem. Selling one dish decrements several ingredients, some by weight and some by count, and some with a yield loss. If the recipe is not modelled, the stock figure is fiction within a week.

Billing

Billing is where the requirements get legal. Discounts, service charge, tax, rounding, and the specific question of what happens when a bill is split and one part is voided. Every one of those is a story somebody has to sign off.

Staff

Staff is rosters and attribution. Who was on shift when a void happened is an audit question, and it is the requirement nobody writes down until the first argument about a missing till amount.

The user stories that changed the design

  1. 01

    "The kitchen needs to see it before the bill is finalised."

    This one story separated the kitchen ticket from the bill, which sounds small and reordered the whole data model. It is the reason orders and billing are not the same table.

  2. 02

    "A dish can be 86'd mid-service."

    Out-of-stock has to be a first-class state that propagates to the menu, not a note the waiter remembers. This is the story that made inventory real-time rather than a nightly job.

  3. 03

    "Two tables merged, then one asked to pay separately."

    The split-and-merge story is where naive billing dies. It arrived in the second interview and would have been a rewrite in month three.

  4. 04

    "The month-end report has to match the tax filing."

    This is the story that forces the date model to be right, and it is where the calendar question stops being a detail. See below.

Scope cuts, named explicitly

A PRD that does not say what is out of scope is a wish list. The cuts that made this shippable:

Why the Nepali calendar is a requirement, not a detail

The requirement that gets treated as polish and never is: the business runs on the Bikram Sambat calendar. The fiscal year, the monthly reports, the tax deadline and the way the owner talks about “last month” are all BS. A system that stores only Gregorian dates will produce a monthly report that does not match the filing.

That is not a display concern that can be added at the end. It changes how dates are stored, how periods are bounded, and how reports are grouped. It has its own treatment in supporting the Nepali (BS) calendar in business software, and it belongs in the PRD alongside orders and billing, not in a backlog called “localisation”.

What the document bought us

It bought the ability to say no in week one rather than month four. Multi-branch was the clearest: a requirement that looked like a checkbox and was, in fact, the hardest part of the data model. Writing it down is what turned it into a conversation about sequencing instead of a surprise.

That is the same discipline as turning a requirements document into an RFP: the value of the document is not the document. It is the argument it forces early.

What I would write differently

The document was right about modules and wrong about two things.

It treated the kitchen display as a screen rather than a queue with its own failure behaviour. When the printer drops, the ticket does not disappear, it is waiting somewhere, and the story about what happens next was missing. Screens fail gracefully; queues fail silently and then all at once.

It also under-specified what happens when the system is simply wrong. A stock count that is off by one is normal and a stock count that is off by forty means something fundamental is broken. The PRD had no section on reconciliation, how the digital count and the physical count get compared, how often, and what happens when they disagree. That is the same gap that turns a working inventory feature into one nobody trusts by the third month, and it deserved its own heading rather than a line in the acceptance criteria.

On this page

Supporting the Nepali (BS) Calendar in Business Software

Bikram Sambat is not a display format. How it changes date storage, period boundaries, fiscal years, reports, and the cases that only bite at year end.

3 min read

What insurance agents and policyholders need from an app

Quotes, payments, renewals, claims tracking, video KYC and offline needs, from the point of view of the two people who open the app.

3 min read

Evaluating a Mobile App Vendor with a Feature Gap Analysis

How to compare a vendor proposal against your own requirements, and the specific gaps worth checking before you sign. Includes a sample scoring approach.

3 min read