Update commande.class.php

This commit is contained in:
Laurent Destailleur 2018-03-13 09:53:21 +01:00 committed by GitHub
parent 51229a602f
commit dcd3387a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3127,8 +3127,12 @@ class Commande extends CommonOrder
// 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
if (! $error)
{