fix warnings
This commit is contained in:
parent
f481374a02
commit
57073d68c9
@ -849,8 +849,8 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
|||||||
|
|
||||||
$desiredstock = $objp->desiredstock;
|
$desiredstock = $objp->desiredstock;
|
||||||
$alertstock = $objp->seuil_stock_alerte;
|
$alertstock = $objp->seuil_stock_alerte;
|
||||||
$desiredstockwarehouse = ($objp->desiredstockpse ? $objp->desiredstockpse : 0);
|
$desiredstockwarehouse = (!empty($objp->desiredstockpse) ? $objp->desiredstockpse : 0);
|
||||||
$alertstockwarehouse = ($objp->seuil_stock_alertepse ? $objp->seuil_stock_alertepse : 0);
|
$alertstockwarehouse = (!empty($objp->seuil_stock_alertepse) ? $objp->seuil_stock_alertepse : 0);
|
||||||
|
|
||||||
$warning = '';
|
$warning = '';
|
||||||
if ($alertstock && ($stock < $alertstock)) {
|
if ($alertstock && ($stock < $alertstock)) {
|
||||||
|
|||||||
@ -51,6 +51,7 @@ $search_dateyear = GETPOST('search_dateyear', 'int');
|
|||||||
$search_datemonth = GETPOST('search_datemonth', 'int');
|
$search_datemonth = GETPOST('search_datemonth', 'int');
|
||||||
$search_dateday = GETPOST('search_dateday', 'int');
|
$search_dateday = GETPOST('search_dateday', 'int');
|
||||||
$search_date = dol_mktime(0, 0, 0, $search_datemonth, $search_dateday, $search_dateyear);
|
$search_date = dol_mktime(0, 0, 0, $search_datemonth, $search_dateday, $search_dateyear);
|
||||||
|
$optioncss = GETPOST('optioncss', 'alpha');
|
||||||
|
|
||||||
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
||||||
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
||||||
@ -130,9 +131,9 @@ if (empty($user->rights->societe->client->voir) && !$socid) {
|
|||||||
}
|
}
|
||||||
$sql .= ' WHERE cf.fk_soc = s.rowid ';
|
$sql .= ' WHERE cf.fk_soc = s.rowid ';
|
||||||
$sql .= ' AND cf.entity = '.$conf->entity;
|
$sql .= ' AND cf.entity = '.$conf->entity;
|
||||||
if ($conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER) {
|
if (!empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER)) {
|
||||||
$sql .= ' AND cf.fk_statut < 3';
|
$sql .= ' AND cf.fk_statut < 3';
|
||||||
} elseif ($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION) || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION_CLOSE)) {
|
} elseif (!empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER) || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION) || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION_CLOSE)) {
|
||||||
$sql .= ' AND cf.fk_statut < 6'; // We want also status 5, we will keep them visible if dispatching is not yet finished (tested with function dolDispatchToDo).
|
$sql .= ' AND cf.fk_statut < 6'; // We want also status 5, we will keep them visible if dispatching is not yet finished (tested with function dolDispatchToDo).
|
||||||
} else {
|
} else {
|
||||||
$sql .= ' AND cf.fk_statut < 5';
|
$sql .= ' AND cf.fk_statut < 5';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user