<commit_before><?php use_helper('TemplatingPDF') ?>
<?php use_helper('Float') ?>
<?php 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;Tel / Fax : <i><?php echo $drev->declarant->telephone ?> / <?php echo $drev->declarant->fax ?></i></td>
        <td>N° CVI : <i><?php echo $drev->declarant->cvi ?></i></td>
    </tr>
    <tr>
        <td>&nbsp;Adresse : <i><?php echo $drev->declarant->adresse ?></i></td>
        <td>&nbsp;Email : <i><?php echo $drev->declarant->email ?></i></td>
        <td>SIRET : <i><?php echo $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></td>
    </tr>
</table>
</td></tr></table>
<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: 247px;">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>
    </tr>
    <?php foreach($drev->declaration->getProduits(true) 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 echo sprintFloatFr($produit->superficie_revendique) ?>&nbsp;<small>ha</small>&nbsp;&nbsp;&nbsp;</td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php echo sprintFloatFr($produit->volume_revendique_avec_vci) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;</td>
        </tr>
    <?php endforeach; ?>
</table>
<br />
<?php if(count($drev->declaration->getProduitsVci(true))): ?>
<div><span class="h3">&nbsp;Répartition 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;">Complément</th>
        <th class="th" style="text-align: center; width: 100px;">Substitution</th>
        <th class="th" style="text-align: center; width: 100px;">Destruction</th>
        <th class="th" style="text-align: center; width: 100px;">Rafraichi</th>
        <th class="th" style="text-align: center; width: 100px;">Constitué</th>
        <th class="th" style="text-align: center; width: 100px;">Stock <?php echo $drev->campagne ?></th>
    </tr>
    <?php foreach($drev->declaration->getProduitsVci(true) 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_initial): ?><?php echo sprintFloatFr($produit->vci_stock_initial) ?>&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_dr): ?><?php echo sprintFloatFr($produit->vci_complement_dr) ?>&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_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_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): ?><?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_stock_final): ?><?php echo sprintFloatFr($produit->vci_rafraichi) ?>&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 à justifier le volume de VCI à détruire auprès de l'ODG
<?php endif; ?>
<?php else: ?>
<br />
<em>Aucun stock VCI déclaré</em>
<?php endif; ?>
<?php if(DRevConfiguration::getInstance()->hasPrelevements()): ?>
    <br />
    <br />
    <br />
    <table cellspacing=0 cellpadding=0>
    <tr><td class="tdH2Big"><span class="h2">Dégustation conseil</span></td></tr>
    </table>
    <?php include_partial('drev/pdfPrelevements', array('drev' => $drev, 'type' => DRev::CUVE)); ?>
    <br />
    <br />
    <?php if(count($drev->getPrelevementsByDate(DRev::BOUTEILLE)) > 0 || $drev->isNonConditionneurJustForThisMillesime()): ?>
    <br />
    <table cellspacing=0 cellpadding=0>
    <tr><td class="tdH2Big"><span class="h2">Contrôle externe</span></td></tr>
    </table>
    <?php if(count($drev->getPrelevementsByDate(DRev::BOUTEILLE)) > 0): ?>
    <?php include_partial('drev/pdfPrelevements', array('drev' => $drev, 'type' => DRev::BOUTEILLE)); ?>
    <?php elseif($drev->isNonConditionneurJustForThisMillesime()): ?>
    <em>Ne conditionne pas de volume pour ce millésime.</em>
    <?php endif; ?>
    <?php endif; ?>
<?php endif; ?>
<commit_msg>Modification de texte<commit_after><?php use_helper('TemplatingPDF') ?>
<?php use_helper('Float') ?>
<?php 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;Tel / Fax : <i><?php echo $drev->declarant->telephone ?> / <?php echo $drev->declarant->fax ?></i></td>
        <td>N° CVI : <i><?php echo $drev->declarant->cvi ?></i></td>
    </tr>
    <tr>
        <td>&nbsp;Adresse : <i><?php echo $drev->declarant->adresse ?></i></td>
        <td>&nbsp;Email : <i><?php echo $drev->declarant->email ?></i></td>
        <td>SIRET : <i><?php echo $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></td>
    </tr>
</table>
</td></tr></table>
<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: 247px;">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>
    </tr>
    <?php foreach($drev->declaration->getProduits(true) 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 echo sprintFloatFr($produit->superficie_revendique) ?>&nbsp;<small>ha</small>&nbsp;&nbsp;&nbsp;</td>
            <td class="td" style="text-align:right;"><?php echo tdStart() ?><?php echo sprintFloatFr($produit->volume_revendique_avec_vci) ?>&nbsp;<small>hl</small>&nbsp;&nbsp;&nbsp;</td>
        </tr>
    <?php endforeach; ?>
</table>
<br />
<?php if(count($drev->declaration->getProduitsVci(true))): ?>
<div><span class="h3">&nbsp;Répartition 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;">Complément</th>
        <th class="th" style="text-align: center; width: 100px;">Substitution</th>
        <th class="th" style="text-align: center; width: 100px;">Destruction</th>
        <th class="th" style="text-align: center; width: 100px;">Rafraichi</th>
        <th class="th" style="text-align: center; width: 100px;">Constitué</th>
        <th class="th" style="text-align: center; width: 100px;">Stock <?php echo $drev->campagne ?></th>
    </tr>
    <?php foreach($drev->declaration->getProduitsVci(true) 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_initial): ?><?php echo sprintFloatFr($produit->vci_stock_initial) ?>&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_dr): ?><?php echo sprintFloatFr($produit->vci_complement_dr) ?>&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_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_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): ?><?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_stock_final): ?><?php echo sprintFloatFr($produit->vci_rafraichi) ?>&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 à justifier le volume de VCI à détruire auprès de l'ODG
<?php endif; ?>
<?php else: ?>
<br />
<em>Aucun stock VCI déclaré</em>
<?php endif; ?>
<?php if(DRevConfiguration::getInstance()->hasPrelevements()): ?>
    <br />
    <br />
    <br />
    <table cellspacing=0 cellpadding=0>
    <tr><td class="tdH2Big"><span class="h2">Dégustation conseil</span></td></tr>
    </table>
    <?php include_partial('drev/pdfPrelevements', array('drev' => $drev, 'type' => DRev::CUVE)); ?>
    <br />
    <br />
    <?php if(count($drev->getPrelevementsByDate(DRev::BOUTEILLE)) > 0 || $drev->isNonConditionneurJustForThisMillesime()): ?>
    <br />
    <table cellspacing=0 cellpadding=0>
    <tr><td class="tdH2Big"><span class="h2">Contrôle externe</span></td></tr>
    </table>
    <?php if(count($drev->getPrelevementsByDate(DRev::BOUTEILLE)) > 0): ?>
    <?php include_partial('drev/pdfPrelevements', array('drev' => $drev, 'type' => DRev::BOUTEILLE)); ?>
    <?php elseif($drev->isNonConditionneurJustForThisMillesime()): ?>
    <em>Ne conditionne pas de volume pour ce millésime.</em>
    <?php endif; ?>
    <?php endif; ?>
<?php endif; ?>

{'fraction_non_alphanumeric': 0.23149254920710813, 'fraction_numerical': 0.009562514941429595, 'mean_word_length': 4.637915543575921, 'pattern_counts': {'":': 0, '<': 477, '<?xml version=': 0, '>': 589, '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': '3952400', 'n_tokens_mistral': 4612, 'n_tokens_neox': 4513, 'n_words': 854}