Hi Guys,
Loving SambaPOS v4 and successfully deployed in a five terminal restaurant with split capabilities for upper and lower floors.
We have been using Order Tags for the addition of items like Soy Milk (or Ice-cream) and also Skim Milk. Soy Milk is charged at $0.50 and Skim is a free alteration.
When the customer receives their bill they see 0.50 listed for Soy Milk and they see 0.00 listed for Skim Milk.
Is there a simple way to hide the 0.00 item pricing in a similar fashion as to php has an if statement?
Thanks in advance
sukasem
February 14, 2016, 10:13pm
2
Wrap order tag price with square bucket
[{ORDER TAG PRICE}]
Hey sukasem thanks very much
I currently have
[=F(TN(’{ORDER TAG PRICE}’)*TN(’{QUANTITY}’),’#,##0 .00’)]
Ideally If I can have this not show for 0 value items and round to 2 decimal places for others - that would be great
RickH
February 15, 2016, 5:17am
4
Paste your template here do we can see, it shouldnt pront anything in square unless it has a value
You may need to just square bracket the order tag price bit and not the whole expression, we need to see the whole tickrt s
[LAYOUT]
-- General layout
<C00>COMPANY
{ENTITIES}
<L00>Trans#: {TICKET NO} Serv: {USER NAME}
<L00>{TICKET DATE} {TIME} # Cust:{TICKET TAG:Guest Count}
<F>=
<L00> Quan Descript Cost
<F>=
{ORDERS}
<C00>
<F>=
<C00>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
{TAXES}
{PAYMENTS}
<R21>TOTAL : ${REMAINING TOTAL}
<C00>
<C00>All Prices Include GST
[FOOD PRICE]
[TAXES]
<R00>{TAX NAME} ${TAX AMOUNT}
<C00>
<R00>==============
<C00>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
<R21>{PAYMENT NAME} : ${PAYMENT AMOUNT}
<C00>
[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} | [=F(TN('{ORDER TAG PRICE}')*TN('{QUANTITY}'),'#,##0.00')]
[ORDER TAGS:Number of Glasses]
-- Leave empty to hide Number of Glasses Modifier
[ORDER TAGS:Seat]
-- Leave empty to hide Seat Position Modifier
[ORDER TAGS:Drinks With]
-- Leave empty to hide Drinks Add (No Cost) Modifier
<J00> {ORDER TAG NAME} | [=F(TN('{ORDER TAG PRICE}')*TN('{QUANTITY}'),'#,##0.00')]
[ORDER TAGS:Food With]
-- Leave empty to hide Add (No Cost) Modifier
<J00> {ORDER TAG NAME} | [=F(TN('{ORDER TAG PRICE}')*TN('{QUANTITY}'),'#,##0.00')]
[ORDER TAGS:Food W/out]
-- Leave empty to hide Food Without Modifier
[ORDER TAGS:Drinks W/out]
-- Leave empty to hide Drinks Without Modifier
[ORDER TAGS:Steak Temperature]
-- Leave empty to hide Steak Temperature Modifier
[ORDER TAGS:Commands]
-- Leave empty to hide Modifier ie. Waiter to Explain
[ENTITIES:Table]
-- Table entity format
<C11>Table #{ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
Jesse
February 15, 2016, 3:14pm
6
Except he set a format expression so he should wrap that entire line like this
[<J00> {ORDER TAG NAME} | [=F(TN('{ORDER TAG PRICE}')*TN('{QUANTITY}'),'#,##0.00')]]
Edit ugh can’t get the code format to work on my phone. Can someone edit and format that line so it shows code
1 Like
QMcKay
February 16, 2016, 5:11pm
7
That feature is V5 only. You cannot specify which portion of the line is to be checked in V4.
Jesse:
Except he set a format expression so he should wrap that entire line like this
[<J00> {ORDER TAG NAME} | [=F(TN('{ORDER TAG PRICE}')*TN('{QUANTITY}'),'#,##0.00')]]
I will be surprised if that works. It has no idea if it is supposed to check the Quantity or the Price. Plus, the format function might override it as well. If it does work, great, I stand corrected.
I did not respond to this question because I do not think this can be done in the way you want using V4, but it would be easy to do in V5 due to more advanced expression support.
2 Likes
You guys are both awesome!
The square brackets around the whole statement did work in v4 and managed to hide that whole line
2 Likes
QMcKay
February 17, 2016, 2:01pm
9
And so I stand corrected. Excellent news. I guess it does know to check the Price rather than Quantity.
1 Like