Sfoglia il codice sorgente

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

prodstable
keun 7 anni fa
parent
commit
7d4630f9de
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      backend/views/commande/index.php

+ 1
- 1
backend/views/commande/index.php Vedi 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…
Annulla
Salva