Skip to content

Instantly share code, notes, and snippets.

@theinventor
Created June 20, 2014 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theinventor/9147d05aaaf252c2627e to your computer and use it in GitHub Desktop.
Save theinventor/9147d05aaaf252c2627e to your computer and use it in GitHub Desktop.
Invoice Ticket template - this will place the ticket on your invoice, and include the custom fields
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="main-table">
<tr>
<td width="18" height="20">&nbsp;</td>
<td width="714" valign="top">&nbsp;</td>
<td width="18">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="right" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">
<table width="50%" border="0" cellspacing="0" cellpadding="0" class="rig-table">
<tr>
<td width="60" align="center" class="heading">Ticket Date</td>
<td width="156" align="center" class="text">&nbsp;{{ticket_date}}</td>
</tr>
<tr>
<td align="center" class="heading">Ticket#</td>
<td align="center" class="text">&nbsp;{{ticket_number}}</td>
</tr>
<tr>
<td align="center" class="heading">Subject</td>
<td align="center" class="text">&nbsp;{{ticket_subject}}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<style>
.comments-table{ margin:0px; border:#E9E8E8 solid 1px;}
.comments-table .heading{ background-color:#DAD9D9; font-size:15px; font-weight:bold; color:#696969 ; border-right:#E9E8E8 solid 1px;}
.comments-table .text{ font-size:13px; padding:5px 5px 3px 10px; line-height:20px; border-right:#E9E8E8 solid 1px;}
.comments-table .text2{ font-size:13px; padding:5px 5px 3px 10px; line-height:20px; background-color: #f4f4f4; border-right:#E9E8E8 solid 1px;}
</style>
<tr>
<td colspan="2">{{ticket_custom_fields}}</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="midd-table">
<thead>
<tr>
<th class='heading' width='175px;'>Date</th>
<th class='heading'>Comment</th>
</tr>
</thead>
<tbody>
{{ticket_problem}}
</tbody>
</table>
</td>
<td>&nbsp;</td>
</tr>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment