本文整理匯總了PHP中products_minierp::stockRetrieveList方法的典型用法代碼示例。如果您正苦於以下問題:PHP products_minierp::stockRetrieveList方法的具體用法?PHP products_minierp::stockRetrieveList怎麽用?PHP products_minierp::stockRetrieveList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類products_minierp
的用法示例。
在下文中一共展示了products_minierp::stockRetrieveList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
}
$total_products[$jng_warehouses_id][$products_id][$articles_id] += $row['order_quantity'];
}
}
}
foreach ($total_products as $jng_warehouses_id => $products) {
foreach ($products as $products_id => $articles) {
foreach ($articles as $aid => $add_amount) {
$class_pm->stockAdd($jng_warehouses_id, $products_id, $add_amount, $aid);
$class_ms->products_state($jng_warehouses_id, $products_id, $period, true);
}
}
}
//ELEMENTS
$jng_warehouses_id = 1;
$stocks = $class_es->retrieveAll($jng_warehouses_id);
foreach ($stocks as $eid => $stock) {
$class_ms->elements_state($jng_warehouses_id, $eid, $period, true);
}
//FG Bali
$jng_warehouses_id = 7;
$stocks = $class_pm->stockRetrieveList($jng_warehouses_id);
foreach ($stocks as $s) {
if ($s['stock'] > 0) {
var_dump($s);
echo '<br />';
$class_ms->products_state($jng_warehouses_id, $s['products_id'], $period, true);
}
}
echo 'Data is Processed!';
tep_db_close();