Browse Source

Merge branch 'dev'

master
keun 6 years ago
parent
commit
825131bd01
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      common/models/Commande.php

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



public function getStatutPaiement() { public function getStatutPaiement() {
// à rembourser // à rembourser
if ($this->getMontant() - $this->getMontantPaye() < 0) {
if ($this->getMontant() - $this->getMontantPaye() <= 0.01) {
return self::STATUT_SURPLUS; return self::STATUT_SURPLUS;
} }
// payé // payé
elseif ($this->getMontant() - $this->getMontantPaye() < 0.001) {
elseif ($this->getMontant() - $this->getMontantPaye() < 0.01) {
return self::STATUT_PAYEE; return self::STATUT_PAYEE;
} }
// reste à payer // reste à payer
elseif ($this->getMontant() - $this->getMontantPaye() > 0.01) {
elseif ($this->getMontant() - $this->getMontantPaye() >= 0.01) {
return self::STATUT_IMPAYEE; return self::STATUT_IMPAYEE;
} }
} }

Loading…
Cancel
Save