In this tutorial I’ll show you how to create a Ticket Close button that asks if order is ready to print to kitchen.
We’ll start by creating Close & Print Command button. I’ll create a new Automation Command for this.
We’ll map this command button to appear Under Ticket.
After saving button we should see two close buttons under ticket.
Of course we don’t want to see these two buttons. After implementing
Print & Closebutton function we’ll configure how they’ll appear.
We want to display a confirmation when Print & Close button clicked. We’ll use Ask Question action for that. Create a new Action and select Ask Question as Action Type.
Important: In SambaPOS clicking buttons triggers
Automation Command Executedrule. For buttons that are visible on the screen we need to create new Automation Command like we did forPrint & Close button. For commands these don’t appear as a button likeHandle Print Kitchen Questioncommand there is no need to configure an Automation Command.
Now we’ll create a rule that handles Handle Print Kitchen Question command.
Handle Print Kitchen Question won’t appear in drop down list as we didn’t configure a button for it. You can just type or paste command name in constraint. This rule executes Close Ticket action if operator selects Yes option.
We programmed how Ask Question action executes Close Ticket action when Operator clicks Yes button. On next step we’ll create another rule for Close & Print button that executes Ask Question action.
Ask Print to Kitchen button is the button that appears under ticket with Print & Close label. When operator clicks that button…
- SambaPOS Executes Ask Print Kitchen Question action.
- That Displays the question with
Yes&Nobuttons. - Clicking Yes triggers
Close Ticketaction. - Clicking No does nothing. Just returns back to ticket.
On this step we can test how Print & Close button works. Clicking Close & Print ticket should display question. Clicking Yes should close ticket and clicking No should stay on ticket.
Finally we’ll configure how Close and Close & Print buttons appears on ticket. We’ll show Close Ticket button by default. Close & Print button will appear when there are new order lines in ticket.
When there are new order lines in ticket, Ticket State becomes New Orders so we can configure Close & Print button to appear when ticket state becomes New Orders. Edit Ask Print to Kitchen command button and configure button mapping edit Visible States value.
Now we can test how Print & Close button works. When new ticket we won’t see this button but when we add orders this button should appear.
On final step we’ll configure Close button to appear when there are no new order lines in ticket. In other words we’ll show Close Button if Ticket state is one of New,Submitted,Paid,UnPaid states.
If you’ve configured additional ticket states you should also include them here.
Now depending on ticket state you should see either Close or Close & Print button under ticket.












