# Default Order State Ticket State

**URL:** <https://forum.sambapos.com/t/default-order-state-ticket-state/21612>\
**Category:** V5 Question\
**Created:** [February 13, 2020, 12:18am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612 "2020-02-13T00:18:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![antasp3136](https://forum.sambapos.com/user_avatar/forum.sambapos.com/antasp3136/32/52734_2.png) [@antasp3136](https://forum.sambapos.com/u/antasp3136)\
**Post date:** [February 13, 2020, 12:18am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/1 "2020-02-13T00:18:12Z")

</div>

I have a idea, might be good or bad… Has anyone on here ever created a flow chart of the default states that come built into samba?.. Ive been thinking about creating a flow chart for my system to better understand my different states but i cant remember now how the defaults were setup because ive changed them. This could help new comers understand the system better and where the rules and actions come into play for placing orders to tickets to closing etc.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [February 13, 2020, 12:28am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/2 "2020-02-13T00:28:31Z")

</div>

If using sql change connection string db name and will create a seperate fresh default db.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [February 13, 2020, 12:31am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/3 "2020-02-13T00:31:29Z")

</div>

Off the top of my head…

Ticket  
New - unpaid - bill requested - paid

Orders  
New - submitted

Entity  
Not so sure from memory.  
Think it’s available - new orders - bill requested - available

You say you changed default states, normally this isnt recommended as can cause issues if not 100%, typically you should try and use seperate custom states to avoid messing up default flow.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [February 13, 2020, 12:35am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/4 "2020-02-13T00:35:45Z")

</div>

PS, there is allot of info on the forum 😉  
About 8th result on search for default states:

> [@What does State mean?](https://forum.sambapos.com/t/what-does-state-mean/394):
>
> ###What is a State? State is a general SambaPOS feature that defines operational properties of things. SambaPOS have three different types of states. Entity State Ticket State Order State ###Updating States We change state of things by using these actions. Update Entity State Update Ticket State Update Order State There is no need to define states somewhere. State changing actions accepts any values. If you define states under Management \> Settings \> States you’ll be able to define color…

Looks like bill requested is just entity, ticket is locked at that step in the flow.

😉

---

<div class="post-metadata">

**Author:** ![antasp3136](https://forum.sambapos.com/user_avatar/forum.sambapos.com/antasp3136/32/52734_2.png) [@antasp3136](https://forum.sambapos.com/u/antasp3136)\
**Post date:** [February 13, 2020, 12:53am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/5 "2020-02-13T00:53:42Z")

</div>

Well I didn’t really change the default states just the default rules and flow for like holding a order before printing it to the kitchen and all that. To create a send to kitchen printer button. Just was thinking the visual of it might help people understand it better.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [February 13, 2020, 1:58am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/6 "2020-02-13T01:58:11Z")

</div>

What you really need to understand is what a State is. You define a State Name like Status. Then you can use different states of Status. It can be an Entity State or a Ticket State or an Order State. You set a State and then you can do something only if its in that State. So take the Ticket state Name of Status. You may want it to do something when an order is added to a ticket and the State of Status is New Orders but you need it to do something else if the State of Status is Unpaid. So if Order added to Ticket happens and Status is in Unpaid State then it will do something different.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [February 13, 2020, 1:58am UTC](https://forum.sambapos.com/t/default-order-state-ticket-state/21612/7 "2020-02-13T01:58:37Z")

</div>

You only define states in the States settings if you want to show it visually either on reports or on an Entity screen like Colors of tables etc.
