Ticket Order Count EXP Constraint

@Jesse do you know whats the syntax for this expressions field in Select Orders Action? Its kind of semi-working, not sure which one of these expressions its picking up on

It was released back in 5.2.14

Whats the event?
Expect its the MN part if your having issues.

Automation Command Executed event while the order is selected. Its almost as if expressions are doing only OR operation instead of AND. Because it does what its supposed to do but only when any one of these expressions is valid.

Predictable sugestions if not already, show message with those values to make sure expected returns.

When you say semi you mean its semi firing or semi selecting?

Whats %, i mean I know what your doing but not done that before and intregued on exactly what its doing?

Basically I am automating Cancel Order. Its just extra quirks I want to polish out because I am too stubborn to let it slide :sweat_smile:

When you order

  1. 1 x Glass
    
  2. 1 x Glass
    
  3. 1 x Glass FREE
    

So if I cancel say 2nd one, its supposed to automatically select gift one and update gift to null.

So then result would be

1 x Glass
1 x Glass

Well the whole thing works when any of the expression is True.
This is my expression


(OS.Status=New) AND (OS.HHNumber=0) AND (MN={PRODUCT NAME})

BUT it behaves like its this, which is why I asked Jesse, maybe I am using wrong expressions or something.

(OS.Status=New) OR (OS.HHNumber=0) OR (MN={PRODUCT NAME})

@VehbiEmiroglu could you please tell me whats the right syntax for Select Orders Actions in the Expression Field

What happens if they have 6, 4 and 2 gift, and cancel one of paid ones?

Thats why I put to cancel just the New one, but it doesnt listen to the expression, it removes gift state to a Submitted order.

Say on ticket there is:
1x Glass Submitted
1x Glass Submitted
1x Glass GIFT Submitted


1x Glass New
1x Glass New

And I cancel last one, it will update GIFT order even though its submitted because its not listening to (OS.Status=New) expression.

It has a brain of its own haha

I think I hit a snag that wont go away without help from Devs, so for now I will put this cancelling thing for later and possibly use Adjust Order Price action.

I came to a point where I am putting in too much time into reinventing the wheel

Thanks for all your suggestions and help, if you want the DB and want to try it out yourself just hit me with a PM.

P.S. I might actually send you a message to give me some help with that Adjust Order Action if I hit another bump down the road. :sweat_smile:

:pray: :pray: :pray: :pray: