Skip to content

Commit

Permalink
New: Can modify order with status approved if it was not sent yet to
Browse files Browse the repository at this point in the history
supplier.
  • Loading branch information
eldy committed Aug 21, 2014
1 parent f4cbdff commit 355bf1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions htdocs/fourn/commande/fiche.php
Expand Up @@ -150,10 +150,11 @@

else if ($action == 'reopen' && $user->rights->fournisseur->commande->approuver)
{
if (in_array($object->statut, array(1, 5, 6, 7, 9)))
if (in_array($object->statut, array(1, 2, 5, 6, 7, 9)))
{
if ($object->statut == 1) $newstatus=0; // Validated->Draft
else if ($object->statut == 5) $newstatus=4; // Received->Received partially
else if ($object->statut == 2) $newstatus=0; // Approved->Draft
else if ($object->statut == 5) $newstatus=4; // Received->Received partially
else if ($object->statut == 6) $newstatus=2; // Canceled->Approved
else if ($object->statut == 7) $newstatus=3; // Canceled->Process running
else if ($object->statut == 9) $newstatus=1; // Refused->Validated
Expand Down Expand Up @@ -1937,7 +1938,7 @@ function keypressInBox(e) {
}

// Reopen
if (in_array($object->statut, array(5, 6, 7, 9)))
if (in_array($object->statut, array(2, 5, 6, 7, 9)))
{
if ($user->rights->fournisseur->commande->commander)
{
Expand Down

0 comments on commit 355bf1d

Please sign in to comment.