本文整理汇总了PHP中products_minierp::stockRetrieveHistoryDaily方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::stockRetrieveHistoryDaily方法的具体用法?PHP products_minierp::stockRetrieveHistoryDaily怎么用?PHP products_minierp::stockRetrieveHistoryDaily使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::stockRetrieveHistoryDaily方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadComboListFromArray
$pid = $ps['products_id'];
$aid = $ps['articles_id'];
$cs = $ps['stock'];
$article_stock = '';
$article_stock .= '<h2>Show Historical data for ';
$article_stock .= '<select id="pah-period">' . loadComboListFromArray($history_options, null, $period, false) . '</select>';
$article_stock .= '<select id="pah-daisum">' . loadComboListFromArray($history_options_2, null, $daily_summary, false) . '</select>';
$article_stock .= '</h2>';
$start_date = "-{$history_options[$period]}";
$euh_start_date = strtotime($start_date);
$euh_start = date('d.m.Y', $euh_start_date);
$euh_end = date('d.m.Y');
$article_stock .= '<div>';
$article_stock .= '<h3>On Stock in Database History (' . $euh_end . '-' . $euh_start . ')</h3>';
if ($daily_summary == '1') {
$euh_asc = $class_pm->stockRetrieveHistoryDaily($whid, $pid, $aid, $start_date);
if (count($euh_asc) > 0) {
$euh = array_reverse($euh_asc);
//reverse asc sort
$elup_table = array();
$bit = array();
$bit['sort'] = 'No';
$bit['date_add'] = 'Date';
$bit['qty add'] = 'Added';
$bit['qty reduce'] = 'Reduced';
$bit['source'] = 'On Stock in DB<br />Before Transaction';
$elup_table[] = $bit;
$euh_count = 0;
$stock_movement = $cs;
foreach ($euh as $h) {
$euh_count++;