Return bad late or not status for order
This commit is contained in:
parent
50eae967bc
commit
223195538a
@ -3342,14 +3342,14 @@ class Commande extends CommonOrder
|
|||||||
/**
|
/**
|
||||||
* Is the customer order delayed?
|
* Is the customer order delayed?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool true if late, false if not
|
||||||
*/
|
*/
|
||||||
public function hasDelay()
|
public function hasDelay()
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
if (!($this->statut > Commande::STATUS_DRAFT) && ($this->statut < Commande::STATUS_CLOSED)) {
|
if (! ($this->statut > Commande::STATUS_DRAFT && $this->statut < Commande::STATUS_CLOSED)) {
|
||||||
return false;
|
return false; // Never late if not inside this status range
|
||||||
}
|
}
|
||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user