<commit_before><html>
<head>
<style type="text/css">
${css}
.description {
    font-family: helvetica;
    font-size: 9px;
}
</style>
</head>
<body>
<%from datetime import date %>
<table style="border:solid 0px" width="100%">
  <tr>
      <td align="left">${_('Date')}: ${formatLang(str(date.today()), date=True)}</td>
      <td align="right">${_('Printed by')}: ${user.name}  </td>
  </tr>  
</table>
<br/>
<br/>

%for aggr in objects:
<table style="border:solid 0px" width="100%">
  <tr> 
    <td colspan="2" align="center"><h1>${_('Dispatch Order')} ${aggr.dispatch_name}</h1></td>
  </tr>
  <tr>
     <td> <br /><b>${_('Picked by')}: ${aggr.picker_id.name} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ${_('Visa')}:_________________ <b></td>
   </tr>
</table>
<br/>
<br/>
<p>${aggr.dispatch_notes}</p>
<br/>
%for locations, product_quantities in aggr.iter_locations():
<table style="border:solid 1px" width="100%">
  <caption><b><u>${locations[0]} &#x21E8; ${locations[1]}</u></b></caption>
  <tr></tr>
  <tr align="left">
    <th>${_('Product Code')}</th>
    <th>${_('Product')}</th>
    <th>${_('Carrier')}</th>
    <th>${_('QTY')}</th>
    <th>${_('Explanation')}</th>
  </tr>  
  %for product, qty, carrier in product_quantities:
      <tr align="left">
        <td>${product.default_code}</td>
        <td>${product.name}</td>
        <td>${carrier}</td>
        <td>${qty}</td>
        <td>${_('stock error')}<br/>${_('breakage')}</td>
      </tr>
      <tr align="left">
        <td colspan="4"><pre class="description ">${product.description_warehouse and product.description_warehouse or ''}</pre></td>
      </tr>
  %endfor
</table>
%endfor
        <p style="page-break-after:always">&nbsp</>
%endfor
</body>
</html><commit_msg>[IMP] Add the variant in the dispatch report<commit_after><html>
<head>
<style type="text/css">
${css}
.description {
    font-family: helvetica;
    font-size: 9px;
}
</style>
</head>
<body>
<%from datetime import date %>
<table style="border:solid 0px" width="100%">
  <tr>
      <td align="left">${_('Date')}: ${formatLang(str(date.today()), date=True)}</td>
      <td align="right">${_('Printed by')}: ${user.name}  </td>
  </tr>  
</table>
<br/>
<br/>

%for aggr in objects:
<table style="border:solid 0px" width="100%">
  <tr> 
    <td colspan="2" align="center"><h1>${_('Dispatch Order')} ${aggr.dispatch_name}</h1></td>
  </tr>
  <tr>
     <td> <br /><b>${_('Picked by')}: ${aggr.picker_id.name} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ${_('Visa')}:_________________ <b></td>
   </tr>
</table>
<br/>
<br/>
<p>${aggr.dispatch_notes}</p>
<br/>
%for locations, product_quantities in aggr.iter_locations():
<table style="border:solid 1px" width="100%">
  <caption><b><u>${locations[0]} &#x21E8; ${locations[1]}</u></b></caption>
  <tr></tr>
  <tr align="left">
    <th>${_('Product Code')}</th>
    <th>${_('Product')}</th>
    <th>${_('Variant')}</th>
    <th>${_('Carrier')}</th>
    <th>${_('QTY')}</th>
    <th>${_('Explanation')}</th>
  </tr>  
  %for product, qty, carrier in product_quantities:
      <tr align="left">
        <td>${product.default_code}</td>
        <td>${product.name}</td>
        <td>
            %if product.variants:
              ${product.variants}
            %else:
              ${'-'}
            %endif
        </td>
        <td>${carrier}</td>
        <td>${qty}</td>
        <td>${_('stock error')}<br/>${_('breakage')}</td>
      </tr>
      <tr align="left">
        <td colspan="4"><pre class="description ">${product.description_warehouse and product.description_warehouse or ''}</pre></td>
      </tr>
  %endfor
</table>
%endfor
        <p style="page-break-after:always">&nbsp</>
%endfor
</body>
</html>
{'fraction_non_alphanumeric': 0.26069301570113695, 'fraction_numerical': 0.011911207363291824, 'mean_word_length': 3.595771144278607, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5384290', 'n_tokens_mistral': 1470, 'n_tokens_neox': 1440, 'n_words': 266}