Browse Source

[Backend] Résolution bug d'affichage d'une commande payée et affichée comme non payée

master
keun 7 years ago
parent
commit
7d4630f9de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/views/commande/index.php

+ 1
- 1
backend/views/commande/index.php View File

@@ -198,7 +198,7 @@ foreach ($produits as $p) {
<?php foreach($pv->commandes as $c): ?>
<li>
<a href="javascript:void(0);" class="btn btn-default" data-pv-id="<?= $pv->id ?>" data-id-commande="<?= $c->id ?>" data-commande='<?= $pv->data_options_commandes[$c->id]['data-commande'] ?>' data-commentaire="<?= Html::encode($c->commentaire) ?>" data-date="<?= date('d/m à H:i',strtotime($c->date)); ?>">
<span class="montant <?php if($c->montant_paye >= $c->montant): ?>paye<?php endif; ?>">
<span class="montant <?php if(number_format($c->montant_paye,2) >= number_format($c->montant,2)): ?>paye<?php endif; ?>">
<?= Html::encode(number_format($c->montant, 2)); ?> €
<?php if($c->montant_paye - $c->montant > 0.01): ?><span class="glyphicon glyphicon-warning-sign"></span><?php endif; ?>
</span>

Loading…
Cancel
Save