<body bgcolor=ffffff> <table width="100%"> <?lsmb INCLUDE letterhead.html ?> <tr> <td width=10> </td> <th colspan=3> <h4>A R - T R A N S A C T I O N</h4> </th> </tr> <tr> <td> </td> <td> <table width=100% callspacing=0 cellpadding=0> <tr valign=top> <td><?lsmb name ?> <br><?lsmb address1 ?> <?lsmb IF address2 ?> <br><?lsmb address2 ?> <?lsmb END ?> <br><?lsmb city ?> <?lsmb IF state ?> , <?lsmb state ?> <?lsmb END ?> <?lsmb zipcode ?> <?lsmb IF country ?> <br><?lsmb country ?> <?lsmb END ?> <br> <?lsmb IF contact ?> <br><?lsmb contact ?> <br> <?lsmb END ?> <?lsmb IF customerphone ?> <br>Tel: <?lsmb customerphone ?> <?lsmb END ?> <?lsmb IF customerfax ?> <br>Fax: <?lsmb customerfax ?> <?lsmb END ?> <?lsmb IF email ?> <br><?lsmb email ?> <?lsmb END ?> <?lsmb IF customertaxnumber ?> <br>Taxnumber: <?lsmb customertaxnumber ?> <?lsmb END ?> </td> <td align=right> <table> <tr> <th align=left nowrap>Invoice #</th> <td><?lsmb invnumber ?></td> </tr> <tr> <th align=left nowrap>Date</th> <td><?lsmb invdate ?></td> </tr> <tr> <th align=left nowrap>Due</th> <td><?lsmb duedate ?></td> </tr> <?lsmb IF ponumber ?> <tr> <th align=left>PO #</th> <td><?lsmb ponumber ?> </td> </tr> <?lsmb END ?> <?lsmb IF ordnumber ?> <tr> <th align=left>Order #</th> <td><?lsmb ordnumber ?> </td> </tr> <?lsmb END ?> <tr> <th align=left nowrap>Salesperson</th> <td><?lsmb employee ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr height=5></tr> <tr> <td> </td> <td> <table> <?lsmb FOREACH account ?> <?lsmb loop_count = loop.count - 1 ?> <tr valign=top> <td><?lsmb accno.${loop_count} ?></td> <td><?lsmb account.${loop_count} ?></td> <td width=10> </td> <td align=right><?lsmb amount.${loop_count} ?></td> <td width=10> </td> <td><?lsmb description.${loop_count} ?></td> <td width=10> </td> <td><?lsmb projectnumber.${loop_count} ?></td> </tr> <?lsmb END ?> <tr> <?lsmb IF taxincluded ?> <th colspan=2 align=right>Total</th> <td width=10> </td> <td align=right><?lsmb invtotal ?></td> <?lsmb ELSE ?> <th colspan=2 align=right>Subtotal</th> <td width=10> </td> <td align=right><?lsmb subtotal ?></td> <?lsmb END ?> </tr> <?lsmb FOREACH tax ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <th colspan=2 align=right><?lsmb taxdescription.${loop_count} ?> @ <?lsmb taxrate.${loop_count} ?> %</th> <td width=10> </td> <td align=right><?lsmb tax.${loop_count} ?></td> </tr> <?lsmb END ?> <?lsmb IF NOT taxincluded ?> <tr> <th colspan=2 align=right>Total</th> <td width=10> </td> <td align=right><?lsmb invtotal ?></td> </tr> <?lsmb END ?> </table> </td> </tr> <tr> <td> </td> <td> <?lsmb text_amount ?> ***** <?lsmb decimal ?>/100 <?lsmb currency ?> </td> </tr> <tr> <td> </td> <td> <?lsmb notes ?> </td> </tr> <?lsmb IF paid_1 ?> <tr> <td> </td> <td> <table> <tr> <th>Payments</th> </tr> <tr> <td> <hr noshade> </td> </tr> <tr> <td> <table> <tr> <th>Date</th> <th> </th> <th>Source</th> <th>Amount</th> </tr> <?lsmb END ?> <?lsmb FOREACH payment ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td><?lsmb paymentdate.${loop_count} ?></td> <td><?lsmb paymentaccount.${loop_count} ?></td> <td><?lsmb paymentsource.${loop_count} ?></td> <td align=right><?lsmb payment.${loop_count} ?></td> </tr> <?lsmb END ?> <?lsmb IF paid_1 ?> </table> </td> </tr> </table> </td> </tr> <?lsmb END ?> <tr height=10></tr> <?lsmb FOREACH tax ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td> </td> <th colspan=9 align=left><font size=-2><?lsmb taxdescription.${loop_count} ?> Registration <?lsmb taxnumber.${loop_count} ?></th> </tr> <?lsmb END ?> <?lsmb IF taxincluded ?> <tr> <td> </td> </tr> <tr> <th colspan=3 align=left><font size=-2>Taxes shown are included in price.</th> </tr> <?lsmb END ?> </table> </body> </html>