Recall & Clone (Customer) Last Ticket

Rules

LT Display Last Customer Ticket [Automation Command Executed] (Rule)

Rule Name: LT Display Last Customer Ticket
Event Name: Automation Command Executed
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Automation Command NameEqualsLT Display Last Ticket

Actions (2):

LT Show Message

Constraint: ‘{SETTING:{ENTITY NAME:Customers}_CLastTicketId}’ == ‘’

MessageToDisplay: Cannot find Previous Ticket for\r{ENTITY NAME:Customers}\r{ENTITY NAME:Tables}
LT Display Ticket

Constraint: ‘{SETTING:{ENTITY NAME:Customers}_CLastTicketId}’ != ‘’

ticketId: [=TN('{SETTING:{ENTITY NAME:Customers}_CLastTicketId}')]

Mappings

Mappings
Terminal User Role Department Ticket Type
****

LT Clone Ticket [Automation Command Executed] (Rule)

Rule Name: LT Clone Ticket
Event Name: Automation Command Executed
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Automation Command NameEqualsLT Clone Ticket

Actions (1):

LT Create Ticket Clone

Constraint: (none)

Mappings

Mappings
Terminal User Role Department Ticket Type
****

LT Entity Selected - Load CLastTicketId from Entity State and Store in Memory [Entity Selected] (Rule)

Rule Name: LT Entity Selected - Load CLastTicketId from Entity State and Store in Memory
Event Name: Entity Selected
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Entity Type NameEqualsCustomers

Actions (2):

LT Load Entity by Search

Constraint: (none)

entityTypeName: Customers
entityName: [:EntityName]
searchValue:
LT Store CLastTicketId in Memory

Constraint: (none)

customerName: [:EntityName]
ticketId: {ENTITY STATE:CLastTicketId}

Mappings

Mappings
Terminal User Role Department Ticket Type
****

LT Ticket Closing - Store Entity State CLastTicketId [Ticket Closing] (Rule)

Rule Name: LT Ticket Closing - Store Entity State CLastTicketId
Event Name: Ticket Closing
Rule Tags:
Custom Constraint List (3):
Execute Rule if: Matches
{TICKET STATE:Status}EqualsPaid
[=TN('{TICKET TOTAL}')]Greater0
{ENTITY NAME:Customers}Is Not Null

Actions (1):

LT Update Entity State CLastTicketId

Constraint: (none)

customerName: {ENTITY NAME:Customers}
ticketId: [=TN('{TICKET ID}')]

Mappings

Mappings
Terminal User Role Department Ticket Type
****
2 Likes