Skip to content

Commit

Permalink
NEW : getNomUrl displays full path to warehouse
Browse files Browse the repository at this point in the history
# Conflicts:
#	htdocs/product/stock/class/entrepot.class.php
  • Loading branch information
atm-gauthier committed Oct 14, 2016
1 parent fe1bcb7 commit 1a648cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions htdocs/product/class/html.formproduct.class.php
Expand Up @@ -117,6 +117,8 @@ function loadWarehouses($fk_product=0, $batch = '', $status=null, $sumStock = tr
{
$obj = $this->db->fetch_object($resql);
if ($sumStock) $obj->stock = price2num($obj->stock,5);
$o = new Entrepot($this->db);
$o->fetch($obj->rowid);
$this->cache_warehouses[$obj->rowid]['id'] =$obj->rowid;
$this->cache_warehouses[$obj->rowid]['label']=$o->get_full_arbo();
$this->cache_warehouses[$obj->rowid]['description'] = $obj->description;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/stock/card.php
Expand Up @@ -646,7 +646,7 @@

// Parent entrepot
print '<tr><td>'.$langs->trans("AddIn").'</td><td>';
print $formproduct->selectWarehouses('', 'fk_parent', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200', array($object->id));
print $formproduct->selectWarehouses($object->fk_parent, 'fk_parent', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200', array($object->id));
print '</td></tr>';

// Description
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/stock/class/entrepot.class.php
Expand Up @@ -575,7 +575,7 @@ function getNomUrl($withpicto=0,$option='')
$linkend='</a>';

if ($withpicto) $result.=($link.img_object($label, 'stock', 'class="classfortooltip"').$linkend.' ');
$result.=$link.(empty($this->label)?$this->libelle:$this->label).$linkend;
$result.=$link.$this->get_full_arbo().$linkend;
return $result;
}

Expand Down

0 comments on commit 1a648cf

Please sign in to comment.