Browse Source

Bug statut commande (payé,impayé)

master
keun 7 years ago
parent
commit
5d6dee049a
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      common/models/Commande.php

+ 6
- 6
common/models/Commande.php View File

public function getStatutPaiement() public function getStatutPaiement()
{ {
// à rembourser
if($this->montant - $this->montant_paye < 0)
{
return self::STATUT_SURPLUS ;
}
// payé // payé
if($this->montant - $this->montant_paye < 0.001)
elseif($this->montant - $this->montant_paye < 0.001)
{ {
return self::STATUT_PAYEE ; return self::STATUT_PAYEE ;
} }
{ {
return self::STATUT_IMPAYEE ; return self::STATUT_IMPAYEE ;
} }
// à rembourser
elseif($this->montant - $this->montant_paye < 0.01)
{
return self::STATUT_SURPLUS ;
}
} }
public function getResumePanier() public function getResumePanier()

Loading…
Cancel
Save