The order, the payment, and the invoice are one record
The floor sends a dish; the kitchen moves it from sent to preparing to ready; the till settles the same order. Every edit and invoice send is kept on it. End of day starts from the system.
How it works