Bladeren bron

Backend : nombre de commandes

Déplacement du nombre de commandes au niveau des commandes.
prodstable
keun 8 jaren geleden
bovenliggende
commit
7c8328f7d0
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. +3
    -4
      backend/views/commande/index.php
  2. +1
    -0
      backend/web/js/lechatdesnoisettes.js

+ 3
- 4
backend/views/commande/index.php Bestand weergeven

@@ -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 Bestand weergeven

@@ -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() ;

Laden…
Annuleren
Opslaan