<commit_before><?php 
use_helper('Float');
include_partial('dsRailEtapes',array('tiers' => $tiers, 'ds' => $ds, 'etape' => 3));
$appellations = $ds->getAppellationsArray();
?>

<h2 class="titre_page"><?php echo $tiers->getCvi();?> : Récapitulatif</h2>

	<!-- fin .header_ds -->
	<ul id="onglets_majeurs" class="clearfix onglets_stock">
            <?php foreach ($appellations as $app_key => $app):  ?>
            <li>
                <?php $app_libelle = $app->libelle; ?>
                <a href="<?php echo url_for('ds_edition_operateur', array('id' => $ds->_id,'appellation_lieu' => $ds->getAppellationLieuKey($app_key))); ?>"><span>
                    <?php echo (preg_match('/^AOC/', $app->libelle))? 'AOC ' : ''; ?>
                    </span> 
                    <br><?php echo (preg_match('/^AOC/', $app->libelle))? substr($app->libelle, 4) : $app->libelle; ?>
                </a>
            </li>
            <?php 
            endforeach;
            ?>
                <li class="ui-tabs-selected">
                        <a href="<?php echo url_for("ds_recapitulatif_lieu_stockage", array('id' => $ds->_id)); ?>" style="height: 30px;">
                        <br>Récapitulatif</a>
                </li>                
        </ul>
	

	
	<!-- #application_ds -->
	<div id="application_ds" class="clearfix">
		
		<div id="recap_lieu_stockage" class="page_recap">
			<div id="recap_appellations">
				<table class="table_donnees">
					<thead>
						<tr>
							<th class="appellation">Appellations</th>
							<th class="total">Total</th>
							<th>Stocks hors VT / SGN</th>
							<th>VT</th>
							<th>SGN</th>
						</tr>
					</thead>
					<tbody>
					<?php foreach ($ds->getAppellations() as $appellation) : ?>
                                        
						<tr>
							<td><?php echo $appellation->getLibelle(); ?></td>
							<td><?php echoFloat($appellation->getTotalStock()); ?></td>
							<td><?php echoFloat($appellation->getTotalNormal()); ?></td>
							<td><?php echoFloat($appellation->getTotalVt()); ?></td>
							<td><?php echoFloat($appellation->getTotalSgn()); ?></td>
						</tr>
                                            
                        <?php endforeach; ?>
					</tbody>
				</table>
				
				<div id="total" class="ligne_total">
					<h3>Total AOC</h3>
					<input type="text" readonly="readonly" value="<?php echoFloat($ds->getTotalAOC()); ?>" />
				</div>
			</div>

			
			<div id="recap_vins_sans_ig">
				<table class="table_donnees">
					<thead>
						<tr>
							<th class="appellation">Vins sans IG</th>
							<th class="total">Total</th>
						</tr>
					</thead>
					<tbody>        
						<tr>
							<td>Vins de table sans IG</td>
							<td><?php echoFloat($ds->getTotalVinSansIg()); ?></td>
						</tr>        
						<tr>
							<td>Vins de table mousseux</td>
							<td><?php echoFloat($ds->getTotalMousseuxSansIg()); ?></td>
						</tr>
					</tbody>
				</table>
				
				<div id="total" class="ligne_total">
					<h3>Total AOC</h3>
					<input type="text" readonly="readonly" value="<?php echoFloat($ds->getTotalAOC()); ?>" />
				</div>

			</div>
			
		</div>
	</div>

<ul id="btn_etape" class="btn_prev_suiv clearfix">
	<li class="prec">
		<a href="<?php echo url_for('ds_edition_operateur', array('id' => $ds->_id,'appellation_lieu' => $ds->getFirstAppellationLieu())); ?>">
			<img src="/images/boutons/btn_retourner_etape_prec.png" alt="Retourner à l'étape précédente" />
		</a>
	</li>
	<li class="suiv">
		<a href="<?php echo url_for("ds_recapitulatif_lieu_stockage", array('id' => $ds->_id, 'suivant' => true)); ?>">
			<img src="/images/boutons/btn_passer_etape_suiv.png" alt="Continuer à l'étape suivante" /><commit_msg>changement du total hors AOC dans le recap lieu de stockage<commit_after><?php 
use_helper('Float');
include_partial('dsRailEtapes',array('tiers' => $tiers, 'ds' => $ds, 'etape' => 3));
$appellations = $ds->getAppellationsArray();
?>

