Printing receipt template help

First off… this is a splendid product. I have enjoyed learning how to use SambaPOS greatly. However, as smart as I am, Ticket Formatting is causing me to go cross-eyed in frustration. I can to a lot of things computer related, but programming is one thing that I just cannot focus on. So I am here asking for help.

I need a basic ticket to hand to a guest that has the items, any modifiers for pricing, a sub total, a tax total, then a total with tax and finally a place to write the tip and a final spot for the guest to write a total. It would look something like this…

Hamburger w/ Fries 6.00

  • Add Bacon 1.00

Sub Total 7.00
Sales Tax .49
Total 7.49

Tip: ____________

Total: ____________

I have been toying with this for days and I cannot even get this to do anything more than what it does with the templates that are pre-installed with the POS. What is there is GREAT for a Kitchen TIcket, but not the one you hand to the guest. Any and all help will be appreciated!

Thank you in advance.

This is easy :wink:
Post what you have so far…

The <L00> part at beginning of line defines the alignment and size.
You use the tags listed on the right (click template help at bottom if its showing preview) to insert ticket values.

Post what you have first.

My head hurts, but I have made great strides in this, Now I need some help with a couple of things.,

The part that prints the subtotal is including a tip that is entered into the system before payment. How would I go about making sure that just the actual subtotal of the items prints there without the tip added,

Also, I would like the slip to print the entered tip and the new total in the appropriate spots where I have the blank lines for manual entry of the tip and new total.

Lastly, is there a way to track tips by server or user ID? That way when I close the system for the day, I know how much money to give to the appropriate server without having to tally up all the totals at the end of the day.

Here is the ticket text I have so far…

[LAYOUT]
– General layout
29,40,76,6,0,48,69,32,32,1,1
|

Big Daddy D’s

Ticket #{TICKET NO}
{TICKET DATE} {TICKET TIME}
Server: {USER NAME}

[NOTE: {NOTE}]

-
{ORDERS}
=

{DISCOUNTS}
[Total FREE:|{ORDER STATE TOTAL:Gift}]
Subtotal:|[=F(TN(’{TICKET TOTAL}’)-TN(’{TAX TOTAL}’))]

{TAXES}

{SERVICES}

TOTAL:|{TICKET TOTAL}

Tip Amount: ___________

Total Amount: ___________


X: _______________________________________
Cardholder agrees to pay the above amount
in accordance to the card issuer agreement

-
{PAYMENTS}
[CC Info: {TICKET TAG:CCtype} ({TICKET TAG:CCdigits})]
[CHANGE:|[=F(TN(’{CHANGE TOTAL}’))]]
[=
{TICKET TAG:GCN}|Balance: [=F(TN(’{TICKET TAG:GCB}’))]]
*
* THANK YOU! See you soon! *
*
Like us on Facebook and follow us on
Twitter for special offers!

Email us at BIGDADDYDS@GMAIL with your
comments and suggestions.

[DISCOUNTS]
{CALCULATION NAME} {CALCULATION AMOUNT}|{CALCULATION TOTAL}

[PAYMENTS]
{PAYMENT NAME}: | {TENDERED}

[ORDERS]
– Default format for orders
{QUANTITY} {NAME}|@${PRICE} {TOTAL AMOUNT}
{ORDER TAGS}

[ORDERS:Gift]
– Format for gifted orders
{QUANTITY} {NAME}|FREE
{ORDER TAGS}

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

[ORDER TAGS]
– Format for order tags
{ORDER TAG QUANTITY} {ORDER TAG NAME}| {ORDER TAG PRICE}

[ENTITIES:Table]
– Table entity format
Table: {ENTITY NAME}

[ENTITIES:Customer]
– Customer entity format
Cust: {ENTITY NAME}|Bal: {ENTITY BALANCE}

[TAXES]
{TAX NAME} ({TAX RATE}%):expressionless: {TAX AMOUNT}

[SERVICES]
{CALCULATION NAME} ([=F(TN(’{CALCULATION AMOUNT}’))]):expressionless: {CALCULATION TOTAL}

LOL whats a emoji doing in your template :stuck_out_tongue:

When pasting your template select all the code and click the </> button on the post toolbar, this highlights it as code and prevents stripping of some of it and things like that…

Check the ticket template help.
{PLAIN TOTAL} is a subtotal not sure if its before/after tax and calculations.

You subtotal at the moment is ticket total - tax total so you could just follow that and minus discount aswell.

Subtotal:| [=F(TN('{TICKET TOTAL}')-TN('{TAX TOTAL}')-TN('{CALCULATION TOTAL:Tip'))]

You would need to change Tip to whatever you called the calculation if not Tip

1 Like

Worked like a charm!

Thank you