Print bill counter

I am trying to keep track how many time the ticket has been printed. I tried to keep track with ticket tag says Print Counter.

I did configure to update the ticket tag before execute the print bill action but stuck with the tag value. what is the correct formula to increase by 1 for the ticket tag?

Update your Ticket Tag whenever you print the bill with this:

[=TN('{TICKET TAG:Print Counter}')+1]

I got this as output: ]

Post a screenshot of the Rule that updates the Ticket Tag.


It is better to use variables in your Actions, then set the value in your Rules, especially when you are using [=expressions].

This works:

Ok thanks. I just wonder why we could not increment it directly in the Tag Value?

Action Parameters must not support [=expressions].

I have run into this issue before, so I usually make most of the parameters into [:variables] then set the value in the Rule.

It does support [=expression ] but maybe not the setting parameters or object parameters.

It might be that {TICKET TAG:X} is not available until the Rule fires.

In any case, make it a habit to use [:variables] in your Actions unless they are Static values, and you will be able to avoid these headaches in the future.