diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index 502f1f6e1a6..74fd6dca388 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -1909,7 +1909,7 @@ else if ($id || $ref) { print ''; print ''; - // Qty to ship or shipped + // Qty to receive or received print '' . '' . ''; // Warehouse source print '' . $formproduct->selectWarehouses($lines[$i]->fk_entrepot, 'entl'.$line_id, '', 1, 0, $lines[$i]->fk_product, '', 1). ''; @@ -1929,7 +1929,7 @@ else if ($id || $ref) { print ''; print ''; - // Qty to ship or shipped + // Qty to receive or received print '' . '' . ''; // Warehouse source print '' . ''; @@ -1942,33 +1942,21 @@ else if ($id || $ref) } else { - // Qty to ship or shipped + // Qty to receive or received print ''.$lines[$i]->qty.''; // Warehouse source if (! empty($conf->stock->enabled)) { print ''; + if ($lines[$i]->fk_entrepot > 0) { $entrepot = new Entrepot($db); $entrepot->fetch($lines[$i]->fk_entrepot); print $entrepot->getNomUrl(1); } - else if (count($lines[$i]->details_entrepot) > 1) - { - $detail = ''; - foreach ($lines[$i]->details_entrepot as $detail_entrepot) - { - if ($detail_entrepot->entrepot_id > 0) - { - $entrepot = new Entrepot($db); - $entrepot->fetch($detail_entrepot->entrepot_id); - $detail.= $langs->trans("DetailWarehouseFormat",$entrepot->libelle,$detail_entrepot->qty_shipped).'
'; - } - } - print $form->textwithtooltip(img_picto('', 'object_stock').' '.$langs->trans("DetailWarehouseNumber"),$detail); - } + print ''; } @@ -2014,9 +2002,7 @@ else if ($id || $ref) else print ' '; print ''; - // Size - //print ''.$lines[$i]->volume*$lines[$i]->qty_shipped.' '.measuring_units_string($lines[$i]->volume_units,"volume").''; - + if ($action == 'editline' && $lines[$i]->id == $line_id) { print ''; 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 ''; - print ''; + print ''; print ''; } // Ref customer