<commit_before><html>
  <head/>
  <body>

    <style  type="text/css">
     table {
       border-collapse: collapse;
       page-break-after:auto;
       cellspacing="5";
       font-size:20px;
           }
     td {margin: 0px; padding: 3px; border: 1px solid lightgrey;  vertical-align: top; }
    </style>

%for sale_order in objects:
%for line  in sale_order.order_line :
%for prod_line in line.stock_dispo_production_ids:
<br>
<br>
    <table>
      <tbody>
        <tr>
          <td>Dispo-Nr eigen/fremd</td> <td>${sale_order.name} / ${sale_order.client_order_ref or ' - '}  </td>
        </tr>
        <tr>
          <td>Auftraggeber</td> <td>${sale_order.partner_id.name or ''}  </td>
        </tr>
        <tr>
          <td>Empfänger</td> <td>${sale_order.partner_shipping_id.partner_id.name or ''}  </td>
        </tr>
        <tr>
          <td>Datum Dispo</td> <td>${sale_order.date_order}</td>
        </tr>
        <tr>
          <td>BIO-Produkt / Sorte</td> <td>${line.product_id.name} ${line.product_id.variants or ''} ${line.product_packaging.name or ''}   </td>
        </tr>
        <tr>
          <td>Los</td> <td>${(line.prodlot_id.name or '')+'/'+(line.prodlot_id.ref or '')}  </td>
        </tr>
        <tr>
          <td>Feldname/-Nr.(AMA)</td> <td>${ line.location_product_id.name or ''}  </td>
        </tr>
        <tr>
          <td>Sortierung </td> <td>${prod_line.name  or ''}  </td>
        </tr>
        <tr>
          <td>Gewicht </td> <td>${ getattr(prod_line,"product_qty","")} ${line.product_uos.name or '' }  </td>
        </tr><commit_msg>[FIX] layout, variables in badges<commit_after><html>
  <head/>
  <body>

<%import locale%>
<%locale.setlocale(locale.LC_ALL, "de_DE.UTF-8") %>

    <style  type="text/css">
     table {
       border-collapse: collapse;
       page-break-after:auto;
       cellspacing="5";
       font-size:20px;
           }
     td {margin: 0px; padding: 3px; border: 1px solid lightgrey;  vertical-align: top; }
    </style>

%for sale_order in objects:
%for line  in sale_order.order_line :
%for prod_line in line.stock_dispo_production_ids:
<br>
<br>
    <table>
      <tbody>
        <tr>
          <td>Dispo-Nr </td> <td>${sale_order.name} vom ${sale_order.date_order}  </td>
        </tr>
        <tr>
          <td>Auftraggeber</td> <td>${sale_order.partner_id.name or ''}  </td>
        </tr>
        <tr>
          <td>Kundenreferenz</td> <td>${sale_order.client_order_ref or ''}</td>
        </tr>
        <tr>
          <td>Empfänger</td> <td>${sale_order.partner_shipping_id.partner_id.name or ''}  </td>
        </tr>
        <tr>
          <td>BIO-Produkt / Sorte</td> <td>${line.product_id.name} ${line.product_id.variants or ''} ${line.product_packaging.name or ''}   </td>
        </tr>
        <tr>
          <td>Los</td> <td>${(line.prodlot_id.name or '')+'/'+(line.prodlot_id.ref or '')}  </td>
        </tr>
%if line.prodlot_id.global_gap_number:
        <tr>
          <td>Global-Gap-Nr</td> <td>${line.prodlot_id.global_gap_number }  </td>
        </tr>
%endif:
        <tr>
          <td>Feldname/-Nr.(AMA)</td> <td>${ line.location_product_id.name or ''}  </td>
        </tr>
        <tr>
          <td>Sortierung </td> <td>${prod_line.name  or ''}  </td>
        </tr>
        <tr>
          <td>Gewicht </td> <td>${locale.format("%0.0f", prod_line.product_qty,True)} ${line.product_uos.name or '' }  </td>
        </tr>
{'fraction_non_alphanumeric': 0.19361452841241944, 'fraction_numerical': 0.004393673110720563, 'mean_word_length': 2.1591119333950046, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '1696249', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1329, 'n_words': 226}