[SOLVED]Number Generator From 1-99 [Queue number]


#1

Hi all!

I would like to ask yours help, in the following.

I need a number generator , from 1-99 for every ticket.
If it is possible 1is folliwing by 2 2 is 3 , 3is 4, etc 99 is 1.

But it should not be ticket number. We have a display which can show these numbers and we would like to add the order number automaticly.

Im very new with Samba but within 2 days i was able to install and config almost everything.

Regards

Balazs


(Self Service )Customer Order food and settle payment at cashier
#2

Ticket tag?
Make a program setting and a flow to add one each time ticket created and set ticket tag with that value.


#3

Is it a queue number? This is a V2 tutorial but explains the idea fine.

https://forum2.sambapos.org/index.php?topic=97.msg671#msg671


#4

Yes this is a queue number.
This tutorial is awsome. i did it , more or less it is okay, but we have only 2 digit, sometimes we have more than 100 order per a day. i try to figure out a rule for reset the number i didnt familier with sambapos right now.
Im trying to learn as much as possible within 2 days.


#5

Show your rule you have made where number is increased.

You will just set to reset once 99


#6

this is where i give the number to the ticket.
i followed the v2 tutorial.


#7

OK, the increase counter action is a program setting update right?


#8

Yes! As i know :slight_smile:

Action for Increasing the counter
Create a new action, Name it as “Increase daily counter” and the Action Type will be "Update Program Setting"
Setting Name will be ORDERNUMBER
Setting Value is 1
Update Type is Increase
IsLocal = False


#9

You want a third action in that rule to change to 0.
As the constraints will be worked out at begining you would want to reset on 98 rather than 99.

Fields would be;
Setting Name will be ORDERNUMBER
Setting Value is 0
Update Type is Update
IsLocal = False

Add to that rule.
On the action constraint put;

‘{SETTING:ORDERNUMBER}’ == ‘98’

So on ticket created where value is 98 to rule will;

  • Increase to 99
  • Add to ticket
  • Reset to 0

#10

Thank you for your help!

This is awsome!
I have some more question about the program , and the settle screen , should i make a new topic for them?

Regards

Balazs


#11

Yes, make new topic, is better for all users when searching a question.


#12

Please do add default mapping for both the rules in the tutorial.
regards
anil


#13

Hello can you send me this method with screen shots