Hello,
I have an execute script action which does not fire when an Ticket is created from SambaIN.
When I open and close the ticket on the POS itself, it fires correctly.
I tried to put the Action in Ticket Closing rule and in a Before Ticket Closing rule. In both scenarios it does not work with SambaIN and works locally on the terminal. Every other Action which is included in a Ticket Closing or Before Ticket Closing rule works fine.
Am I doing something wrong? Is this by design not working at all or is it a bug?
Hello,
It is not about rules but actions.
The Ticket Closing Rule is triggered anyway otherwise the execute print job action would not fire.This action works well.
The execute script action does not work.
Is there a list which actions work and which do not work?
conn.open = conString;
var aSQLStatement = “INSERT INTO vouchers(firstname,lastname,cashbackvalue,ordervalue,voucher,minutes) VALUES('”+firstname+“‘,’”+lastname+“‘,’”+cashbackvalue+“‘,’”+ordervalue+“‘,’”+voucher+“‘,’”+deliveryminutes+“')”;
conn.Execute(aSQLStatement);
conn.close;
}
Why a script and not rules and actions → I have a common database of 6 restaurants and you can redeem afterwards the vouchers in any of those restaurants.