FIX shipping default warehouse if only one warehouse
This commit is contained in:
parent
17a61b3232
commit
0b6c7d2d63
@ -894,7 +894,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print $langs->trans("WarehouseSource");
|
print $langs->trans("WarehouseSource");
|
||||||
//print '</td>';
|
//print '</td>';
|
||||||
//print '<td>';
|
//print '<td>';
|
||||||
print $formproduct->selectWarehouses(! empty($object->warehouse_id)?$object->warehouse_id:-1, 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
|
print $formproduct->selectWarehouses(! empty($object->warehouse_id)?$object->warehouse_id:'ifone', 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
|
||||||
if (count($formproduct->cache_warehouses) <= 0)
|
if (count($formproduct->cache_warehouses) <= 0)
|
||||||
{
|
{
|
||||||
print ' '.$langs->trans("WarehouseSourceNotDefined").' <a href="'.DOL_URL_ROOT.'/product/stock/card.php?action=create">'.$langs->trans("AddOne").'</a>';
|
print ' '.$langs->trans("WarehouseSourceNotDefined").' <a href="'.DOL_URL_ROOT.'/product/stock/card.php?action=create">'.$langs->trans("AddOne").'</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user