Optimize memory and perf for list of stock movements
This commit is contained in:
parent
23083427e8
commit
baec6aa169
File diff suppressed because it is too large
Load Diff
@ -789,7 +789,12 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
||||
$objp = $db->fetch_object($resql);
|
||||
|
||||
if (!empty($conf->global->STOCK_SUPPORTS_SERVICES) || $objp->fk_product_type == 0) {
|
||||
$prod->fetch($objp->rowid);
|
||||
$result = $prod->fetch($objp->rowid);
|
||||
if ($result < 0) {
|
||||
dol_print_error($db);
|
||||
exit;
|
||||
}
|
||||
|
||||
$prod->load_stock('warehouseopen, warehouseinternal'.(!$usevirtualstock?', novirtual':''), $draftchecked);
|
||||
|
||||
// Multilangs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user