Ajout flches d'ordonnancement des produits sur les commandes et les propales

This commit is contained in:
Regis Houssin 2006-05-27 10:46:20 +00:00
parent fdb1924378
commit a20f85c2e6
2 changed files with 3 additions and 3 deletions

View File

@ -489,13 +489,13 @@ if ($_POST["action"] == 'setmode')
if ($_GET['action'] == 'up' && $user->rights->propale->creer)
{
$propal = new Propal($db);
$propal = new Propal($db, $_GET["propalid"]);
$propal->line_up($_GET['rowid']);
}
if ($_GET['action'] == 'down' && $user->rights->propale->creer)
{
$propal = new Propal($db);
$propal = new Propal($db, $_GET["propalid"]);
$propal->line_down($_GET['rowid']);
}

View File

@ -641,7 +641,7 @@ class Propal
$rang = $row[0];
}
/* Lecture du rang max de la facture */
/* Lecture du rang max de la propale */
$sql = 'SELECT max(rang) FROM '.MAIN_DB_PREFIX.'propaldet';
$sql .= ' WHERE fk_propal ='.$this->id;
$resql = $this->db->query($sql);