# Work Period - Ticket Count per State

**URL:** <https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051>\
**Category:** V5 Question\
**Created:** [September 12, 2015, 10:53pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051 "2015-09-12T22:53:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 12, 2015, 10:53pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/1 "2015-09-12T22:53:26Z")

</div>

I’m using the [Simple Reservation Tutorial](http://forum.sambapos.com/t/simple-reservation-example/284) for quotes/estimates for a retail setup and I cant figure out why Ticket Counts per State is Unpaid?

![](https://forum.sambapos.com/uploads/default/original/2X/5/51f2552732220e943d1db83e99e645d60a79e393.jpg)

---

<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:** [September 12, 2015, 10:54pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/2 "2015-09-12T22:54:36Z")

</div>

Did you check for those 3 unpaid tickets?

---

<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:** [September 13, 2015, 10:26am UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/3 "2015-09-13T10:26:33Z")

</div>

Looking at the report there are only 3tickets in the work period.  
I would hazard a guess you have made a mistake and messed with you default ticket closing/payment

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 14, 2015, 10:54am UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/4 "2015-09-14T10:54:35Z")

</div>

Yes I would have edited the Ticket/closing rule as when I imported the Simple reservation It wouldn’t work. I’ve started over fresh with another database. Fresh Install and Imported the Reservations 2 from above tutorial.When Adding an item I get this.

![](https://forum.sambapos.com/uploads/default/original/2X/3/37efaa21622224c73cfe0c4a2295a15b6da07812.jpg)

Here is the default rule ( I didn’t change anything ).

![](https://forum.sambapos.com/uploads/default/original/2X/c/cc38a82ec1fd7c3feb2a4de56f048d6eeba2a056.jpg)

Original problem.

 ![](https://forum.sambapos.com/uploads/default/original/2X/5/5a4afda3387fabefe2dde8e94f8fd1107cca0345.jpg)

---

<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:** [September 14, 2015, 12:07pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/5 "2015-09-14T12:07:45Z")

</div>

Something defiantly not right there…  
I am not familiar with the reservation import however pretty sure that defiantly isn’t right.  
Update ticket status usually have two ‘carried’ fields  
 ![](https://forum.sambapos.com/uploads/default/original/2X/7/799582a81bb401262a411064d5e7c244a8edcf5c.PNG)  
Have you altered actions too?

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 14, 2015, 12:39pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/6 "2015-09-14T12:39:34Z")

</div>

No Haven’t altered anything. Fresh database added 2 products and imported the Reservation. Yes I noticed I don’t have a Current status field. To Get it to work in my other database I changed Unpaid#Current Status=New Orders to Unpaid I removed the #Current Status=New Orders. It worked then but my Work Period report didn’t look right.

---

<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:** [September 14, 2015, 12:43pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/7 "2015-09-14T12:43:55Z")

</div>

The two fields are important as without current status any ticket close will set any ticket to unpaid which is probably why your work period doesnt show as having any paid tickets as there is another rule which sets status to paid/closed once balance if paid.  
IOts ticket payment check and is a before ticket closing event.  
This will fire if ticket paid but that rule there will undo the status=paid from that rule hence no tickets are actually being marked as paid.

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 14, 2015, 2:20pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/8 "2015-09-14T14:20:13Z")

</div>

When I manually follow the tutorial it works as it should. Must be a problem with the Import file.

---

<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:** [September 14, 2015, 2:26pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/9 "2015-09-14T14:26:38Z")

</div>

The import file is rather old. Its always best to use the tutorials. We provide files sometimes because people really want them but I will be honest the best method is to follow written tutorials when you can. You get several benefits from doing the tutorials including learning various aspects about how it actually works and getting familiar with the structure.

I wouldnt use any of the older import files to be honest. V5 has a great new tool that you will probably hear more of in the future: Configuration Tasks.

---

<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:** [September 14, 2015, 2:42pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/10 "2015-09-14T14:42:22Z")

</div>

> [@Jesse](#):
>
> I wouldnt use any of the older import files to be honest. V5 has a great new tool that you will probably hear more of in the future: Configuration Tasks.

Even with configuration tasks you miss-out on valuable learning so if you have time always try and implement the config from scratch following a tutorial, is the best way to learn and then when you have a good grasp of Samba you can just flick through a tutorial and see what is being done and build your own version of it tweeking to your needs.  
It can be incredibly satisfying to recreate a feature your own way from scratch, especially if you documents it and share your method and see other people getting ideas from your method 🙂

---

<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:** [September 14, 2015, 4:44pm UTC](https://forum.sambapos.com/t/work-period-ticket-count-per-state/7051/11 "2015-09-14T16:44:20Z")

</div>

I agree tutorials should be the main source. but there is that resilient stubborn crowd that really just wants it done for them. Configuration tasks is a nice alternative for that.
