SambaPOS Forum

English Boards => Support => Topic started by: CafeCuppio on March 22, 2012, 04:23:28 am

Title: Discount Reason & Value
Post by: CafeCuppio on March 22, 2012, 04:23:28 am
Hi

It is possible to add preset Discount Reasons & % Values.

I have customer loyalty programs where I need it.

E.G.
Premium members = 10% discount when more the 150.00 spend
Telecom Thursday = 7.5% discount to all Telecom Employees eating in

Thanks
Title: Re: Discount Reason & Value
Post by: emre on March 22, 2012, 05:01:46 am
That can be achieved with action/rule configuration. Basically what you need to do is creating a ticket tag named "Discount" and add your discount reasons as tag values. You'll also create rules and actions for automatically adding discount values when you choose a discount tag value. You can print tag values on bill for displaying discount reasons too. If it helps I can tell step by step details.
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 22, 2012, 05:13:33 am
I thought that it would be possible with actions/rules.... Let me give it a shot, if I get stuck I will ask for some direction, then I can also learn a bit more about these actions/rules.

Thanks
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 22, 2012, 05:45:22 am
This is what I've done:

New Actions:

Action Name: Premium Member Discount
Action Type -> Add ticket discount
Discount Percentage: 10.0

Action Name: Telecom Thursday Discount
Action Type -> Add ticket discount
Discount Percentage: 7.5

New Ticket Tag:
Ticket Tag Name: Discount
Do it after ticket selected: Refresh
Sub Tags: Telecom Thursday, Premium Member

New Rules:
Rule Name: Premium Member Discount
Event Name: Ticket Tag Selected
Conditions: Tag Name = Discount
Actions: Premium Member Discount

Rule Name: Telecom Thursday Discount
Event Name: Ticket Tag Selected
Conditions: Tag Name = Discount
Actions: Telecom Thursday Discount

Add Discount ticket group to ticket tags.

It works, well kind off ..... problem is that whether I choose Premium Member Discount (10%) or Telecom Thursday Discount (7.5%) both just subtract 7.5% discount??

And how do I set it that when I click the X to remove the discount that the original amount is set?

thanks
Title: Re: Discount Reason & Value
Post by: JohnS on March 22, 2012, 07:01:40 am
It works, well kind off ..... problem is that whether I choose Premium Member Discount (10%) or Telecom Thursday Discount (7.5%) both just subtract 7.5% discount??
Hint

Tag Value
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 22, 2012, 08:12:18 am
Should I add a Tag Value under rules, cos that did not help ... now no discount is calculated....
Title: Re: Discount Reason & Value
Post by: emre on March 22, 2012, 10:05:51 am
Should I add a Tag Value under rules, cos that did not help ... now no discount is calculated....

Hello. What you need to do is checking tag value constraint in addition to tag name check. But there is a trick on tag value checking. Since the source value contains all current tag values you need to check that with contains operator (?) instead of equals operator.

For removing discount you can add another tag value and add 0 discount for removing discount. When that tag selected you can also remove current discount tag by adding a "Update Ticket Tag" action that sets Discount tag to nothing.
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 22, 2012, 10:23:51 am
Should I add a Tag Value under rules, cos that did not help ... now no discount is calculated....

Hello. What you need to do is checking tag value constraint in addition to tag name check. But there is a trick on tag value checking. Since the source value contains all current tag values you need to check that with contains operator (?) instead of equals operator.

Thank emre, but you lost me at "Hello" already .... How should I do the tag value checking?
Title: Re: Discount Reason & Value
Post by: jenem on March 22, 2012, 11:12:16 am
Sorry to hijack thread, but I was looking at discounts. I couldn't find a action or rule to select one item for discount. I tried to discount one item at settle payment screen but discounts only apply to whole ticket amount. What would be ideal is to select an item line and discount that item.

Edgar
Title: Re: Discount Reason & Value
Post by: emre on March 22, 2012, 11:30:12 am
Should I add a Tag Value under rules, cos that did not help ... now no discount is calculated....

Hello. What you need to do is checking tag value constraint in addition to tag name check. But there is a trick on tag value checking. Since the source value contains all current tag values you need to check that with contains operator (?) instead of equals operator.

Thank emre, but you lost me at "Hello" already .... How should I do the tag value checking?

(http://i.imgur.com/AsvpO.jpg?1)

Sorry for the weak description :)
Title: Re: Discount Reason & Value
Post by: emre on March 22, 2012, 11:40:52 am
Sorry to hijack thread, but I was looking at discounts. I couldn't find a action or rule to select one item for discount. I tried to discount one item at settle payment screen but discounts only apply to whole ticket amount. What would be ideal is to select an item line and discount that item.

Edgar

