I have implemented all of the above… buttons to print vouchers works great… but when I can not make samba print the voucher automatically…
to make a proof of concept instead of printing I am trying to display a message on screen…
I tried with “Ticket Closing” rule and “Payment Processed” rule, but no message…
@gerlandog, you are making simple errors. You are spelling Total Amount in one word. Also Total Amount is not a valid constraint in Payment Processed Event.
Set Event Name: Ticket Closing
Execute rule if Matches All
Remaining Amount Equals 0.00
Total Amount Greater 99.99
@gerlandog, I think I get your problem. If you change Rule Event and you are using variable names in your Actions ([:ProcessedAmount], etc), these are specific to certain rules. You need to remove the Action, then add the Action again to see the new variables.
When testing use plain text like “10% Voucher”, or “Hello :)”
Dear @JohnS, @emre and @Isaac, I have been using this feature and works great!!!
the only thing that I found is that when payments are not in one, for example three persons will settle a 60 bill and each pays 20, the cupon will not pirnt since the Total amount each time is lees than 50. But if one of the payments is more than 50 then the cupon will print.
Is there any variable that could be invoked instead of total amount? something like [:TicketTotal]?
@gerlandog, the way it works is that it only prints when the ticket is paid in full and the Ticket Total is greater than 50. [:TotalAmount] will always be Ticket Total, even if it is split.
@gerlandog,
The screen shots you have provided trigger on Payment Processed event - that is whenever you take a payment, be it part or full payment. [:TotalAmount] is not available for this event. So the rule works on the payments made and not Ticket Total Amount.
If you change the event to Before Ticket Closing, [:TotalAmount] is available - but you need to remove all constraints and re-add them so you have the correct tags. Just changing the event does not refresh the tags.
This way only vouchers print when the Ticket is paid in full and Ticket Total is over 50.