<commit_before><?php use_helper('TemplatingPDF');
 use_helper('Float');
 use_helper('Compte');
 use_helper("Date"); ?>
<style>
<?php echo styleDRev(); ?>
</style>

<span class="h3Alt">&nbsp;Exploitation&nbsp;</span><br/>
<table class="tableAlt"><tr><td>
<table border="0" >
  <tr>
      <td style="width: 360px;">&nbsp;Nom : <i><?php echo $drev->declarant->raison_sociale ?></i></td>
      <td style="width: 300px;">&nbsp;Téléphones : <i><?php echo $drev->declarant->telephone_mobile ?> / <?php echo $drev->declarant->telephone_bureau ?></i></td>
      <td>N° CVI : <i><?php echo $drev->declarant->cvi ?></i></td>
  </tr>
  <tr>
        <td>&nbsp;Adresse : <i><?php echo str_replace('−', '-', $drev->declarant->adresse); ?></i></td>
        <td>&nbsp;Email : <i><?php echo $drev->declarant->email; ?></i></td>
        <td>SIRET : <i><?php echo formatSIRET($drev->declarant->siret); ?></i></td>
  </tr>
  <tr>
        <td>&nbsp;Commune : <i><?php echo $drev->declarant->code_postal; ?> <?php echo $drev->declarant->commune; ?></i></td>
        <td></td>
        <td>&nbsp;N° Adhérent : <i><?php echo preg_replace('/..$/', '', $drev->identifiant); ?></i></td>
  </tr>
</table>
</td></tr></table>
<?php if(count($drev->declaration->getProduitsWithoutLots($region))): ?>
<br />
<div><span class="h3">&nbsp;Revendication&nbsp;</span></div>
<table class="table" border="1" cellspacing=0 cellpadding=0 style="text-align: right;">
    <tr>
        <th class="th" style="text-align: left; width: 440px;">Appellation</th>
        <th class="th" style="text-align: center; width: 170px;">Superficie revendiquée</th>
        <th class="th" style="text-align: center; width: 170px;">Volume revendiqué net total</th>
        <th class="th" style="text-align: center; width: 170px;">Dont VCI</th>
    </tr>
    <?php foreach($drev->declaration->getProduitsWithoutLots($region) as $produit): ?>
        <tr>
            <td class="td" style="text-align:left;"><?php echo tdStart() ?>&nbsp;<?php echo $produit->getLibelleComplet() ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if ($produit->superficie_revendique): ?><?php echo sprintFloatFr($produit->superficie_revendique) ?>&nbsp;<small>ha</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if ($produit->volume_revendique_total): ?><?php echo sprintFloatFr($produit->volume_revendique_total) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if ($produit->volume_revendique_issu_vci): ?><?php echo sprintFloatFr($produit->volume_revendique_issu_vci) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
        </tr>
    <?php endforeach; ?>
</table>
<br />
<?php if(count($drev->declaration->getProduitsVci($region))): ?>
<div><span class="h3">&nbsp;Gestion du VCI&nbsp;</span></div>
<table class="table" border="1" cellspacing=0 cellpadding=0 style="text-align: right;">
    <tr>
        <th class="th" style="text-align: left; width: 247px;">Appellation</th>
        <th class="th" style="text-align: center; width: 100px;">Stock <?php echo ($drev->campagne - 1) ?></th>
        <th class="th" style="text-align: center; width: 100px;">A détruire</th>
        <th class="th" style="text-align: center; width: 100px;">Complément</th>
        <th class="th" style="text-align: center; width: 100px;">Substitution</th>
        <th class="th" style="text-align: center; width: 100px;">Rafraichi</th>
        <th class="th" style="text-align: center; width: 100px;">Constitué <?php echo $drev->campagne ?></th>
        <th class="th" style="text-align: center; width: 100px;">Stock <?php echo $drev->campagne ?></th>
    </tr>
    <?php foreach($drev->declaration->getProduitsVci($region) as $produit): ?>
        <tr>
            <td class="td" style="text-align:left;"><?php echo tdStart() ?>&nbsp;<?php echo $produit->getLibelleComplet() ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->stock_precedent): ?><?php echo sprintFloatFr($produit->vci->stock_precedent) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->destruction): ?><?php echo sprintFloatFr($produit->vci->destruction) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->complement): ?><?php echo sprintFloatFr($produit->vci->complement) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->substitution): ?><?php echo sprintFloatFr($produit->vci->substitution) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->rafraichi): ?><?php echo sprintFloatFr($produit->vci->rafraichi) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->constitue): ?><?php echo sprintFloatFr($produit->vci->constitue) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->stock_final): ?><?php echo sprintFloatFr($produit->vci->stock_final) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
        </tr>
    <?php endforeach; ?>
