當前位置: 首頁>>代碼示例>>PHP>>正文


PHP products_minierp::stockRetrieveDetailByPSID方法代碼示例

本文整理匯總了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 &nbsp;';
     $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>';
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:products-stock-detail.php


注:本文中的products_minierp::stockRetrieveDetailByPSID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。