diff --git a/htdocs/accountancy/supplier/lines.php b/htdocs/accountancy/supplier/lines.php
index 97f1c771122..a815e5b858b 100644
--- a/htdocs/accountancy/supplier/lines.php
+++ b/htdocs/accountancy/supplier/lines.php
@@ -192,12 +192,12 @@ if ($search_lineid) {
if (strlen(trim($search_invoice))) {
$sql .= natural_search("f.ref", $search_invoice);
}
+if (strlen(trim($search_label))) {
+ $sql .= natural_search("f.libelle", $search_label);
+}
if (strlen(trim($search_ref))) {
$sql .= natural_search("p.ref", $search_ref);
}
-if (strlen(trim($search_label))) {
- $sql .= natural_search("p.label", $search_label);
-}
if (strlen(trim($search_desc))) {
$sql .= natural_search("l.description", $search_desc);
}
@@ -300,14 +300,13 @@ if ($result) {
print '
';
print ' | ';
print ' | ';
- print ' | ';
+ print ' | ';
print '';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '';
print '';
$formother->select_year($search_year, 'search_year', 1, 20, 5);
print ' | ';
print ' | ';
- //print ' | ';
print ' | ';
print ' | ';
print ' | ';
diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php
index 6ba3e244582..fc453a94250 100644
--- a/htdocs/accountancy/supplier/list.php
+++ b/htdocs/accountancy/supplier/list.php
@@ -234,12 +234,12 @@ if ($search_lineid) {
if (strlen(trim($search_invoice))) {
$sql .= natural_search("f.ref", $search_invoice);
}
+if (strlen(trim($search_label))) {
+ $sql .= natural_search("f.libelle", $search_label);
+}
if (strlen(trim($search_ref))) {
$sql .= natural_search("p.ref", $search_ref);
}
-if (strlen(trim($search_label))) {
- $sql .= natural_search("p.label", $search_label);
-}
if (strlen(trim($search_desc))) {
$sql .= natural_search("l.description", $search_desc);
}
@@ -317,6 +317,7 @@ if ($result) {
if ($search_year) $param.='&search_year='.urlencode($search_year);
if ($search_invoice) $param.='&search_invoice='.urlencode($search_invoice);
if ($search_ref) $param.='&search_ref='.urlencode($search_ref);
+ if ($search_label) $param.='&search_label='.urlencode($search_label);
if ($search_desc) $param.='&search_desc='.urlencode($search_desc);
if ($search_amount) $param.='&search_amount='.urlencode($search_amount);
if ($search_vat) $param.='&search_vat='.urlencode($search_vat);
@@ -362,14 +363,13 @@ if ($result) {
print '
';
print ' | ';
print ' | ';
- print ' | ';
+ print ' | ';
print '';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '';
print '';
$formother->select_year($search_year, 'search_year', 1, 20, 5);
print ' | ';
print ' | ';
- //print ' | ';
print ' | ';
print ' | ';
print ' | ';