</table>
<br /><br />
Les produits déclarés sont du millésime du VCI
<?php if($drev->hasVciDetruit()): ?>
<br /><br />
<span style="font-family: Dejavusans">☑</span> Je m'engage à transmettre le justificatif de destruction de VCI
<?php endif; ?>
<?php else: ?>
<br />
<em>Aucun stock VCI déclaré</em>
<?php endif; ?>
<br />
<?php endif; ?>

<?php if(count($drev->declaration->getProduitsLots($region)) && $drev->exist('lots') && count($drev->lots)): ?>
<br />
<div><span class="h3">&nbsp;Declaration des lots&nbsp;</span></div>
<table border="1" class="table" cellspacing=0 cellpadding=0 style="text-align: right;">
    <tr>
        <th class="th" style="text-align: left; width: 50px">&nbsp;Lot</th>
        <th class="th" style="text-align: left; width: 450px">&nbsp;Appellation (millésime)</th>
        <th class="th" style="text-align: center; width: 150px">Volume</th>
        <th class="th" style="text-align: center; width: 230px">&nbsp;Destination (date)</th>
    </tr>
<?php foreach($drev->lots as $lot): ?>
<?php   if($lot->hasVolumeAndHashProduit()): ?>
    <tr>
        <td class="td" style="text-align: left;"><?php echo tdStart() ?>&nbsp;<?php echo $lot->numero ?></td>
        <td class="td" style="text-align: left;"><?php echo tdStart() ?>&nbsp;<?php echo $lot->produit_libelle ?> (<?php echo $lot->millesime ?>)</td>
        <td class="td" style="text-align: right;"><?php echo tdStart() ?><?php echo sprintFloatFr($lot->volume) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;</td>
        <td class="td" style="text-align: center;"><?php echo tdStart() ?><?php echo $lot->destination_type; echo ($lot->destination_date) ? " (".$lot->getDestinationDateFr().")" : ''; ?></td>
    </tr>
    <?php endif; ?>
<?php endforeach; ?>
</table>
<?php endif; ?><commit_msg>modification libelle header pdf drev<commit_after><?php use_helper('TemplatingPDF');
 use_helper('Float');
 use_helper('Compte');
 use_helper("Date"); ?>
<style>
<?php echo styleDRev(); ?>
</style>

<span class="h3Alt">&nbsp;Exploitation&nbsp;</span><br/>
<table class="tableAlt"><tr><td>
<table border="0" >
  <tr>
      <td style="width: 360px;">&nbsp;Nom : <i><?php echo $drev->declarant->raison_sociale ?></i></td>
      <td style="width: 300px;">&nbsp;Téléphones : <i><?php echo $drev->declarant->telephone_mobile ?> / <?php echo $drev->declarant->telephone_bureau ?></i></td>
      <td>N° CVI : <i><?php echo $drev->declarant->cvi ?></i></td>
  </tr>
  <tr>
        <td>&nbsp;Adresse : <i><?php echo str_replace('−', '-', $drev->declarant->adresse); ?></i></td>
        <td>&nbsp;Email : <i><?php echo $drev->declarant->email; ?></i></td>
        <td>SIRET : <i><?php echo formatSIRET($drev->declarant->siret); ?></i></td>
  </tr>
  <tr>
        <td>&nbsp;Commune : <i><?php echo $drev->declarant->code_postal; ?> <?php echo $drev->declarant->commune; ?></i></td>
        <td></td>
        <td>&nbsp;N° Adhérent : <i><?php echo preg_replace('/..$/', '', $drev->identifiant); ?></i></td>
  </tr>
</table>
</td></tr></table>
<?php if(count($drev->declaration->getProduitsWithoutLots($region))): ?>
<br />
<div><span class="h3">&nbsp;Revendication&nbsp;</span></div>
<table class="table" border="1" cellspacing=0 cellpadding=0 style="text-align: right;">
    <tr>
        <th class="th" style="text-align: left; width: 440px;">Produit</th>
        <th class="th" style="text-align: center; width: 170px;">Superficie revendiquée</th>
        <th class="th" style="text-align: center; width: 170px;">Volume revendiqué net total</th>
        <th class="th" style="text-align: center; width: 170px;">Dont VCI</th>
    </tr>
    <?php foreach($drev->declaration->getProduitsWithoutLots($region) as $produit): ?>
        <tr>
            <td class="td" style="text-align:left;"><?php echo tdStart() ?>&nbsp;<?php echo $produit->getLibelleComplet() ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if ($produit->superficie_revendique): ?><?php echo sprintFloatFr($produit->superficie_revendique) ?>&nbsp;<small>ha</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if ($produit->volume_revendique_total): ?><?php echo sprintFloatFr($produit->volume_revendique_total) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if ($produit->volume_revendique_issu_vci): ?><?php echo sprintFloatFr($produit->volume_revendique_issu_vci) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
        </tr>
    <?php endforeach; ?>
