Ajout flches d'ordonnancement des produits sur les commandes et les propales
This commit is contained in:
parent
fdb1924378
commit
a20f85c2e6
@ -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']);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user