';
diff --git a/htdocs/reception/class/reception.class.php b/htdocs/reception/class/reception.class.php
index c07d7b7ea5c..ad067e47cf4 100644
--- a/htdocs/reception/class/reception.class.php
+++ b/htdocs/reception/class/reception.class.php
@@ -1250,8 +1250,7 @@ class Reception extends CommonObject
$line->desc=$langs->trans("Description")." ".$xnbp;
$line->libelle=$langs->trans("Description")." ".$xnbp;
$line->qty=10;
- $line->qty_asked=5;
- $line->qty_shipped=4;
+
$line->fk_product=$this->commande->lines[$xnbp]->fk_product;
$this->lines[]=$line;
@@ -1508,7 +1507,7 @@ class Reception extends CommonObject
$langs->load("agenda");
// Loop on each product line to add a stock movement
- // TODO possibilite d'expedier a partir d'une propale ou autre origine ?
+ // TODO possibilite de receptionner a partir d'une propale ou autre origine ?
$sql = "SELECT cd.fk_product, cd.subprice,";
$sql.= " ed.rowid, ed.qty, ed.fk_entrepot,";
$sql.= " ed.eatby, ed.sellby, ed.batch";
@@ -1673,7 +1672,7 @@ class Reception extends CommonObject
$langs->load("agenda");
// Loop on each product line to add a stock movement
- // TODO possibilite d'expedier a partir d'une propale ou autre origine
+ // TODO possibilite de receptionner a partir d'une propale ou autre origine
$sql = "SELECT ed.fk_product, cd.subprice,";
$sql.= " ed.rowid, ed.qty, ed.fk_entrepot,";
$sql.= " ed.eatby, ed.sellby, ed.batch";
@@ -1809,7 +1808,7 @@ class Reception extends CommonObject
$langs->load("agenda");
// Loop on each product line to add a stock movement
- // TODO possibilite d'expedier a partir d'une propale ou autre origine
+ // TODO possibilite de receptionner a partir d'une propale ou autre origine
$sql = "SELECT cd.fk_product, cd.subprice,";
$sql.= " ed.rowid, ed.qty, ed.fk_entrepot,";
$sql.= " ed.eatby, ed.sellby, ed.batch";
diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php
index b92a3c6a745..43dd318ef95 100644
--- a/htdocs/reception/list.php
+++ b/htdocs/reception/list.php
@@ -49,7 +49,7 @@ $result = restrictedArea($user, 'reception',$receptionid,'');
$diroutputmassaction=$conf->reception->dir_output . '/temp/massgeneration/'.$user->id;
-$search_ref_exp = GETPOST("search_ref_exp");
+$search_ref_rcp = GETPOST("search_ref_rcp");
$search_ref_liv = GETPOST('search_ref_liv');
$search_ref_supplier = GETPOST('search_ref_supplier');
$search_company = GETPOST("search_company");
@@ -138,7 +138,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x','alpha') || GETPOST('button_removefilter','alpha')) // All tests are required to be compatible with all browsers
{
$search_ref_supplier='';
- $search_ref_exp='';
+ $search_ref_rcp='';
$search_ref_liv='';
$search_company='';
$search_town='';
@@ -467,7 +467,7 @@ if ($search_zip) $sql.= natural_search("s.zip",$search_zip);
if ($search_state) $sql.= natural_search("state.nom",$search_state);
if ($search_country) $sql .= " AND s.fk_pays IN (".$search_country.')';
if ($search_type_thirdparty) $sql .= " AND s.fk_typent IN (".$search_type_thirdparty.')';
-if ($search_ref_exp) $sql .= natural_search('e.ref', $search_ref_exp);
+if ($search_ref_rcp) $sql .= natural_search('e.ref', $search_ref_rcp);
if ($search_ref_liv) $sql .= natural_search('l.ref', $search_ref_liv);
if ($search_company) $sql .= natural_search('s.nom', $search_company);
if ($search_ref_supplier) $sql .= natural_search('e.ref_supplier', $search_ref_supplier);
@@ -516,7 +516,7 @@ if ($resql)
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
if ($sall) $param.= "&sall=".$sall;
- if ($search_ref_exp) $param.= "&search_ref_exp=".$search_ref_exp;
+ if ($search_ref_rcp) $param.= "&search_ref_rcp=".$search_ref_rcp;
if ($search_ref_liv) $param.= "&search_ref_liv=".$search_ref_liv;
if ($search_company) $param.= "&search_company=".$search_company;
if ($optioncss != '') $param.='&optioncss='.$optioncss;
@@ -630,7 +630,7 @@ if ($resql)
if (! empty($arrayfields['e.ref']['checked']))
{
print '