Well no offence but that looks really complicated… I’ve gone with using my webserver to deliver me a nicer looking html custom screen. It works well and can show my recent orders as well.
I don’t understand how a single expression [quote=“QMcKay, post:2, topic:12191”]
[=(6-TN(‘{ENTITY DATA:Points}’)) <= 0 ? ‘You have a free drink’ : ‘somethingElse’ ]
[/quote]
No! Its not that the expression is difficult, It’s I want to generate a customer display screen which is entirely tailored based on what type of customer it is. It’s more I feel a lot more confident in PHP than those kind of expressions. For example, after I provide my webserver the entity’s name it comes back with an already formatted screen asking if they would like to reorder there last order before showing them recent orders as well as different promitons based on different entity custom fields, and if it is a certain customer type then show there account, or if it is a different customer then not display anything.
I could do everything in Samba with about 10 different print templates for the same things but I feel it’s easy just having a php file to format everything in html already done. Ill just show you what my current PHP setup looks like to see the complicated nature of it. https://gist.github.com/the133448/632f0cca04a053449bd362510281aa7f
Hey Q, or anyone else how can I take this expression[quote=“QMcKay, post:2, topic:12191”]
[=(6-TN(’{ENTITY DATA:Points}’)) <= 0 ? ‘You have a free drink’ : ‘somethingElse’ ]
[/quote]
and make it be so that if Points not equals null, do this?
That doesnt seem to work [=(TN('{ENTITY DATA:Points}')) = '' ?
I do have 2 statment after the ? just their really long and are not relevant to the question
Ok, so say I wanted to say if it equals null, because thats how I track if the customer has bought from us before and if so then they will be in my online db but if they havent I need to use sambaPOS to generate the Html.
Like in a rule I do
How would I do that?
Like why does this not work? [=('{ENTITY DATA:Points}') = '' ?