Bubble tea delivery loss-making order audit - settle the payout first (customer paid + platform subsidy - store-funded discounts - commission), rank orders that drop below ingredient cost by "money lost per hour", and pick the fix from exactly four moves
You are a delivery operations auditor for a bubble tea
shop. I will export a batch of delivery order records.
Find the orders whose payout lands below ingredient
cost, and tell me which promo to kill first.
Payout formula (compute by this; do not invent your
own):
payout = customer paid + platform subsidy (the
platform's share) - store-funded promo discounts -
commission - the store's share of delivery fees
Inputs I will provide:
- Order records: list price, every discount line with
its funding source (store / platform / courier-side
subsidy), commission, final payout
- Ingredient cost per cup (mine, from this store's
recipes and purchase prices)
- Currently live threshold-discount rules and other
promos
Loss-making order: payout < ingredient cost of that
order. Judge against ingredient cost only, not rent or
labor - the goal here is finding structural holes in
promo design, not full-cost profitability; blend the
two and every order becomes "losing," which points
nowhere.
Output:
- Table 1, losing orders: order ID / list price / each
discount line (with funding source) / payout /
ingredient cost / money lost, ranked by money lost,
largest first
- Table 2, hole structure: which combination the
losing orders cluster on (e.g. member coupon +
threshold discount + marked-down item stacked), each
combination with: occurrences in this sample, average
loss per order
- Table 3, what to move first: ranked by "money lost
per hour in this sample," each row choosing from
exactly four moves - kill a promo / retune the
threshold / mark discounted items non-stackable /
raise the minimum order - and stating which
combination's losing orders disappear after the move
Constraints:
- Platform-funded subsidies are not the store's money:
never count them as revenue and never use them to
offset losses. They only affect what the customer
paid.
- Any discount whose funding source is unclear goes to
a "funding pending check" list - never default it to
the platform. One wrong default legalizes the hole.
- Do not cite "industry-standard commission" or how
other shops set their discounts - this store's order
data is the only evidence.
- A combination that appears exactly once in the sample
does not enter Table 3. A one-off stays in Table 1;
changing rules for a one-off punishes every normal
customer.
Why it is written this way
The payout formula comes first because "net received" is the most misunderstood number in the whole delivery chain. The same threshold-discount banner means two entirely different worlds depending on whether the platform or the store funds it - and platform subsidies look festive but are neither store revenue nor a cushion the store may spend. Pin the formula before anything else, or the losing-order list below is fantasy. This ordering is reverse-engineered from a real failure mode: the backend shows positive flow all month, and the settlement at month-end is negative.
Judging against ingredient cost only - no rent, no labor - follows from the audit's purpose. Under full-cost accounting nearly every order "loses," and the audit loses its target: what it hunts is a hole punched by promo structure, a combination whose payout crashes through the ingredient price after stacking. Whether the shop overall makes money is a real question too, but answering both in one number answers neither.
"Rank by money lost per hour" paired with a closed set of four moves exists because the classic audit failure is a closing line like "recommend optimizing the promo structure" - unexecutable, therefore worthless. Forced to choose among kill / retune / de-stack / raise minimum, the model must emit an action instead of a sigh. Ranking by money rather than order count matters because the combination with few orders but deep per-order loss is usually the one worth killing first.
The two constraints - unclear funding goes to pending, one-offs never change rules - police the auditor's own hands. Silently defaulting unclear data to the favorable reading is where every backend-data accident starts; and rewriting rules for a combination that appeared once punishes the normal customers who never stacked anything.
Variables
| Variable | Notes |
|---|---|
| Ingredient cost per cup | Computed from this store's recipes and recent purchase prices - using the franchisor's or recruiter's "theoretical cost rate" sets the bar too loose and misses holes |
| Sample window | A recent full week including a weekend - weekday-only sampling misses the deepest-stacked weekend peak orders |