<body bgcolor=ffffff> <table width="100%"> <?lsmb INCLUDE letterhead.html ?> <tr> <td width=10> </td> <th colspan=3> <h4>I N V O I C E</h4> </th> </tr> <tr> <td> </td> <td> <table width=100% callspacing=0 cellpadding=0> <tr bgcolor=000000> <th align=left width="50%"><font color=ffffff>To</th> <th align=left width="50%"><font color=ffffff>Ship To</th> </tr> <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 ?> </td> <td><?lsmb shiptoname ?> <br><?lsmb shiptoaddress1 ?> <?lsmb IF shiptoaddress2 ?> <br><?lsmb shiptoaddress2 ?> <?lsmb END ?> <br><?lsmb shiptocity ?> <?lsmb IF shiptostate ?> , <?lsmb shiptostate ?> <?lsmb END ?> <?lsmb shiptozipcode ?> <?lsmb IF shiptocountry ?> <br><?lsmb shiptocountry ?> <?lsmb END ?> <br> <?lsmb IF shiptocontact ?> <br><?lsmb shiptocontact ?> <br> <?lsmb END ?> <?lsmb IF shiptophone ?> <br>Tel: <?lsmb shiptophone ?> <?lsmb END ?> <?lsmb IF shiptofax ?> <br>Fax: <?lsmb shiptofax ?> <?lsmb END ?> <?lsmb IF shiptoemail ?> <br><?lsmb shiptoemail ?> <?lsmb END ?> </td> </tr> </table> </td> </tr> <tr height=5></tr> <tr> <td> </td> <td> <table width=100% border=1> <tr> <th width=14% align=left nowrap>Invoice #</th> <th width=14% align=left nowrap>Date</th> <th width=14% align=left nowrap>Due</th> <th width=14% align=left>Order #</th> <th width=14% align=left nowrap>Salesperson</th> <th width=14% align=left nowrap>Shipping Point</th> <th width=14% align=left nowrap>Ship via</th> </tr> <tr> <td><?lsmb invnumber ?></td> <td><?lsmb invdate ?></td> <td><?lsmb duedate ?></td> <td><?lsmb ordnumber ?> </td> <td><?lsmb employee ?> </td> <td><?lsmb shippingpoint ?> </td> <td><?lsmb shipvia ?> </td> </tr> </table> </td> </tr> <tr> <td> </td> <td> <table width="100%"> <tr bgcolor=000000> <th align=right><font color=ffffff>Item</th> <th align=left><font color=ffffff>Number</th> <th align=left><font color=ffffff>Description</th> <th> </th> <th align=right><font color=ffffff>Qt'y</th> <th> </th> <th align=right><font color=ffffff>Unit Price</th> <th align=right><font color=ffffff>Disc %</th> <th align=right><font color=ffffff>Extended</th> </tr> <?lsmb FOREACH number ?> <?lsmb loop_count = loop.count - 1 ?> <tr valign=top> <td align=right><?lsmb runningnumber.${loop_count} ?>.</td> <td><?lsmb number.${loop_count} ?></td> <td><?lsmb description.${loop_count} ?></td> <td><?lsmb deliverydate.${loop_count} ?></td> <td align=right><?lsmb qty.${loop_count} ?></td> <td><?lsmb unit.${loop_count} ?></td> <td align=right><?lsmb sellprice.${loop_count} ?></td> <td align=right><?lsmb discountrate.${loop_count} ?></td> <td align=right><?lsmb linetotal.${loop_count} ?></td> </tr> <?lsmb END ?> <tr> <td colspan=9><hr noshade></td> </tr> <tr> <?lsmb IF taxincluded ?> <th colspan=7 align=right>Total</th> <td colspan=2 align=right><?lsmb invtotal ?></td> <?lsmb ELSE ?> <th colspan=7 align=right>Subtotal</th> <td colspan=2 align=right><?lsmb subtotal ?></td> <?lsmb END ?> </tr> <?lsmb FOREACH tax ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <th colspan=7 align=right><?lsmb taxdescription.${loop_count} ?> on <?lsmb taxbase.${loop_count} ?> @ <?lsmb taxrate.${loop_count} ?> %</th> <td colspan=2 align=right><?lsmb tax.${loop_count} ?></td> </tr> <?lsmb END ?> <?lsmb IF paid ?> <tr> <th colspan=7 align=right>Paid</th> <td colspan=2 align=right>- <?lsmb paid ?></td> </tr> <?lsmb END ?> <tr> <td colspan=5> </td> <td colspan=4><hr noshade></td> </tr> <?lsmb IF total ?> <tr> <td colspan=5> </td> <th colspan=2 align=right nowrap>Balance Due</th> <th colspan=2 align=right><?lsmb total ?></th> </tr> <?lsmb END ?> <tr> </table> </td> </tr> <tr> <td> </td> <td> <table width="100%"> <tr valign=top> <?lsmb IF notes ?> <td><?lsmb notes ?></td> <?lsmb END ?> <td><?lsmb text_amount ?> ***** <?lsmb decimal ?>/100</td> <td align=right nowrap> All prices in <b><?lsmb currency ?></b> </td> </tr> </table> </td> </tr> <?lsmb IF paid_1 ?> <tr> <td> </td> <td colspan=9> <table width="60%"> <tr> <th align=left>Payments</th> </tr> <tr> <td colspan=4> <hr noshade> </td> </tr> <tr> <th align=left>Date</th> <th align=left>Account</th> <th align=left>Source</th> <th align=left>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><?lsmb payment.${loop_count} ?></td> </tr> <?lsmb END ?> <?lsmb IF paid_1 ?> </table> </td> </tr> <?lsmb END ?> <tr height=10></tr> <tr> <td> </td> <th> Thank you for your valued business! </th> </tr> <tr> <td> </td> <td> <table width="100%"> <tr valign=top> <td width="60%"><font size=-3> Payment due by <?lsmb duedate ?>. Items returned are subject to a 10% restocking charge. A return authorization must be obtained from <?lsmb company ?> before goods are returned. Returns must be shipped prepaid and properly insured. <?lsmb company ?> will not be responsible for damages during transit. </font> </td> <td width="40%"> X <hr noshade> </td> </tr> </table> </td> </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=8 align=left><font size=-2>Taxes shown are included in price.</th> </tr> <?lsmb END ?> </table> </body> </html>