Send Orders to Printer Before Cashout

I am setting up a self service restaurant. I would like an optional button that allows you to send the order to the printer and lock the items so the cancel button wont take them out (only way to take them out would be with a void button).

I tried to setup a button that executes print orders to kitchen and change orders state to submitted but that wasn’t working right because I could still cancel the orders even after the order state changed to submitted.

My reasoning for this is that I want the waitress to be able to send the order while she waits for the customer to pull out his cash.

Add a constraint to the cancel orders button that order state not equals submitted. That way when you press the button to print orders to kitchen and change order state to submitted the cancel orders button wont work