Ok, here you go …
Voiding Orders, Moving Orders and/or Merging Tickets should not affect this number, which I have named TID and applied it to the Ticket as a Ticket Tag, accessed by {TICKET TAG:TID}. This is because the TID is generated and applied to the Ticket when the Ticket is PAID in FULL.

##Ticket Tag

##Actions
##TID Update Invoice ID
[Update Program Setting](Action)##
| Action Name: | TID Update Invoice ID |
| Action Type: | Update Program Setting |
| Setting Name: | TID |
| Setting Value: | [:TIDvalue] |
| Update Type: | [:updateType] |
| Is Local: | False |
##TID Assign Invoice ID
[Update Ticket Tag](Action)##
| Action Name: | TID Assign Invoice ID |
| Action Type: | Update Ticket Tag |
| Tag Name: | TID |
| Tag Value: | [:TIDvalue] |
##Rule
##TID Update and Assign Invoice ID
[Before Ticket Closing](Rule)##
| Rule Name: | TID Update and Assign Invoice ID |
| Event Name: | Before Ticket Closing |
| Rule Tags: | |
| Execute Rule if: | Matches |
Remaining Amount | Equals | 0 |
##Actions (2):##
TID Update Invoice ID
Constraint: (none)
| TIDvalue: | 1 |
| updateType: | Increase |
TID Assign Invoice ID
Constraint: (none)
| TIDvalue: | {SETTING:TID} |
##Mappings##
Mappings
| Terminal | User Role | Department | Ticket Type |
* | * | * | * |
You can have this print on your Tickets using: {TICKET TAG:TID} …




