Browse Source

Adaptation du statut de paiement d'une commande en fonction du montant payé

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
41d4a5aa61
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Order.php

+ 1
- 1
common/models/Order.php View File

{ {
// payé // payé
if ($this->getAmount() - $this->getAmount(self::AMOUNT_PAID) < 0.01 && if ($this->getAmount() - $this->getAmount(self::AMOUNT_PAID) < 0.01 &&
$this->getAmount() - $this->getAmount(self::AMOUNT_PAID) >= 0)
$this->getAmount() - $this->getAmount(self::AMOUNT_PAID) > -0.01)
{ {
return self::PAYMENT_PAID ; return self::PAYMENT_PAID ;
} }

Loading…
Cancel
Save