本文整理汇总了PHP中products_minierp::stockRetrieveDetailByPSID方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::stockRetrieveDetailByPSID方法的具体用法?PHP products_minierp::stockRetrieveDetailByPSID怎么用?PHP products_minierp::stockRetrieveDetailByPSID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::stockRetrieveDetailByPSID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
$stock = $class_pm->stockRetrieveDetail($jng_warehouses_id, $products_id, $articles_id);
$bin_current = $class_bin->getBinProductStock($stock['products_stock_id']);
if (is_null($bin_current)) {
$class_pm->stockAdd($jng_warehouses_id, $products_id, $articles_id, $qty, "MANUAL BIN-IN by {$session_userinfo['username']}");
$class_bin->bookBinForProduct($bins_id, $stock['products_stock_id']);
header("Location: ?open=products-stock-detail&id={$stock['products_stock_id']}" . ($hidemenuscript != '' ? '&hidemenu=true' : ''));
exit;
} else {
$messagebox->add("<strong>Manual Bin In Failed: EXISTING ARTICLE</strong><br />This article has booked another bin: " . $bin_current['code_clean']);
}
}
} elseif ($_POST['me_action'] == 'GETPRODUCTSTOCKHISTORY') {
$psid = tep_db_prepare_input($_POST['psid']);
$period = tep_db_prepare_input($_POST['period']);
$daily_summary = tep_db_prepare_input($_POST['daily_summary']);
$ps = $class_pm->stockRetrieveDetailByPSID($psid);
$whid = $ps['jng_warehouses_id'];
$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>';