Hello Edgar nice to hear from you again :)

We can't apply line based discounts. You'll either change item price manually or use price tags for changing prices automatically while adding an item.
There is a short description here:
http://forum2.sambapos.org/index.php/topic,110.msg533.html#msg533 (http://forum2.sambapos.org/index.php/topic,110.msg533.html#msg533)
If you need something like that we can talk about it.
Title: Re: Discount Reason & Value
Post by: jenem on March 22, 2012, 01:38:12 pm
Hi Emre,

I have been busy and I Haven't looked at Sambapos recently. I also purchased a Ardruino uno microcontroller and have been playing with that!!

My brother is waiting for the end of the tax year April to April in the Uk, before implementing Sambapos.

He currently runs a system wheras a card gets stamped and on the eighth stamp the cardholder gets a free drink. SambaPos was fine with that I just used the gift setting.

He now wants to implement a system where the card holder get 50% off a coffee or tea on the fourth stamp.

What would be a good idea (to me anyway) is to be able to offer a item discount with predefined reason (set up in management) as well as the Ticket Total discount on the settle screen.

Its not a deal breaker but maybe a rule or action could be implemented to act on selected ticket item which you then set up as you want.

By the way Emre, you have done wonders on Sambapos and you deserve success.

Edgar
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 23, 2012, 12:10:56 am
After a lot of help from the guys on the forum, again ..... and thanks, I got it working...... woop woop

For those who need the solution, here it is:


This is what I've done:

New Actions:

Action Name: Premium Member Discount
Action Type -> Add ticket discount
Discount Percentage: 10.0

Action Name: Telecom Thursday Discount
Action Type -> Add ticket discount
Discount Percentage: 7.5

Action Name: No Discount
Action Type -> Add ticket discount
Discount Percentage: 0

Action Name: Remove Discount Tag
Action Type -> Update Ticket Tag
Tag Name: Discount


New Ticket Tag:

Ticket Tag Name: Discount
Do it after ticket selected: Refresh
Sub Tags: Telecom Thursday, Premium Member, No Discount

New Rules:
Rule Name: Premium Member Discount
Event Name: Ticket Tag Selected
Conditions: Tag Name = Discount
                   Tag Value ? Premium Member
Actions: Premium Member Discount

Rule Name: Telecom Thursday Discount
Event Name: Ticket Tag Selected
Conditions: Tag Name = Discount
                   Tag Value ? Telecom Thursday
Actions: Telecom Thursday Discount

Rule Name: No Discount
Event Name: Ticket Tag Selected
Conditions: Tag Name = Discount
                   Tag Value ? No Discount
Actions: No Discount, Remove Ticket Tag

Departments:
Add Discount ticket group to ticket tags in the relevant department you want to use it.
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 23, 2012, 12:31:24 am
Just a quick question, why is it that when I rename the Ticket Tag from "Discount" to "Dis- count" it shop working? I just want it to write over 2 lines on the screen since it write the "t" on the next line now.
Title: Re: Discount Reason & Value
Post by: emre on March 23, 2012, 03:05:15 am
Same problem exists with "Select Customer" button too. Leave it as unchanged for now. I'll expand these buttons a little bit on next release.
Title: Re: Discount Reason & Value
Post by: CafeCuppio on March 23, 2012, 03:15:51 am
no problem, thanks
Title: Re: Discount Reason & Value
Post by: emre on March 23, 2012, 03:18:12 am
Hi Emre,

I have been busy and I Haven't looked at Sambapos recently. I also purchased a Ardruino uno microcontroller and have been playing with that!!

My brother is waiting for the end of the tax year April to April in the Uk, before implementing Sambapos.

He currently runs a system wheras a card gets stamped and on the eighth stamp the cardholder gets a free drink. SambaPos was fine with that I just used the gift setting.

He now wants to implement a system where the card holder get 50% off a coffee or tea on the fourth stamp.

What would be a good idea (to me anyway) is to be able to offer a item discount with predefined reason (set up in management) as well as the Ticket Total discount on the settle screen.

Its not a deal breaker but maybe a rule or action could be implemented to act on selected ticket item which you then set up as you want.

By the way Emre, you have done wonders on Sambapos and you deserve success.

Edgar

Do you remember this trick? http://forum2.sambapos.org/index.php/topic,155.msg644.html#msg644 (http://forum2.sambapos.org/index.php/topic,155.msg644.html#msg644)

Instead of adding negative modifier prices you can change item price with "Update Ticket Item Price Tag" action. If you think that works I can prepare a detailed tutorial.
Title: Re: Discount Reason & Value
Post by: jenem on March 23, 2012, 04:18:20 am
Thanks Emre,

Will try later and report back  ;)

Edgar