Browse Source

Backend : nombre de commandes

Déplacement du nombre de commandes au niveau des commandes.
prodstable
keun 8 years ago
parent
commit
7c8328f7d0
2 changed files with 4 additions and 4 deletions
  1. +3
    -4
      backend/views/commande/index.php
  2. +1
    -0
      backend/web/js/lechatdesnoisettes.js

+ 3
- 4
backend/views/commande/index.php View File

<input type="hidden" id="date-production" value="<?= $date ?>" /> <input type="hidden" id="date-production" value="<?= $date ?>" />
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <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> <h3 class="panel-title">Production du <strong><?php echo date('d/m/Y', strtotime($date)); ?></strong></h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"> <h3 class="panel-title">
Commandes 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)): ?> <?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> <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; ?> <?php endif; ?>

+ 1
- 0
backend/web/js/lechatdesnoisettes.js View File

// create // create
$('.creer-commande').unbind('click').click(function() { $('.creer-commande').unbind('click').click(function() {
var id_pv = $(this).data('pv-id') ; var id_pv = $(this).data('pv-id') ;
$('#point-vente-'+id_pv+' .bloc-commande').fadeIn() ;
$('#point-vente-'+id_pv+' .liste-commandes a.active').removeClass('active') ; $('#point-vente-'+id_pv+' .liste-commandes a.active').removeClass('active') ;
$('#point-vente-'+id_pv+' .tr-total').hide() ; $('#point-vente-'+id_pv+' .tr-total').hide() ;
$('#point-vente-'+id_pv+' .buttons-edit-remove').hide() ; $('#point-vente-'+id_pv+' .buttons-edit-remove').hide() ;

Loading…
Cancel
Save