FIX #5004
This commit is contained in:
parent
b6700c70d6
commit
97fe75f198
@ -280,6 +280,7 @@ if ($type_element == 'contract')
|
|||||||
$thirdTypeSelect='customer';
|
$thirdTypeSelect='customer';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!empty($sql_select)) {
|
||||||
$sql = $sql_select;
|
$sql = $sql_select;
|
||||||
$sql.= ' d.description as description,';
|
$sql.= ' d.description as description,';
|
||||||
if ($type_element != 'fichinter' && $type_element != 'contract') $sql.= ' d.label, d.fk_product as product_id, d.fk_product as fk_product, d.info_bits, d.date_start, d.date_end, d.qty, d.qty as prod_qty,';
|
if ($type_element != 'fichinter' && $type_element != 'contract') $sql.= ' d.label, d.fk_product as product_id, d.fk_product as fk_product, d.info_bits, d.date_start, d.date_end, d.qty, d.qty as prod_qty,';
|
||||||
@ -317,6 +318,7 @@ $resql=$db->query($sql);
|
|||||||
$totalnboflines = $db->num_rows($resql);
|
$totalnboflines = $db->num_rows($resql);
|
||||||
|
|
||||||
$sql.= $db->plimit($limit + 1, $offset);
|
$sql.= $db->plimit($limit + 1, $offset);
|
||||||
|
}
|
||||||
//print $sql;
|
//print $sql;
|
||||||
|
|
||||||
// Define type of elements
|
// Define type of elements
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user