Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Table plan
Table plan
Merge tables -> Merge mode
Switch to list view -> Table list
Is table free?
Yes -> Free
No -> Occupied
#No and booking within 3hrs ->
Select tables
Done -> Save order booking selected
Table list
Switch to plan view -> Table plan
Merge mode
#save changes
Merge -> Table plan
Select first table -> Is selected table merged?
Is selected table merged?
yes -> Merge group selected first
no -> Single table selected first
Merge group selected first
Select another table -> Multiple tables selected
Deselect -> Merge mode
Unmerge single table -> Reduced merge group
Merge group selected
Reduced merge group
Single table selected first
Select another table -> Multiple tables selected
Deselect -> Merge mode
Multiple tables selected
Deselct item -> Reduced selection
Selection
Reduced selection
Table
Free
Select -> Free table details
Free table has booking within 3h?*
yes -> Free with booking
no -> Free without booking
Free with booking
Table details -> Booked table details
Free without booking
Occupied
Pay -> Paid
Customer opens web order -> Web order active
Select -> Occupied table details
Occupied table has booking within 3h?*
yes -> Occupied with booking
no -> Occupied without booking
Occupied with booking
Table details -> Booked table details
Occupied without booking
Web order active
Customer inititalise split check -> Attention
Customer pays for order -> Paid
Customer closes web order -> Occupied
Attention
Waiter changes the order -> Web order active
Cusromer changes the order -> Web order active
Order paid -> Paid
Paid
Auto-clear after 10min -> Is table free?
Table details
Close -> Table plan
Open order for table -> Save order table selected
Booked table details
Tap upcoming booking -> Save order booking selected
Free table details
Occupied table details
Save order dialog
Save -> Cart
Select tables -> Select tables
Save order
Save order table selected
#Order name defaults to Walk-in
Save order booking selected
Save -> Order with booking
#Booking reference set, table selected, covers prepopulated, and ResDiary status set to Fully Seated
#Order name defaults to booking
Cart
Table plan -> Table plan
Cart empty
Save -> Save order
Order with table
Save -> Cart empty
Order with booking
Save -> Cart empty
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "#ff643c"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.