本文整理汇总了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();