|
|
@@ -41,10 +41,6 @@ foreach ($produits as $p) { |
|
|
|
<input type="hidden" id="date-production" value="<?= $date ?>" /> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<?php if (!count($commandes)): ?><span class="label label-danger">Aucune commande</span> |
|
|
|
<?php else: ?><span class="label label-success"><?= count($commandes) ?> commande<?php if(count($commandes) > 1): ?>s<?php endif; ?></span> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<h3 class="panel-title">Production du <strong><?php echo date('d/m/Y', strtotime($date)); ?></strong></h3> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
@@ -139,6 +135,9 @@ foreach ($produits as $p) { |
|
|
|
<div class="panel-heading"> |
|
|
|
<h3 class="panel-title"> |
|
|
|
Commandes |
|
|
|
<?php if (!count($commandes)): ?><span class="label label-danger">0</span> |
|
|
|
<?php else: ?><span class="label label-success"><?= count($commandes) ?></span> |
|
|
|
<?php endif; ?> |
|
|
|
<?php if (count($commandes)): ?> |
|
|
|
<a id="btn-export-commandes" class="btn btn-primary" href="<?php echo Yii::$app->urlManager->createUrl(['commande/report', 'date' => $date, 'id_point_vente' => 0, 'global' => 1]); ?>"><span class="glyphicon glyphicon-download-alt"></span> Exporter</a> |
|
|
|
<?php endif; ?> |