ajout possibilite d'diter une commande valide

This commit is contained in:
Regis Houssin 2006-04-29 13:30:21 +00:00
parent 4e0505a53e
commit cf7268aeb5
2 changed files with 22 additions and 1 deletions

View File

@ -181,6 +181,27 @@ class Commande
}
return $result ;
}
/**
*
*
*/
function reopen($userid)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."commande SET fk_statut = 0";
$sql .= " WHERE rowid = $this->id;";
if ($this->db->query($sql) )
{
return 1;
}
else
{
dolibarr_print_error($this->db);
}
}
/**
* \brief Cloture la commande
* \param user Objet utilisateur qui cloture

View File

@ -1081,7 +1081,7 @@ else
{
if ($user->rights->commande->creer)
{
print '<a class="butAction" href="fiche?id='.$commande->id.'&amp;action=modif">'.$langs->trans('Edit').'</a>';
print '<a class="butAction" href="fiche.php?id='.$commande->id.'&amp;action=modif">'.$langs->trans('Edit').'</a>';
}
}