Update commande.class.php
This commit is contained in:
parent
51229a602f
commit
dcd3387a30
@ -3127,7 +3127,11 @@ class Commande extends CommonOrder
|
|||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->nb_expedition() != 0) $error++;
|
if ($this->nb_expedition() != 0)
|
||||||
|
{
|
||||||
|
$this->errors[] = $langs->trans('SomeShipmentExists');
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
|
||||||
//TODO: Check for error after each action. If one failed we rollback, don't waste time to do action if previous fail
|
//TODO: Check for error after each action. If one failed we rollback, don't waste time to do action if previous fail
|
||||||
if (! $error)
|
if (! $error)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user