<h2 class="titre_page"><?php echo $tiers->getCvi();?> : Récapitulatif</h2>

	<!-- fin .header_ds -->
	<ul id="onglets_majeurs" class="clearfix onglets_stock">
            <?php foreach ($appellations as $app_key => $app):  ?>
            <li>
                <?php $app_libelle = $app->libelle; ?>
                <a href="<?php echo url_for('ds_edition_operateur', array('id' => $ds->_id,'appellation_lieu' => $ds->getAppellationLieuKey($app_key))); ?>"><span>
                    <?php echo (preg_match('/^AOC/', $app->libelle))? 'AOC ' : ''; ?>
                    </span> 
                    <br><?php echo (preg_match('/^AOC/', $app->libelle))? substr($app->libelle, 4) : $app->libelle; ?>
                </a>
            </li>
            <?php 
            endforeach;
            ?>
                <li class="ui-tabs-selected">
                        <a href="<?php echo url_for("ds_recapitulatif_lieu_stockage", array('id' => $ds->_id)); ?>" style="height: 30px;">
                        <br>Récapitulatif</a>
                </li>                
        </ul>
	

	
	<!-- #application_ds -->
	<div id="application_ds" class="clearfix">
		
		<div id="recap_lieu_stockage" class="page_recap">
			<div id="recap_appellations">
				<table class="table_donnees">
					<thead>
						<tr>
							<th class="appellation">Appellations</th>
							<th class="total">Total</th>
							<th>Stocks hors VT / SGN</th>
							<th>VT</th>
							<th>SGN</th>
						</tr>
					</thead>
					<tbody>
					<?php foreach ($ds->getAppellations() as $appellation) : ?>
                                        
						<tr>
							<td><?php echo $appellation->getLibelle(); ?></td>
							<td><?php echoFloat($appellation->getTotalStock()); ?></td>
							<td><?php echoFloat($appellation->getTotalNormal()); ?></td>
							<td><?php echoFloat($appellation->getTotalVt()); ?></td>
							<td><?php echoFloat($appellation->getTotalSgn()); ?></td>
						</tr>
                                            
                        <?php endforeach; ?>
					</tbody>
				</table>
				
				<div id="total" class="ligne_total">
					<h3>Total AOC</h3>
					<input type="text" readonly="readonly" value="<?php echoFloat($ds->getTotalAOC()); ?>" />
				</div>
			</div>

			
			<div id="recap_vins_sans_ig">
				<table class="table_donnees">
					<thead>
						<tr>
							<th class="appellation">Vins sans IG</th>
							<th class="total">Total</th>
						</tr>
					</thead>
					<tbody>        
						<tr>
							<td>Vins de table sans IG</td>
							<td><?php echoFloat($ds->getTotalVinSansIg()); ?></td>
						</tr>        
						<tr>
							<td>Vins de table mousseux</td>
							<td><?php echoFloat($ds->getTotalMousseuxSansIg()); ?></td>
						</tr>
					</tbody>
				</table>
				
				<div id="total" class="ligne_total">
					<h3>Total</h3>
					<input type="text" readonly="readonly" value="<?php echoFloat($ds->getTotalVinSansIg() + $ds->getTotalMousseuxSansIg()); ?>" />
				</div>

			</div>
			
		</div>
	</div>

<ul id="btn_etape" class="btn_prev_suiv clearfix">
	<li class="prec">
		<a href="<?php echo url_for('ds_edition_operateur', array('id' => $ds->_id,'appellation_lieu' => $ds->getFirstAppellationLieu())); ?>">
			<img src="/images/boutons/btn_retourner_etape_prec.png" alt="Retourner à l'étape précédente" />
		</a>
	</li>
	<li class="suiv">
		<a href="<?php echo url_for("ds_recapitulatif_lieu_stockage", array('id' => $ds->_id, 'suivant' => true)); ?>">
			<img src="/images/boutons/btn_passer_etape_suiv.png" alt="Continuer à l'étape suivante" />
{'fraction_non_alphanumeric': 0.20101306318315115, 'fraction_numerical': 0.002665955745134631, 'mean_word_length': 2.372134831460674, 'pattern_counts': {'":': 0, '<': 245, '<?xml version=': 0, '>': 314, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1795411', 'n_tokens_mistral': 3199, 'n_tokens_neox': 2625, 'n_words': 452}