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}%)
{TAX AMOUNT}
[SERVICES]
{CALCULATION NAME} ([=F(TN(’{CALCULATION AMOUNT}’))])
{CALCULATION TOTAL}