1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8 <div style="padding-top:100px;margin-right:50px;border-style: none;">
9 {if $config->empoweredBy}
10 <table style="margin-top:5px;padding-bottom:50px;" cellpadding="5" cellspacing="0">
12 <td><img src="{$resourceBase}/i/civi99.png" height="34px" width="99px"></td>
16 <table style="font-family: Arial, Verdana, sans-serif;" width="100%" height="100" border="0" cellpadding="5" cellspacing="0">
18 <td width="30%"><b><font size="4" align="center">{ts}INVOICE{/ts}</font></b></td>
19 <td width="50%" valign="bottom"><b><font size="1" align="center">{ts}Invoice Date:{/ts}</font></b></td>
20 <td valign="bottom" style="white-space: nowrap"><b><font size="1" align="right">{$domain_organization}</font></b></td>
23 {if $organization_name}
24 <td><font size="1" align="center">{contact.display_name} ({$organization_name})</font></td>
26 <td><font size="1" align="center">{contact.display_name}</font></td>
28 <td><font size="1" align="right">{$invoice_date}</font></td>
29 <td style="white-space: nowrap">
30 <font size="1" align="right">
31 {if $domain_street_address }{$domain_street_address}{/if}
32 {if $domain_supplemental_address_1 }{$domain_supplemental_address_1}{/if}
37 <td><font size="1" align="center">{$street_address} {$supplemental_address_1}</font></td>
38 <td><b><font size="1" align="right">{ts}Invoice Number:{/ts}</font></b></td>
40 <font size="1" align="right">
41 {if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if}
42 {if $domain_state }{$domain_state}{/if}
47 <td><font size="1" align="center">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>
48 <td><font size="1" align="right">{$invoice_number}</font></td>
49 <td style="white-space: nowrap">
50 <font size="1" align="right">
51 {if $domain_city}{$domain_city}{/if}
52 {if $domain_postal_code }{$domain_postal_code}{/if}
57 <td><font size="1" align="right">{$city} {$postal_code}</font></td>
58 <td height="10"><b><font size="1" align="right">{ts}Reference:{/ts}</font></b></td>
59 <td><font size="1" align="right">{if $domain_country}{$domain_country}{/if}</font></td>
62 <td><font size="1" align="right"> {$country}</font></td>
63 <td><font size="1" align="right">{if !empty($source)}{$source}{/if}</font></td>
64 <td valign="top" style="white-space: nowrap"><font size="1" align="right">{if $domain_email}{$domain_email}{/if}</font> </td>
69 <td valign="top"><font size="1" align="right">{if $domain_phone}{$domain_phone}{/if}</font> </td>
73 <table style="padding-top:75px;font-family: Arial, Verdana, sans-serif;" width="100%" border="0" cellpadding="5" cellspacing="0">
75 <th style="text-align:left;font-weight:bold;width:100%"><font size="1">{ts}Description{/ts}</font></th>
76 <th style="text-align:right;font-weight:bold;white-space: nowrap"><font size="1">{ts}Quantity{/ts}</font></th>
77 <th style="text-align:right;font-weight:bold;white-space: nowrap"><font size="1">{ts}Unit Price{/ts}</font></th>
78 <th style="text-align:right;font-weight:bold;white-space: nowrap"><font size="1">{$taxTerm}</font></th>
79 <th style="text-align:right;font-weight:bold;white-space: nowrap"><font size="1">{ts 1=$currency}Amount %1{/ts}</font></th>
81 {foreach from=$lineItem item=value key=priceset name=taxpricevalue}
82 {if $smarty.foreach.taxpricevalue.index eq 0}
86 <td style="text-align:left;nowrap"><font size="1">
87 {if $value.html_type eq 'Text'}
90 {$value.field_title} - {$value.label}
92 {if $value.description}
93 <div>{$value.description|truncate:30:"..."}</div>
97 <td style="text-align:right;"><font size="1">{$value.qty}</font></td>
98 <td style="text-align:right;"><font size="1">{$value.unit_price|crmMoney:$currency}</font></td>
99 {if $value.tax_amount != ''}
100 <td style="text-align:right;"><font size="1">{if $value.tax_rate}{$value.tax_rate}%{/if}</font></td>
102 <td style="text-align:right;"><font size="1">{if $taxTerm}{ts 1=$taxTerm}-{/ts}{/if}</font></td>
104 <td style="text-align:right;"><font size="1">{$value.subTotal|crmMoney:$currency}</font></td>
108 <td colspan="3"></td>
109 <td style="text-align:right;"><font size="1">{ts}Sub Total{/ts}</font></td>
110 <td style="text-align:right;"><font size="1">{$subTotal|crmMoney:$currency}</font></td>
112 {if !empty($dataArray)}
113 {foreach from=$dataArray item=value key=priceset}
115 <td colspan="3"></td>
117 <td style="text-align:right;white-space: nowrap"><font size="1">{if $taxTerm}{ts 1=$taxTerm 2=$priceset}TOTAL %1 %2%{/ts}{/if}</font></td>
118 <td style="text-align:right"><font size="1" align="right">{$value|crmMoney:$currency}</font> </td>
119 {elseif $priceset == 0}
120 <td style="text-align:right;white-space: nowrap"><font size="1">{if $taxTerm}{ts 1=$taxTerm}TOTAL %1{/ts}{/if}</font></td>
121 <td style="text-align:right"><font size="1" align="right">{$value|crmMoney:$currency}</font> </td>
127 <td colspan="3"></td>
128 <td style="text-align:right;white-space: nowrap"><b><font size="1">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>
129 <td style="text-align:right;"><font size="1">{$amount|crmMoney:$currency}</font></td>
132 <td colspan="3"></td>
133 <td style="text-align:right;white-space: nowrap"><font size="1">
134 {if $contribution_status_id == $refundedStatusId}
135 {ts}Amount Credited{/ts}
141 <td style="text-align:right;"><font size="1">{$amountPaid|crmMoney:$currency}</font></td>
144 <td colspan="3"></td>
145 <td colspan="2"><hr></hr></td>
148 <td colspan="3"></td>
149 <td style="text-align:right;white-space: nowrap" ><b><font size="1">{ts}AMOUNT DUE:{/ts}</font></b></td>
150 <td style="text-align:right;"><b><font size="1">{$amountDue|crmMoney:$currency}</font></b></td>
155 <td colspan="5"></td>
157 {if $contribution_status_id == $pendingStatusId && $is_pay_later == 1}
159 <td colspan="3"><b><font size="1" align="center">{ts 1=$dueDate}DUE DATE: %1{/ts}</font></b></td>
160 <td colspan="2"></td>
168 {if $contribution_status_id == $pendingStatusId && $is_pay_later == 1}
169 <table style="margin-top:5px;" width="100%" border="0" cellpadding="0" cellspacing="0">
171 <td><img src="{$resourceBase}/i/contribute/cut_line.png" height="15"></td>
175 <table style="margin-top:5px;font-family: Arial, Verdana, sans-serif" width="100%" border="0" cellpadding="5" cellspacing="0" id="desc">
177 <td width="60%"><b><font size="4" align="right">{ts}PAYMENT ADVICE{/ts}</font></b><br/><br/><font size="1" align="left"><b>{ts}To:{/ts}</b><div style="width:24em;word-wrap:break-word;">
178 {$domain_organization}<br />
179 {$domain_street_address} {$domain_supplemental_address_1}<br />
180 {$domain_supplemental_address_2} {$domain_state}<br />
181 {$domain_city} {$domain_postal_code}<br />
182 {$domain_country}<br />
183 {$domain_email}</div>
184 {$domain_phone}<br />
185 </font><br/><br/><font size="1" align="left">{$notes}</font>
188 <table cellpadding="5" cellspacing="0" width="100%" border="0">
190 <td width="100%"><font size="1" align="right" style="font-weight:bold;">{ts}Customer:{/ts}</font></td>
191 <td style="white-space: nowrap"><font size="1" align="right">{contact.display_name}</font></td>
194 <td><font size="1" align="right" style="font-weight:bold;">{ts}Invoice Number:{/ts}</font></td>
195 <td><font size="1" align="right">{$invoice_number}</font></td>
197 <tr><td colspan="5" style="color:#F5F5F5;"><hr></td></tr>
198 {if $is_pay_later == 1}
200 <td><font size="1" align="right" style="font-weight:bold;">{ts}Amount Due:{/ts}</font></td>
201 <td><font size="1" align="right" style="font-weight:bold;">{$amount|crmMoney:$currency}</font></td>
205 <td><font size="1" align="right" style="font-weight:bold;">{ts}Amount Due:{/ts}</font></td>
206 <td><font size="1" align="right" style="font-weight:bold;">{$amountDue|crmMoney:$currency}</font></td>
210 <td><font size="1" align="right" style="font-weight:bold;">{ts}Due Date:{/ts}</font></td>
211 <td><font size="1" align="right">{$dueDate}</font></td>
214 <td colspan="5" style="color:#F5F5F5;"><hr></td>
219 {if $contribution_status_id == $refundedStatusId || $contribution_status_id == $cancelledStatusId}
220 {if $config->empoweredBy}
221 <table style="margin-top:2px;padding-left:7px;page-break-before: always;">
223 <td><img src="{$resourceBase}/i/civi99.png" height="34px" width="99px"></td>
228 <table style="font-family: Arial, Verdana, sans-serif" width="100%" height="100" border="0" cellpadding="5" cellspacing="5">
230 <td style="padding-left:15px;"><b><font size="4" align="center">{ts}CREDIT NOTE{/ts}</font></b></td>
231 <td style="padding-left:30px;"><b><font size="1" align="right">{ts}Date:{/ts}</font></b></td>
232 <td><font size="1" align="right">{$domain_organization}</font></td>
235 {if $organization_name}
236 <td style="padding-left:17px;"><font size="1" align="center">{contact.display_name} ({$organization_name})</font></td>
238 <td style="padding-left:17px;"><font size="1" align="center">{contact.display_name}</font></td>
240 <td style="padding-left:30px;"><font size="1" align="right">{$invoice_date}</font></td>
242 <font size="1" align="right">
243 {if $domain_street_address }{$domain_street_address}{/if}
244 {if $domain_supplemental_address_1 }{$domain_supplemental_address_1}{/if}
249 <td style="padding-left:17px;"><font size="1" align="center">{$street_address} {$supplemental_address_1}</font></td>
250 <td style="padding-left:30px;"><b><font size="1" align="right">{ts}Credit Note Number:{/ts}</font></b></td>
252 <font size="1" align="right">
253 {if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if}
254 {if $domain_state }{$domain_state}{/if}
259 <td style="padding-left:17px;"><font size="1" align="center">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>
260 <td style="padding-left:30px;"><font size="1" align="right">{$creditnote_id}</font></td>
262 <font size="1" align="right">
263 {if $domain_city}{$domain_city}{/if}
264 {if $domain_postal_code }{$domain_postal_code}{/if}
269 <td style="padding-left:17px;"><font size="1" align="right">{$city} {$postal_code}</font></td>
270 <td height="10" style="padding-left:30px;"><b><font size="1" align="right">{ts}Reference:{/ts}</font></b></td>
272 <font size="1" align="right">
273 {if $domain_country}{$domain_country}{/if}
279 <td style="padding-left:30px;"><font size="1" align="right">{$source}</font></td>
281 <font size="1" align="right">
282 {if $domain_email}{$domain_email}{/if}
290 <font size="1" align="right">
291 {if $domain_phone}{$domain_phone}{/if}
297 <table style="margin-top:75px;font-family: Arial, Verdana, sans-serif" width="100%" border="0" cellpadding="5" cellspacing="5" id="desc">
299 <td colspan="2" {$valueStyle}>
300 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
302 <th style="padding-right:28px;text-align:left;font-weight:bold;width:200px;"><font size="1">{ts}Description{/ts}</font></th>
303 <th style="padding-left:28px;text-align:right;font-weight:bold;"><font size="1">{ts}Quantity{/ts}</font></th>
304 <th style="padding-left:28px;text-align:right;font-weight:bold;"><font size="1">{ts}Unit Price{/ts}</font></th>
305 <th style="padding-left:28px;text-align:right;font-weight:bold;"><font size="1">{$taxTerm}</font></th>
306 <th style="padding-left:28px;text-align:right;font-weight:bold;"><font size="1">{ts 1=$currency}Amount %1{/ts}</font></th>
308 {foreach from=$lineItem item=value key=priceset name=pricevalue}
309 {if $smarty.foreach.pricevalue.index eq 0}
310 <tr><td colspan="5"><hr size="3" style="color:#000;"></hr></td></tr>
312 <tr><td colspan="5" style="color:#F5F5F5;"><hr></hr></td></tr>
315 <td style ="text-align:left;" >
317 {if $value.html_type eq 'Text'}
320 {$value.field_title} - {$value.label}
322 {if $value.description}
323 <div>{$value.description|truncate:30:"..."}</div>
327 <td style="padding-left:28px;text-align:right;"><font size="1">{$value.qty}</font></td>
328 <td style="padding-left:28px;text-align:right;"><font size="1">{$value.unit_price|crmMoney:$currency}</font></td>
329 {if $value.tax_amount != ''}
330 <td style="padding-left:28px;text-align:right;"><font size="1">{if $value.tax_rate}{$value.tax_rate}%{/if}</font></td>
332 <td style="padding-left:28px;text-align:right"><font size="1">{if $taxTerm}{ts 1=$taxTerm}No %1{/ts}{/if}</font></td>
334 <td style="padding-left:28px;text-align:right;"><font size="1">{$value.subTotal|crmMoney:$currency}</font></td>
337 <tr><td colspan="5" style="color:#F5F5F5;"><hr></hr></td></tr>
339 <td colspan="3"></td>
340 <td style="padding-left:28px;text-align:right;"><font size="1">{ts}Sub Total{/ts}</font></td>
341 <td style="padding-left:28px;text-align:right;"><font size="1">{$subTotal|crmMoney:$currency}</font></td>
343 {if !empty($dataArray)}
344 {foreach from=$dataArray item=value key=priceset}
346 <td colspan="3"></td>
348 <td style="padding-left:28px;text-align:right;"><font size="1">{if $taxTerm}{ts 1=$taxTerm 2=$priceset}TOTAL %1 %2%{/ts}{/if}</font></td>
349 <td style="padding-left:28px;text-align:right;"><font size="1" align="right">{$value|crmMoney:$currency}</font> </td>
350 {elseif $priceset == 0}
351 <td style="padding-left:28px;text-align:right;"><font size="1">{if $taxTerm}{ts 1=$taxTerm}TOTAL NO %1{/ts}{/if}</font></td>
352 <td style="padding-left:28px;text-align:right;"><font size="1" align="right">{$value|crmMoney:$currency}</font> </td>
358 <td colspan="3"></td>
359 <td colspan="2"><hr></hr></td>
362 <td colspan="3"></td>
363 <td style="padding-left:28px;text-align:right;"><b><font size="1">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>
364 <td style="padding-left:28px;text-align:right;"><font size="1">{$amount|crmMoney:$currency}</font></td>
366 {if $is_pay_later == 0}
368 <td colspan="3"></td>
369 <td style="padding-left:28px;text-align:right;"><font size="1">{ts}LESS Credit to invoice(s){/ts}</font></td>
370 <td style="padding-left:28px;text-align:right;"><font size="1">{$amount|crmMoney:$currency}</font></td>
373 <td colspan="3"></td>
374 <td colspan="2"><hr></hr></td>
377 <td colspan="3"></td>
378 <td style="padding-left:28px;text-align:right;"><b><font size="1">{ts}REMAINING CREDIT{/ts}</font></b></td>
379 <td style="padding-left:28px;text-align:right;"><b><font size="1">{$amountDue|crmMoney:$currency}</font></b></td>
380 <td style="padding-left:28px;"><font size="1" align="right"></font></td>
385 <td colspan="3"></td>
389 <td colspan="3"></td>
396 <table width="100%" style="margin-top:5px;padding-right:45px;">
398 <td><img src="{$resourceBase}/i/contribute/cut_line.png" height="15" width="100%"></td>
402 <table style="margin-top:6px;font-family: Arial, Verdana, sans-serif" width="100%" border="0" cellpadding="5" cellspacing="5" id="desc">
404 <td width="60%"><font size="4" align="right"><b>{ts}CREDIT ADVICE{/ts}</b><br/><br /><div style="font-size:10px;max-width:300px;">{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}</div><br/></font></td>
406 <table align="right">
408 <td colspan="2"></td>
409 <td><font size="1" align="right" style="font-weight:bold;">{ts}Customer:{/ts}</font></td>
410 <td><font size="1" align="right">{contact.display_name}</font></td>
413 <td colspan="2"></td>
414 <td><font size="1" align="right" style="font-weight:bold;">{ts}Credit Note#:{/ts}</font></td>
415 <td><font size="1" align="right">{$creditnote_id}</font></td>
417 <tr><td colspan="5"style="color:#F5F5F5;"><hr></hr></td></tr>
419 <td colspan="2"></td>
420 <td><font size="1" align="right" style="font-weight:bold;">{ts}Credit Amount:{/ts}</font></td>
421 <td width='50px'><font size="1" align="right" style="font-weight:bold;">{$amount|crmMoney:$currency}</font></td>