DISCOUNT - Any Item - Ask Custom Amount


#1

This method allows for a Discount to be applied to Any Item, based on user input of an amount. It uses [?Request Input] notation to prompt the user to enter an amount, then applies the Discount using a Tag Order Action.

Operational Flow:


Order Tag - Custom Discount:


Automation Command - Discount Item Custom:


Actions - Tag Order & UnTag Order:


Action - Execute Automation Command: This Action available in v 4.1.42


:exclamation: All Rules require a Default Mapping (* * * *)

Rule1 - Discount Update:

Actions:

ExecAutomationCmd
CMDname: Discount Item Custom Zero
CMDvalue: [?Enter Discount Amount (0=remove)]

ExecAutomationCmd
CMDname: Discount Item Custom NOT Zero
CMDvalue: [?Enter Discount Amount (0=remove)]

The notation [?prompt for input] requires the leading Question Mark!

The text in CMDname is important, because we need to match it exactly in the next 2 Rules, in their respective Constraint lists.

Also, the text in CMDvalue should be the same for both Actions - this will prevent being prompted twice.


Rule2 - Discount Item NOT zero: (apply Order Tag Discount)

Rule3 - Discount Item zero: (remove Order Tag Discount)


Setting Up Custom Discounts
Special Discount
Help with Discounts
How to Print Price Tag using Order Tag on Receipt
Discount one item only from list
Discount in figure not in percentage
Database Import Tool: Pre-Built Solutions
Discount any Item and add a Reason!
Delete account transaction using automation command
Discount an item as soon as it is registered, but not to effect entire bill total
Do not merge specific items from menu in ticket
Sales tax issue
Below cost notification
DISCOUNTS - Compilation of Many Methods
DISCOUNT - Any Item - Ask Fixed Amount
#2

Hi @QMcKay

I can not seem to get this working. I am probably doing something wrong. :slight_smile: If you have a chance, can you please view video below and let me know if you see something wrong.

One thing, I was not sure is if I needed two ExecAutomationCmd’s. I created two because when I create RU Discount Item Custom Update rule, I was not able to use ExecAmtomationCmd twice.

Video Demo

SambaPOS version 4.1.44

Thanks in advance.


#3

You need 2 of the identical Action. Right-click on the left and choose Display All Values, then look at the very bottom of the list… you will see the command there, so you can add it to the right a second time.


Discount one item only from list
#4

he did not get that far… the problem seems to be that he cannot get the input prompt… thats what lost me. Regardless that, in the zip I sent the configuration is as you say, two identical actions…

Thanks!!!

G.


#5

Follow the Tutorial to the letter.  It’s important.  You need three Rules:

Update
Zero (the naming is important - it needs to be matched)
NOT Zero (the naming is important - it needs to be matched)

The notation [?prompt for input] requires the leading Question Mark!

The text in CMDname is important, because we need to match it exactly in the next 2 Rules, in their respective Constraint lists.

Also, the text in CMDvalue should be the same for both Actions - this will prevent being prompted twice.

I’ve updated the Rules above so you can use Copy/Paste.


#6

Hi

ive got the discount % working spot on, however the discount by value i cant get working ive checked over everything and cant find anything wrong. When i process it on the POS everything works until you select the discount value on the keyboard and press OK nothing happens the item is not discounted, any suggestions?

Rick


#7

Sounds like a problem with a rule. Did you remember to put default mapping for each rule?


#8

just checked and they all have default mapping


Tag Printing on Customer Receipt
#9

Add a message box action to display a notification of some sort to the Zero and NOT Zero Rules to ensure they are capturing the event properly.


#10

@QMcKay

Thanks for these great discount tutorials.

DISCOUNT - Any Item - Ask Custom Amount does not work if the Discount Amount is less then a $1.

How to I print the Discount Amount on the Customer Receipt. Right now it is only printing ***DISCOUNTED.

Best Regards,


#11

Can’t find Action type, execute automation command. Only have execute print job and execute script


#12

i stuck at the step of execute automation command as i can’t it under action type. any help please?


#13

What version of SambaPOS are you using?


#14

The Action Execute Automation Command became available in v4.1.42. You must be running that version or higher.


#15

This is what is available according to the Printer Template:

<J00>  {ORDER TAG QUANTITY} {ORDER TAG NAME}| {ORDER TAG PRICE}

Try {ORDER TAG PRICE}


#16

@QMcKay,

I tried {ORDER TAG PRICE}, but it just prints ***DISCOUNTED twice and it does not have Discount Amount after the word.

Can you possibly post your template?

Best Regards.


#17

I don’t use this type of discount; I only use Fixed Amounts which are a different set up.

@emre, I’m note sure why {ORDER TAG PRICE} doesn’t work - maybe because it’s dynamic in this case? Or maybe if we can get {ORDER TAG NOTE} as a Printer Template Tag, this may work?


#18

@emre,

Any chance you can chime in regarding printing “Discount Amount” on Customer Receipt?

Thanks,


#19

{ORDER TAG PRICE} does not show price when Add Tag Price to Order Price setting is enabled. Can it be the issue?


#20

I will check later if “Add Tag Price to Order Price” is enabled. Working from memory, I do not think it is.