</table>
<br />
<?php if(count($drev->declaration->getProduitsVci($region))): ?>
<div><span class="h3">&nbsp;Gestion du VCI&nbsp;</span></div>
<table class="table" border="1" cellspacing=0 cellpadding=0 style="text-align: right;">
    <tr>
        <th class="th" style="text-align: left; width: 247px;">Produit</th>
        <th class="th" style="text-align: center; width: 100px;">Stock <?php echo ($drev->campagne - 1) ?></th>
        <th class="th" style="text-align: center; width: 100px;">A détruire</th>
        <th class="th" style="text-align: center; width: 100px;">Complément</th>
        <th class="th" style="text-align: center; width: 100px;">Substitution</th>
        <th class="th" style="text-align: center; width: 100px;">Rafraichi</th>
        <th class="th" style="text-align: center; width: 100px;">Constitué <?php echo $drev->campagne ?></th>
        <th class="th" style="text-align: center; width: 100px;">Stock <?php echo $drev->campagne ?></th>
    </tr>
    <?php foreach($drev->declaration->getProduitsVci($region) as $produit): ?>
        <tr>
            <td class="td" style="text-align:left;"><?php echo tdStart() ?>&nbsp;<?php echo $produit->getLibelleComplet() ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->stock_precedent): ?><?php echo sprintFloatFr($produit->vci->stock_precedent) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->destruction): ?><?php echo sprintFloatFr($produit->vci->destruction) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->complement): ?><?php echo sprintFloatFr($produit->vci->complement) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->substitution): ?><?php echo sprintFloatFr($produit->vci->substitution) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->rafraichi): ?><?php echo sprintFloatFr($produit->vci->rafraichi) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->constitue): ?><?php echo sprintFloatFr($produit->vci->constitue) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php if($produit->vci->stock_final): ?><?php echo sprintFloatFr($produit->vci->stock_final) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;<?php endif; ?></td>
        </tr>
    <?php endforeach; ?>
</table>
<br /><br />
Les produits déclarés sont du millésime du VCI
<?php if($drev->hasVciDetruit()): ?>
<br /><br />
<span style="font-family: Dejavusans">☑</span> Je m'engage à transmettre le justificatif de destruction de VCI
<?php endif; ?>
<?php else: ?>
<br />
<em>Aucun stock VCI déclaré</em>
<?php endif; ?>
<br />
<?php endif; ?>

<?php if(count($drev->declaration->getProduitsLots($region)) && $drev->exist('lots') && count($drev->lots)): ?>
<br />
<div><span class="h3">&nbsp;Declaration des lots&nbsp;</span></div>
<table border="1" class="table" cellspacing=0 cellpadding=0 style="text-align: right;">
    <tr>
        <th class="th" style="text-align: left; width: 50px">&nbsp;Lot</th>
        <th class="th" style="text-align: left; width: 450px">&nbsp;Produit (millésime)</th>
        <th class="th" style="text-align: center; width: 150px">Volume</th>
        <th class="th" style="text-align: center; width: 230px">&nbsp;Destination (date)</th>
    </tr>
<?php foreach($drev->lots as $lot): ?>
<?php   if($lot->hasVolumeAndHashProduit()): ?>
    <tr>
        <td class="td" style="text-align: left;"><?php echo tdStart() ?>&nbsp;<?php echo $lot->numero ?></td>
        <td class="td" style="text-align: left;"><?php echo tdStart() ?>&nbsp;<?php echo $lot->produit_libelle ?> (<?php echo $lot->millesime ?>)</td>
        <td class="td" style="text-align: right;"><?php echo tdStart() ?><?php echo sprintFloatFr($lot->volume) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;</td>
        <td class="td" style="text-align: center;"><?php echo tdStart() ?><?php echo $lot->destination_type; echo ($lot->destination_date) ? " (".$lot->getDestinationDateFr().")" : ''; ?></td>
    </tr>
    <?php endif; ?>
<?php endforeach; ?>
</table>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.24103972666979298, 'fraction_numerical': 0.009111006900247872, 'mean_word_length': 4.930870083432658, 'pattern_counts': {'":': 0, '<': 537, '<?xml version=': 0, '>': 697, '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': '14842', 'n_tokens_mistral': 5397, 'n_tokens_neox': 5300, 'n_words': 1034}