RP's picture
Oct 16, 2013
12396 views
Reputation: 8

Customer Tickets Sub Total

I am trying to get the sub total on the printed tickets. I had it working the all the sudden it just stoped printing it and I can't figure out why. here is my data on the ticket layout
Can anyone help me out?

Thanks

[LAYOUT]

-- General layout
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO} 
<L00>Server: {USER NAME}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Sub Total:|{PLAIN TOTAL}
<J10>Tax:|{TAX TOTAL}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>T H A N K   Y O U

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

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

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{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}

 

 

This is what I get on the print.

░░░░░░░░░░░░░░░ T i c k e t ░░░░░░░░░░░░░░

Date:10/16/2013                           

Time:11:19 AM                             

Table: B10                                

Ticket No:10                              

Server: Administrator                     

------------------------------------------

- 1 Sausage and Pepper               12.95

- 1 Parmigiana.Chicken Parm          11.95

- 1 Coffee                            1.25

- 1 Soft Drink                        1.75

- 1 Iced Tea                          1.75

- 1 Side Pasta Salad                  2.25

- 1 Side Salad                        2.25

- 1 Side Vegetable Medley             2.25

==========================================

Sub Total:                                

Tax:                                  2.38

Total:                               36.40

==========================================

            T H A N K   Y O U    

4 answers

RP's picture
RP
Oct 16, 2013
Reputation: 8

x

QMcKay's picture
QMcKay
Oct 17, 2013
Reputation: 17

My SubTotal line is as follows (it's calculated by subtracting the TAX from the TOTAL):

<J00>Subtotal:|[=F(TN('{TICKET TOTAL}')-TN('{TAX TOTAL}'))]

The whole section looks like this:

<EB>
[<J00>Total FREE:|{ORDER STATE TOTAL:Gift}]
<DB>
<J00>Subtotal:|[=F(TN('{TICKET TOTAL}')-TN('{TAX TOTAL}'))]
<J00>Taxes:|{TAX TOTAL}
<EB>
<J10>TOTAL:|($[=F(TN('{TICKET TOTAL}')/20)]) {TICKET TOTAL}
{PAYMENTS}
[<J00>Change:|{TICKET TAG:ChangeDue}]
<DB>

The Ticket tag you have under {PAYMENTS} how did you configure that tag in the ticket tag section of settings?

because I'm still not getting the payment amount or the change due to the customer on the reciept or on the screen calculations and I was thinking this might be the problem

 

QMcKay's picture
QMcKay
Oct 25, 2013
Reputation: 17

Tendered and ChangeDue ticket tags were configured using the following V2 tutorial:

http://forum2.sambapos.org/index.php/topic,218.msg1144.html#msg1144

RP's picture
RP
Oct 31, 2013
Reputation: 8

Yeah I found the fourm and found that post and it worked well I'm starting to understand it samba a little better now.

Thanks

We have already answers to
1030 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634