Fix: Les lignes doivent s'afficher selon ordre du rang
This commit is contained in:
parent
38645382b0
commit
f62589158b
@ -319,7 +319,7 @@ if ($_GET["propalid"] > 0)
|
||||
$sql = 'SELECT pt.rowid, pt.description, pt.price, pt.fk_product, pt.qty, pt.tva_tx, pt.remise_percent, pt.subprice, p.label as product, p.ref, p.fk_product_type, p.rowid as prodid';
|
||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'propaldet as pt LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON pt.fk_product=p.rowid';
|
||||
$sql .= ' WHERE pt.fk_propal = '.$propal->id;
|
||||
$sql .= ' ORDER BY pt.rowid ASC';
|
||||
$sql .= ' ORDER BY pt.rang ASC';
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user