VIP and HH Help

I import in my database the config file of the VIP and HH Time
VIP works great except that i cant import demicals (example:1,50)
The HH Time is never started … any idea ?

What database? Which topic are you working from?

Is this on prices???

Some screenshots of the relevant rules would be handy, otherwise any answers will be nothing but stabs in the dark.

1 Like

hi @JTRTech i was following this tutorial

and import in my database the txt file with the settings.

Also i tried in V5 and still there not working…
I thing something have to do with my pc’s time and date

Possibly but if you don’t show us we cant help…

what do you want me to show you ?

Im just trying to help you get your answers @QMcKay will be the best person to help as the tutorial writer.
I can do my best but not having used that tutorial an not familiar with exact details.
You will get more help if you post screenshots of the parts you expect to be cause the problem.
If you think its your system time, show you system time format and the rule relating to the time.

OK fair enough
I’m sure that tutorial works great

so these are my settings

andthis is one of the rules

HH is not trigger-based. Your system date/time format should have no effect on the HH setup. The date/time of the Order must fall within the window that you have set for HH Start/End Day and HH Start/End Time. This is how it works - based on Order Time.

Also, it is important to know that if the Customer is flagged as a VIP, this will over-ride the HH discount. I made it this way by design.

Show a screenshot of a Ticket with and without a customer, with at least 1 Order on it that is eligible for Discount. We need to see the Order States that are in effect.

Hi @QMcKay

Right now is HH time

this customers is not VIP

This Customer is VIP1

So VIP is working. Good.

For the non-VIP, we see Ticket State VIP:Inactive, so that is good. But I don’t see any DiscountType State on the Order. It should have a State of ND or HH.

First, show the Rule that sets your HH Start/End Day/Time with all actions fully expanded, and let me know what your system Time is right now.

you mean this ?

HH Now is ended

ND shows on Customer VIP1 in a product with out discount

First, be sure your HH Rules have Mappings - without mappings they will never fire. Once you have done that…

Check the Rule sort order. We need to make sure the the HH Reset is listed first, before any other settings for HH Start/End.

Filter your Rules by typing hh into the search box in the upper-right.

Click on the Sort Rules link.

Drag the “Reset” Rule to the top, and click Ok.

Logout and shut down SambaPOS, then restart it.


Another alternative is to leave the “Reset” Rule to trigger on Application Started, but for any of your HH Start/End Rules, change the Event to User Login. That way we ensure the Rules are being triggered after the Reset.

User login seem that solves the problem

If i may can i ask two more questions , how can i use demicals in prices ?

and how to enable shell subtitle ?
<img src="/uploads/default/original/3X/4/5/45a09dfc12bd06becda62ccb33980f3f59ecff20.PNG"width=“690” height=“431”>

Decimals work. Please be sure you are not mixing your separators. Your Ticket indicates you are using DOT (.), but your examples indicate you want to use COMMA (,).

1 Like

For Application Title, you need to set up Actions and Rules to change what is displayed there…

##AT Title Last Sale [Update Application Subtitle] (Action)##

Action Name: AT Title Last Sale
Action Type: Update Application Subtitle
###Parameters:###
Title Location: Shell Header
Title: {SETTING:PriceList} WiFi: {SETTING:WiFiPW} -- [:LastSale]
Background:
Height:

##AT Title Login [Update Application Subtitle] (Action)##

Action Name: AT Title Login
Action Type: Update Application Subtitle
###Parameters:###
Title Location: Shell Header
Title: {SETTING:PriceList} WiFi: {SETTING:WiFiPW} -- [:MSG]
Background:
Height:

##AT Title Login [User Logged In] (Rule)##

Rule Name: AT Title Login
Event Name: User Logged In
Rule Tags:
Custom Constraint List (0):
Execute Rule if: Matches

##Actions (1):##

AT Title Login

Constraint: (none)

MSG: Hello [:UserName] !!!

##Mappings##

Mappings
Terminal User Role Department Ticket Type
****

##AT Title Update PaymentType Tendered Change LAST SALE [Payment Processed] (Rule)##

Rule Name: AT Title Update PaymentType Tendered Change LAST SALE
Event Name: Payment Processed
Rule Tags:
Custom Constraint List (0):
Execute Rule if: Matches

##Actions (1):##

AT Title Last Sale

Constraint: (none)

LastSale: LAST SALE Paid by [[:PaymentTypeName]]: [:TenderedAmount] Total: [=F(TN('{TICKET TOTAL}'))] Change: [:ChangeAmount]

##Mappings##

Mappings
Terminal User Role Department Ticket Type
****

1 Like

when i use dot the discount is not working …

weird ha ???

I don’t know what to tell you. I would think it would not matter which is used, depending on our Regional Settings, and whether or not you have SambaPOS set to “over-ride”.

This is one of the actions that sets the discount amount…

As you can see, the TN() function converts the Product Tag to a number, which is multiplied by -1 and the Order is Tagged with an Order Tag having that negative value.

[=-1*(TN('{ITEM TAG:HH}'))]

or for VIP:

[=-1*(TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'))]

So something is not being converted properly. Maybe @emre has a suggestion?

So set your Product Tags back to using COMMA, and maybe try this weirdness…

[=-1*(TN('{ITEM TAG:HH}'.replace(',','.')))]

or for VIP:

[=-1*(TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'.replace(',','.')))]

Everything seems ok