  <section id="items">
    <h3>Production Items</h3>
    <table class="list">
      <thead>
        <tr>
          <td>${ _("Code") }</td>
          <td>${ _("Item") }</td>
          <td>${ _("Quantity") }</td>
          <td>${ _("Produced") }</td>
          <td>${ _("Lost") }</td>
        </tr>
      </thead>

      <tfoot>
        <tr>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </tfoot>

      <tbody >
        <%
          to_produce = 0
          produced = 0
          lost = 0
        %>
        % for item in report.order.get_items():
          <%
            to_produce += item.quantity
            produced += item.produced
            lost += item.lost
          %>
          <tr>
            <td>${ item.product.sellable.code }</td>
            <td>${ item.product.sellable.get_description() }</td>
            <td>${ format_quantity(item.quantity)} ${ item.get_unit_description() }</td>
            <td>${ format_quantity(item.produced)} ${ item.get_unit_description() }</td>
            <td>${ format_quantity(item.lost)} ${ item.get_unit_description() }</td>
          </tr>
        % endfor
        <tr class="summary">
          <td></td>
          <td></td>
          <td>${ format_quantity(to_produce)} ${ item.get_unit_description() }</td>
          <td>${ format_quantity(produced)} ${ item.get_unit_description() }</td>
          <td>${ format_quantity(lost)} ${ item.get_unit_description() }</td>
        </tr>
      </tbody>
    </table>
  </section>


