Author Topic: Discount Reason & Value  (Read 10355 times)

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Discount Reason & Value
« 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
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Discount Reason & Value
« Reply #1 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.

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Re: Discount Reason & Value
« Reply #2 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
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Re: Discount Reason & Value
« Reply #3 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
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Re: Discount Reason & Value
« Reply #4 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
SambaPOS - POS'n the World, one Terminal at a time.

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Re: Discount Reason & Value
« Reply #5 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....
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Discount Reason & Value
« Reply #6 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.

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Re: Discount Reason & Value
« Reply #7 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?
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

jenem

  • Full Member
  • ***
  • Posts: 154
Re: Discount Reason & Value
« Reply #8 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

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Discount Reason & Value
« Reply #9 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?



Sorry for the weak description :)
« Last Edit: March 22, 2012, 11:34:04 am by emre »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Discount Reason & Value
« Reply #10 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
If you need something like that we can talk about it.

jenem

  • Full Member
  • ***
  • Posts: 154
Re: Discount Reason & Value
« Reply #11 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

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Re: Discount Reason & Value
« Reply #12 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.
« Last Edit: March 23, 2012, 12:31:58 am by CafeCuppio »
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

CafeCuppio

  • Full Member
  • ***
  • Posts: 200
    • Cafe Cuppio
Re: Discount Reason & Value
« Reply #13 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.
SambaPOS - POS'n the World, one Terminal at a time.
Even in Namibia, Africa!

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Discount Reason & Value
« Reply #14 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.