FIX Can't reopen a canceled invoice.

This commit is contained in:
Laurent Destailleur 2015-10-06 18:38:43 +02:00
parent c460873c85
commit 8426e2e506

View File

@ -150,7 +150,7 @@ if (empty($reshook))
// Reopen a closed order
else if ($action == 'reopen' && $user->rights->commande->creer)
{
if ($object->statut == STATUS_CANCELED || $object->statut == Commande::STATUS_CLOSED)
if ($object->statut == Commande::STATUS_CANCELED || $object->statut == Commande::STATUS_CLOSED)
{
$result = $object->set_reopen($user);
if ($result > 0)