Not as ticket I’d but using a set of program settings similar to the setup people have done for daily resetting ticket number but don’t reset the.
4 settings for the 2 ids and the 2 serials
Make automation to add as ticket tag using the both then increase with a clause/additional action to increase Id when serial is reset.
Thanks man. I can not follow your instructions because I newbie with SambaPOS
Finally I only made two tickets with this format: 0001-#######
I know it is not the correct manner.
If you can help me with a images tutorial, or video, wao, this will be nice for me. So may, I can help to spanish people from Peru here. In my country it is a requirement of the government.
You cannot use Number Generators for this because you want them to be reset at a certain threshold, which will cause duplicate Ticket Numbers, which is not allowed.
You also cannot use multiple Ticket Types within a single Ticket/Sale. You can only select 1 Ticket Type per Ticket/Sale at a time. You cannot combine them. FYI, the same also applies to Departments; youcan only select 1 Department at a time per Ticket/Sale.
For both of these reasons, using Ticket Types and Number Generators is not going to work for you.
You are best off leaving the Number Generators alone, and using your own generation pattern for creating your “Invoice” numbers. This is done by using Global Program Settings to store, increment, and reset your numbers.
There are many discussion about this on the forum; in general people have referred to them as a “Resetting Order Number” which is done at End of Workperiod. Using the Term “Order Number” is incorrect - it should be “Ticket Number” or “Invoice Number” or “Queue Number” since we are talking about a Ticket, not an Order (Orders are items on a Ticket).
There is a link to a “Tutorial” on the V2 Forum within this Topic that always gets referred …
Although that method works, it can cause some confusion due to syntax used in V2 vs. V3/4/5 so… I think it is probably about time someone re-wrote instructions for that setup. Give me some time to do so…
Suffice it to say, this is the Action you will be using:
Thanks man, for taking the time to resolve my concern.
At this point I am reviewing the tutorial created. If I have additional questions I will post them.
Friend @QMcKay,
Your tutorial was nice to understand rules and action mechanisms, and other concepts.
I could configure Program settings, action and rules. However, I can not define ticket type (all invoices are type A).
So I has been created a new entity type.
With some entities: Type1, Type2
I checked some topics to get custom data about our entities. I made a additional custom constraint.
How can I define a custom constraint to know selected value?.
@QMcKay,
Nice, now I can make a beautiful template.
I was studying this: Printer Template Formatting Tags
There is manner to make a type line like title with a specified character?
Example:
My type ticket can has different names, example: “Type2”, “Large name”, etc.
I would like that text always is center, and blank space is completed with characters(- or =)
There is no Tag that will do that, but you could build something with JScript methods like .join() and .slice() to prefix and suffix a centered value to a certain length (character count of your printer).
padLength: This should be same that your line character count printer. I don´t know if is possible get automatically this information. In my case 48(Epson TMT20II).
So very nice to see someone on the forum with some compatancy for a change not needing to have every little thing explained and shown
That looks like a hand script.
Could you posibly paste the script for others to use