Fix #8722 useless sql ORDER BY
This commit is contained in:
parent
0c40dfa3f9
commit
9b2f62791b
@ -720,7 +720,6 @@ if (empty($reshook))
|
|||||||
$sql.= ' WHERE pf.fk_facture = '.$object->id;
|
$sql.= ' WHERE pf.fk_facture = '.$object->id;
|
||||||
$sql.= ' AND pf.fk_paiement = p.rowid';
|
$sql.= ' AND pf.fk_paiement = p.rowid';
|
||||||
$sql.= ' AND p.entity IN (' . getEntity('facture').')';
|
$sql.= ' AND p.entity IN (' . getEntity('facture').')';
|
||||||
$sql.= ' ORDER BY p.datep, p.tms';
|
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if (! $resql) dol_print_error($db);
|
if (! $resql) dol_print_error($db);
|
||||||
|
|||||||
@ -508,7 +508,6 @@ if (empty($reshook))
|
|||||||
$sql.= ' WHERE pf.fk_facturefourn = '.$object->id;
|
$sql.= ' WHERE pf.fk_facturefourn = '.$object->id;
|
||||||
$sql.= ' AND pf.fk_paiementfourn = p.rowid';
|
$sql.= ' AND pf.fk_paiementfourn = p.rowid';
|
||||||
$sql.= ' AND p.entity IN (' . getEntity('facture').')';
|
$sql.= ' AND p.entity IN (' . getEntity('facture').')';
|
||||||
$sql.= ' ORDER BY p.datep, p.tms';
|
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if (! $resql) dol_print_error($db);
|
if (! $resql) dol_print_error($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user