Przeglądaj źródła

Backend : nombre de commandes

Déplacement du nombre de commandes au niveau des commandes.
master
keun 8 lat temu
rodzic
commit
7c8328f7d0
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +3
    -4
      backend/views/commande/index.php
  2. +1
    -0
      backend/web/js/lechatdesnoisettes.js

+ 3
- 4
backend/views/commande/index.php Wyświetl plik

@@ -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; ?>

+ 1
- 0
backend/web/js/lechatdesnoisettes.js Wyświetl plik

@@ -203,6 +203,7 @@ function chat_index_commandes_points_vente() {
// create
$('.creer-commande').unbind('click').click(function() {
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+' .tr-total').hide() ;
$('#point-vente-'+id_pv+' .buttons-edit-remove').hide() ;

Ładowanie…
Anuluj
Zapisz