The following is based on Department not Ticket Type. Since you have not explained your setup, I can only assume your setup is similar to mine.
I assume you only have one terminal and one receipt printer called 'Ticket Printer'.
You need 2 Printer Templates
1. Restaurant Receipt Template
2. Take Away Receipt Template
You need 2 Print Jobs
1. Restaurant Receipt
- Print Mapping - *,*,Ticket Printer,Restaurant Receipt Template
2. Take Away Receipt
- Print Mapping - *,*,Ticket Printer,Take Away Receipt Template
You Need 2 Actions
1. Print Restaurant Receipt
Action Type : Execute Print Job
PrintJobName : Restaurant Receipt
2. Print Take Away Receipt
Action Type : Execute Print Job
PrintJobName : Take Away Receipt
You need 2 Rules
Rule 1
Name : Print Restaurant Receipt After Sale
Event : Ticket Closing
RemainingAmount = 0
Actions - Print Restaurant Receipt
Mappings : *,*,Restaurant,*
Rule 2
Name : Print Takeaway Receipt After Sale
Event : Ticket Closing
RemainingAmount = 0
Actions - Print Takeaway Receipt
Mappings : *,*,Take Away,*