<?lsmb#   This is a comment block; it's ignored by the template engine.

   Version:  1.0
   Date:     2021-01-04
   File:     packing_list.html
   Set:      demo

Template version numbers are explicitly not aligned across templates or
releases. No explicit versioning was applied before 2021-01-04.

-?>
<!DOCTYPE html>
<html>
<head>
  <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0">
  <title><?lsmb text('Packing List') ?></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <style type="text/css">
  body {
  background-color: white;
  }
  span.c4 {font-size: 51%}
  tr.c3 {background-color: black}
  span.c2 {color: white}
  h4.c1 {text-transform:uppercase}
  </style>
</head>
<body>
  <table width="100%">
    <?lsmb INCLUDE letterhead ?>
    <tr>
      <th colspan="3">
        <h4 class="c1"><?lsmb text('Packing List') ?></h4>
      </th>
    </tr>
    <tr>
      <td>
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr class="c3">
            <th width="50%" align="left"><span class="c2"><?lsmb text('Ship To:') ?></span></th>
            <th width="50%">&nbsp;</th>
          </tr>
          <tr valign="top">
            <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 ?></td>
            <td><?lsmb IF shiptocontact ?><br>
            <?lsmb text('Attn: [_1]', shiptocontact) ?> <?lsmb END ?> <?lsmb IF shiptophone ?><br>
            <?lsmb text('Tel: [_1]', shiptophone) ?> <?lsmb END ?> <?lsmb IF shiptofax ?><br>
            <?lsmb text('Fax: [_1]', shiptofax) ?> <?lsmb END ?> <?lsmb shiptoemail ?></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td></td>
    </tr>
    <tr>
      <td>
        <table width="100%" border="1">
          <tr>
            <th width="17%" align="left"><?lsmb text('Invoice #') ?></th>
            <th width="17%" align="left"><?lsmb text('Order #') ?></th>
            <th width="17%" align="left"><?lsmb text('Date') ?></th>
            <th width="17%" align="left" nowrap><?lsmb text('Contact') ?></th><?lsmb IF warehouse ?>
            <th width="17%" align="left"><?lsmb text('Warehouse') ?></th><?lsmb END ?>
            <th width="17%" align="left"><?lsmb text('Shipping Point') ?></th>
            <th width="15%" align="left"><?lsmb text('Ship via') ?></th>
          </tr>
          <tr>
            <td><?lsmb invnumber ?>&nbsp;</td>
            <td><?lsmb ordnumber ?>&nbsp;</td><?lsmb IF shippingdate ?>
            <td><?lsmb shippingdate ?></td><?lsmb ELSE ?>
            <td><?lsmb transdate ?></td><?lsmb END ?>
            <td><?lsmb employee ?>&nbsp;</td><?lsmb IF warehouse ?>
            <td><?lsmb warehouse ?>&nbsp;</td><?lsmb END ?>
            <td><?lsmb shippingpoint ?>&nbsp;</td>
            <td><?lsmb shipvia ?>&nbsp;</td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <table width="100%">
          <tr class="c3">
            <th align="left"><span class="c2"><?lsmb text('Item') ?></span></th>
            <th align="left"><span class="c2"><?lsmb text('Number') ?></span></th>
            <th align="left"><span class="c2"><?lsmb text('Description') ?></span></th>
            <th align="left"><span class="c2"><?lsmb text('Serial #') ?></span></th>
            <th>&nbsp;</th>
            <th><span class="c2"><?lsmb text('Qty') ?></span></th>
            <th><span class="c2"><?lsmb text('Ship') ?></span></th>
            <th>&nbsp;</th>
          </tr><?lsmb FOREACH number ?><?lsmb loop_count = loop.index ?>
          <tr valign="top">
            <td><?lsmb runningnumber.${loop_count} ?></td>
            <td><?lsmb number.${loop_count} ?></td>
            <td><?lsmb item_description.${loop_count}.replace("\n","<br />") ?></td>
            <td><?lsmb serialnumber.${loop_count} ?></td>
            <td><?lsmb deliverydate.${loop_count} ?></td>
            <td align="right"><?lsmb qty.${loop_count} ?></td>
            <td align="right"><?lsmb ship.${loop_count} ?></td>
            <td><?lsmb unit.${loop_count} ?></td>
          </tr><?lsmb END ?>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <hr noshade>
      </td>
    </tr><?lsmb IF notes ?>
    <tr>
      <td>
        <table width="100%">
          <tr valign="top">
            <td>Notes</td>
            <td>
              <?lsmb  FOREACH P IN notes.split('\n\n') ?>
              <p><?lsmb P ?></p><?lsmb END ?>
            </td>
          </tr>
        </table>
      </td>
    </tr><?lsmb END ?>
    <tr>
      <td>
        <table width="100%">
          <tr valign="top">
            <td width="70%"><span class=
            "c4"><?lsmb text('Items returned are subject to a 10% restocking charge. A return authorization must be obtained from [_1] before goods are returned. Returns must be shipped prepaid and properly insured. [_1] will not be responsible for damages during transit.', company) ?></span></td>
            <td width="30%">
              X
              <hr noshade>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</body>
</html>
