Explorar el Código

Bug statut commande (payé,impayé)

prodstable
keun hace 7 años
padre
commit
5d6dee049a
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. +6
    -6
      common/models/Commande.php

+ 6
- 6
common/models/Commande.php Ver fichero

@@ -247,8 +247,13 @@ class Commande extends \yii\db\ActiveRecord
public function getStatutPaiement()
{
// à rembourser
if($this->montant - $this->montant_paye < 0)
{
return self::STATUT_SURPLUS ;
}
// payé
if($this->montant - $this->montant_paye < 0.001)
elseif($this->montant - $this->montant_paye < 0.001)
{
return self::STATUT_PAYEE ;
}
@@ -257,11 +262,6 @@ class Commande extends \yii\db\ActiveRecord
{
return self::STATUT_IMPAYEE ;
}
// à rembourser
elseif($this->montant - $this->montant_paye < 0.01)
{
return self::STATUT_SURPLUS ;
}
}
public function getResumePanier()

Cargando…
Cancelar
Guardar