|
|
|
|
|
|
|
|
|
|
|
|
|
|
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() |