hide products in closed warehouse, but show products for internal transfer

Products only for internal transfer should be sellable (for example,
they can have virtual stock)
This commit is contained in:
fappels 2016-12-02 12:22:09 +01:00
parent af5eb00933
commit c697141851

View File

@ -186,7 +186,9 @@ else {
{
if ($conf->global->ENTREPOT_EXTRA_STATUS)
{
$form->select_produits(GETPOST('idprod'), 'idprod', $filtertype, $conf->product->limit_size, $buyer->price_level, 1, 2, '', 1, array(),$buyer->id, '1', 0, '', 0, 3);
// hide products in closed warehouse, but show products for internal transfer
require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
$form->select_produits(GETPOST('idprod'), 'idprod', $filtertype, $conf->product->limit_size, $buyer->price_level, 1, 2, '', 1, array(),$buyer->id, '1', 0, '', 0, Entrepot::STATUS_OPEN_INTERNAL);
}
else
{