Zovo Tip Pool Calculator

v1.0.0
io.github.theluckystrike/tip-pool Checked 4 days ago Published 28 days ago

A tip pool calculator and tip out calculator for restaurant, bar, cafe and salon staff.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

calculate_tip_pool Calculate tip pool

Use this when the user wants a tip pool calculator: split pooled tips among restaurant, bar, cafe or salon staff by hours worked (how to split tips by hours), by points x hours, by role percentage (e.g. 70% servers, 20% bussers, 10% bar, then by hours inside each role), or equally. Accepts cash and card tips with an optional card fee percent, a staff list as objects or pasted text/CSV, and an optional week view (shift_tips plus a shift on each staff row). Returns each person's share in cents with largest-remainder rounding so shares add up to the pool, the per-hour rate, an explanation, warnin…

ParameterTypeDescription
card_fee_percentnumber | string | nullCard processing fee percent to deduct from card tips before splitting, e.g. 2.9. Default none.
card_tipsnumber | string | nullCredit card tips, e.g. 820.50. Optional; the card fee applies to these.
cash_tipsnumber | string | nullCash tips, e.g. 420. Optional.
currencystring | nullISO currency code, default USD, e.g. EUR, GBP, CAD.
labelstring | nullOptional title for the tip sheet, e.g. "Friday dinner, Oct 23" or "Week of Oct 19".
methodstring | nullHow to split: "hours" (by hours worked), "points" (points x hours), "role_percent" (fixed percent per role, e.g. 70/20/10, then by hours inside each role), or "equal". Default: chosen from the data (r…
role_percentagesPercent of the pool per role for method role_percent, e.g. {"server":70,"busser":20,"bartender":10} or "servers 70%, bussers 20%, bar 10%".
role_pointsPoints per role for the points method when people have no points of their own, e.g. {"server":10,"bartender":8,"busser":5}.
round_tostring | null"cent" (default) or "dollar" to pay whole dollars in cash; any coins left over are reported, not assigned.
shift_tipsWeek view: tips per shift, with each staff row's shift set, e.g. {"Mon":420,"Tue":385.5} or "Mon 420, Tue 385.50". Each shift is split on its own, then totals are added per person.
shiftsAlternative week view: one item per shift with its own tips and staff, e.g. [{"label":"Fri","total_tips":600,"staff":"Ana 5, Ben 5"},{"label":"Sat","total_tips":900,"staff":"Ana 6, Cara 6"}].
staffEveryone sharing the pool. Array of {name, role, hours, points, shift}, or one pasted block (one person per line, CSV with a header row is fine), e.g. [{"name":"Ana","role":"server","hours":6.5},{"nam…
total_tipsnumber | string | nullTotal tips to split (cash plus card), e.g. 1240.50 or "$1,240.50". Leave out when cash_tips and card_tips are given, or when shift_tips is used.

calculate_tip_out Calculate tip-out

Use this when the user wants a tip out calculator: servers or bartenders tip out a percent of their sales or tips to support staff (bussers, bartenders, hosts, food runners, barbacks). Takes each server's sales and/or tips and the tip-out rules (e.g. busser 3% of sales, bar 1.5% of sales), plus optional support staff with roles and hours. Returns each server's tip-out per role (rounded to the cent), what each server keeps, each support person's share by hours with largest-remainder rounding so it adds up to what was tipped out, warnings, and a printable PDF tip-out sheet with signature lines p…

ParameterTypeDescription
servers *Servers or bartenders who tip out, each with sales and/or tips. Array of {name, sales, tips}, or pasted lines, e.g. [{"name":"Ana","sales":1850,"tips":340}] or "Ana sales 1850 tips 340\nBen sales 1420…
tip_outs *Who gets what share, e.g. "busser 3% of sales, bartender 1.5% of sales, host 1% of sales" or [{"role":"busser","percent":3,"basis":"sales"}]. A plain 3 or "3%" means 3% to the support staff as one gro…
currencystring | nullISO currency code, default USD, e.g. EUR.
labelstring | nullOptional title for the tip-out sheet, e.g. "Saturday dinner".
support_staffOptional people receiving the tip-out, with role and hours, e.g. [{"name":"Kim","role":"busser","hours":6}]. Each role's tip-out is split among its people by hours (equal if no hours).
tip_out_basisstring | null"sales" or "tips": what a percent without "of sales" or "of tips" is taken from. Default: sales when every server has sales, else tips.