Custom multiple invoice number

<[LAYOUT] -- General layout
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME} -
<T>TicketS

<T>TicketN

<J00>NCF:[=F('{TICKET TAG:VFNUMBER}','00000000')] <J00>NCF:[=F('{TICKET TAG:CFNUMBER}','00000000')] <J00>GOB:[=F('{TICKET TAG:GOBNUMBER}','00000000')] <J00>RES:[=F('{TICKET TAG:RESNUMBER}','00000000')]

{ENTITIES} <L00>Ticket No:{TICKET NO} <F>- {ORDERS} <F>= <EB> {DISCOUNTS} [<J10>Total Gift:|{ORDER STATE TOTAL:Gift}] {SERVICES} <J10>Total:|{TICKET TOTAL} {PAYMENTS} <DB> <F>= <C10>T H A N K Y O U

[DISCOUNTS] <J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES] <J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS] <J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS] -- Default format for orders <J00>- {QUANTITY} {NAME}|{TOTAL PRICE} {ORDER TAGS}

[ORDERS:Gift] -- Format for gifted orders <J00>- {QUANTITY} {NAME}|**GIFT** {ORDER TAGS}

[ORDERS:Void] -- Nothing will print for void lines

[ORDER TAGS] -- Format for order tags <J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Table] -- Table entity format <L00>Table: {ENTITY NAME}

[ENTITIES:Customer] -- Customer entity format <J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

there is it ty for helping me

What do the unused tags show as? Blank or 00000000?

Try this;
[NCF:[=F(’{TICKET TAG:VFNUMBER}’,β€˜00000000’)]]
[NCF:[=F(’{TICKET TAG:CFNUMBER}’,β€˜00000000’)]]
[GOB:[=F(’{TICKET TAG:GOBNUMBER}’,β€˜00000000’)]]
[RES:[=F(’{TICKET TAG:RESNUMBER}’,β€˜00000000’)]]

1 Like

unused tags dont must show it

Sorry, can you try rewording that, not sure how to take it :stuck_out_tongue:

thanks you very much now is working ur a GENIUS!!! AHAHAHAHAH :grinning:

now will continue with ticket implementation lets see if i can send tickets to bar kitchen and give a ticket to a customer

Is that giving you all 4 lines and empty space?
Forgot to highlight.
Try this if so;

[<J00>NCF:[=F('{TICKET TAG:VFNUMBER}','00000000')]]
[<J00>NCF:[=F('{TICKET TAG:CFNUMBER}','00000000')]]
[<J00>GOB:[=F('{TICKET TAG:GOBNUMBER}','00000000')]]
[<J00>RES:[=F('{TICKET TAG:RESNUMBER}','00000000')]]

Which should close the gap and only show used lines

lol i didnt see it is true gave me four lines lmao

[<J00>A0100100101:[=F('{TICKET TAG:VFNUMBER}','00000000')]] [<J00>A0100100102:[=F('{TICKET TAG:CFNUMBER}','00000000')]] [<J00>GOB:[=F('{TICKET TAG:GOBNUMBER}','00000000')]] [<J00>RES:[=F('{TICKET TAG:RESNUMBER}','00000000')]]

U wont believe this when i put these numbers which is numbers i will use dont work but if i put this

[<J00>ncfvf:[=F('{TICKET TAG:VFNUMBER}','00000000')]] [<J00>ncfcf:[=F('{TICKET TAG:CFNUMBER}','00000000')]] [<J00>GOB:[=F('{TICKET TAG:GOBNUMBER}','00000000')]] [<J00>RES:[=F('{TICKET TAG:RESNUMBER}','00000000')]]
is working lol

Hazard a guess the [] is looking for numbers maybe so having numbers in the line outside the tag makes it think there is a value.

Are the numbers important?
You could use a ternary expression…

[= '{TICKET TAG:VFNUMBER}' == '' ? '' : '<J00>A0100100101:[=F('{TICKET TAG:VFNUMBER}','00000000')]' ]

or

[<J00>[= '{TICKET TAG:VFNUMBER}' == '' ? '' : 'A0100100101:' ] [=F('{TICKET TAG:VFNUMBER}','00000000')]]

3 Likes

these numbers are the one gaved for the goverment hehe so are the most importang thing in all this

lol ur a genius u know about this pos hahahah
ty very much now im having A010010010100000005 this is whats i was looking for
i will preparea tutorial cus i know people of latin america using sambapos dont use comprobante fiscal number thinking they cant do it . i could make it with ur help ty very much now yes will continue configuring more stuff to make it work everything.

4 Likes

this work very good but have to do some changes to work good :slightly_smiling: i left screen so other one can be look at this

if u look at my las screenshot can u look at left 4 buttons thst they delete the tag number i wanted but can i do the same as automation command?

You should be able to use variables so you only need one rule for all four tags.
Tag name would be command value and would need to change the tags in templates and likewise for program setting names.
Just an option :stuck_out_tongue:

Sorry, dont understand what your asking?

i want to group the button vfnumber cfnumber and do the same thats i did with automation command these buttons are on left of my screen look the picture thats i send

What do the two sets of commands do? tag the ticket and?

look