86 |
$sql .= " WHERE l.fk_soc = s.idp "; |
$sql .= " WHERE l.fk_soc = s.idp "; |
87 |
$sql .= " AND l.fk_fournisseur = f.rowid "; |
$sql .= " AND l.fk_fournisseur = f.rowid "; |
88 |
$sql .= " AND l.statut IN (-1,1,4) "; |
$sql .= " AND l.statut IN (-1,1,4) "; |
89 |
|
$sql .= " AND l.techno = 'presel'"; |
90 |
$sql .= " AND l.fk_soc_facture = sf.idp"; |
$sql .= " AND l.fk_soc_facture = sf.idp"; |
91 |
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); |
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); |
92 |
|
|