forked from Wavyzz/dolibarr
Merge pull request #8367 from atm-quentin/6.0
FIX check shipping on delete order
This commit is contained in:
@@ -3126,7 +3126,13 @@ class Commande extends CommonOrder
|
|||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user