DISCOUNT - Any Item - Ask Custom Amount


#21

@emre,

“Add Tag Price to Order Price” is checked. Will the discount work if I uncheck “Add Tag Price to Order Price”?

Thank you


#22

Hi @QMcKay,
You may want to consolidate your discount amount and percent to only one button.
Here What I change:




#23

I also have Ask Parameter masking too. But need some expert to fine tune it. That took me an hour to do regex. :smile:

BTW, it is not fully tested yet. I just finished it.

Now, How to get TOTAL ORDER TAG DISCOUNTS on ticket?


#24

Sure. As you manually enter discount amount it should work fine.


#25

Hmm… it looks like we don’t have something to get order tag prices total. :slight_smile: I’ll check that.

Edit: I’ve added {ORDER TAG TOTAL:X} tag to calculate summary of quantity * price. X will be Order Tag Name.


#26

@emre,

Can you please modify DISCOUNT - Any Item -Ask Custom Amount by @QMcKay to reflect this new option.

Thank you very much.


#27

If you use the same naming convention as in the original Tutorial posted at the top of this thread, you would add the following line to your Printer Template to show the Total Discount

{ORDER TAG TOTAL:Discount Custom}

This is because the Order Tag Name is Discount Custom


#28

@QMcKay

Thank you for your fast reply. It does not seem to work. I applied a Discount and when I print Customer Receipt, I get the following.

Attached is Customer Receipt.

[LAYOUT]
-- General layout
<L00>
<L00>
<L00>
<T>Customer Receipt
<L00>

<L00>
<C10>Table No: {ENTITY NAME:Table}
<C10>Ticket No: {TICKET NO}
<C10>Server: {USER NAME}
<L10>{ENTITY NAME:Customer}
<DB>
<L00>Date: {TICKET DATE}
<L00>Time: {TIME}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Sub-Total:|{PLAIN TOTAL}
<J00>Sales Tax:|{TAX TOTAL}
<J00>TOTAL:|{TICKET TOTAL}
<J00>TOTAL DISCOUNT:|{ORDER TAG TOTAL:Discount Custom}
<J00>TOTAL DISCOUNT:|{ORDER TAG TOTAL:Discount Custom Percent}
{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}

#29

EDIT: Actually {ORDER TAG TOTAL: Discount Custom} should be all you need… just take out {ORDER TAG TOTAL:Discount Custom Percent}

Where were you getting {ORDER TAG TOTAL:Discount Custom Percent}
from? I do not see in the tutorial anywhere to make a {ORDER TAG TOTAL:Discount Custom Percent}
tag.


#30

@kendash,

I have two discounts.

  1. Discount Custom = Custom Dollars Off
  2. Discount Custom Percent = Custom Percent Off

I think error seems to be related with printing negative numbers.

Thanks,


#31

Why do you have two discounts? One is auto applied? I just need an understanding of what you are doing. Can you show the screen with items on it… after discounts before you print receipt?

Your not taking an item into negative price are you?


#32

Hi @kendash

I have two discounts to apply discounts based on Dollars Off and Percent Off.

Product: Shrimp Dinner $10.00

E.G.
Discount 1, I can discount Shrimp Dinner $10.00 based on Custom Dollars Off. $3 Off = Shrimp Dinner $7
Discount 2, I can discount this dinner based on Custom Percent Off. 20% Off = Shrimp Dinner $8

I only use one Discount per product and I do not Discount products to a negative value.

Thank you,


#33

Ok thank you that is more clear. I am recreating some of the discounts to see if i can reproduce the behavior.

I just built the Custom Discount exactly as it is listed in this tutorial and used the following insertion into my Template:

[LAYOUT]

-- General layout

<C100>MOORE'S DAIRY CREME

<C10>OWNER JESSE AND MELISSA PARKER

<C10>( xxx ) xxx-xxxx

<J00>Ticket# {TICKET NO}   |OP# {USER NAME}   |TE# 1   |TR# {TICKET ID}

{ENTITIES}

[<C00>Type:{TICKET TAG:SG}]

<C00>

{ORDERS}

<F>-

<EB>



[<J10>|Total Item Discounts|{ORDER TAG TOTAL:Discount Custom}]

[<J10>|Subtotal|     {PLAIN TOTAL}]

<DB>

[<J10>Total Gift|     {ORDER STATE TOTAL:Gift}]

{TAXES}

[<J10>|Tip Amount|     {CALCULATION TOTAL:Tips}]

<EB>

[<J10>|Total|     {TICKET TOTAL}]

<DB>

{DISCOUNTS}

[<L00>CC Info  {TICKET TAG:CCtype} ({TICKET TAG:CCdigits})]

<EB>

{PAYMENTS}

<DB>

[<J10>|Change Due|     {CHANGE TOTAL}]

<C10># ITEMS SOLD {TICKET QUANTITY SUM}

<ec>

<QR>http://www.mooresdairycreme.com

<BAR>{TICKET ID}

<el>



[DISCOUNTS]

[<J00>Tip|{CALCULATION TOTAL}]



[PAYMENTS] 

<J10>| {TICKET TAG:CCtype} {PAYMENT NAME} Tend|     {TENDERED TOTAL}



[ORDERS]

<J00> {QUANTITY} {NAME}|{TOTAL AMOUNT}

{ORDER TAGS}



[ORDERS:Gift]

<J00>- {QUANTITY} {NAME}|**GIFT**

{ORDER TAGS}



[ORDERS:Void]

<J00> {QUANTITY} {NAME}|{TOTAL AMOUNT}  |**VOID**



[ORDER TAGS]

<J00> -{ORDER TAG NAME} [x{ORDER TAG QUANTITY}]





[TAXES]

<J10>|{TAX NAME}  [=F(TN('{TAX RATE}'))] %|  |     {TAX AMOUNT}

It Produced the following print:

           MOORE'S DAIRY CREME            
      OWNER JESSE AND MELISSA PARKER      
            ( xxx ) xxx-xxxx           
Ticket# 10    OP# Admin   TE# 1   TR# 2529
               Type:Dine In               
                                          
 1 Burrito                            3.50
 **** DISCOUNTED
 1 Catfish Dinner                     6.95
 **** DISCOUNTED
------------------------------------------
            Total Item Discounts     -1.50
                        Subtotal     10.45
                  Tax 1  6.50 %       0.68
                  Tax 2  1.75 %       0.18
                           Total     11.31
                       Cash Tend     20.00
                      Change Due      8.69
              # ITEMS SOLD 2

#34

Maybe it is something with your

I will recreate that one as well… did you create it exactly like tutorial or did you modify it?


#35

I will test it tonight after dinner.

It is created exactly as the tutorial.

Question:

  1. Do I need a line for each Discount on Printer Template?

#36

Yes, it will show it in the same place on Ticket you just have to list them both to define it. If it does not find a discount for one it just skips it and does not print it.


#37

Great. Thank you. I will try it tonight.


#38

look at my template again i added brackets you need to do same.

[<J10>|Total Item Discounts|{ORDER TAG TOTAL:Discount Custom}]

If you don’t it might print Total Item Discounts 0 . Adding brackets like that makes it look for a value to print it… If it does not find a value it will not print it at all.

BTW the system in this tutorial will let you discount an item to a negative… I am trying to figure out a constraint to prevent that. I think we can maybe add constraint that checks Order Price first and constrain it to only allow discount a specific max amount off that number.


#39

You may have figured this out already… but it does work you just have to put a 0 before the . so for .50 you type 0.50


#40

Thanks for $0.50 tip. I did not figure it out, but I stopped using discounts less then $1.

Constraints are a great idea. :smile: