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


PHP products_minierp::stockRetrieveHistory方法代碼示例

本文整理匯總了PHP中products_minierp::stockRetrieveHistory方法的典型用法代碼示例。如果您正苦於以下問題:PHP products_minierp::stockRetrieveHistory方法的具體用法?PHP products_minierp::stockRetrieveHistory怎麽用?PHP products_minierp::stockRetrieveHistory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在products_minierp的用法示例。


在下文中一共展示了products_minierp::stockRetrieveHistory方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

             $stock_movement = $stock_movement - $h['stock_add'] + $h['stock_reduce'];
             $bit = array();
             $bit['sort'] = $euh_count;
             $bit['date_add'] = date('d.m.Y', strtotime($h['transaction_date']));
             $bit['qty add'] = $h['stock_add'];
             $bit['qty reduce'] = $h['stock_reduce'];
             $bit['source'] = strval($stock_movement);
             $elup_table[] = $bit;
         }
         $article_stock .= tep_draw_table('spo sticky-tablehead', $elup_table);
     } else {
         $article_stock .= '<strong class="red">No update found</strong >';
     }
     $article_stock .= '</div>';
 } else {
     $euh_asc = $class_pm->stockRetrieveHistory($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'] = 'Transaction';
         $bit['name'] = 'Info';
         $bit['source'] = 'On Stock in DB<br />Before Transaction';
         $elup_table[] = $bit;
         $euh_count = 0;
         $stock_movement = $cs;
         foreach ($euh as $h) {
             $euh_count++;
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:products-stock-detail.php

示例2: array

             //        $st[$stk] = '<strong class="red">'.$stv.'</strong>';
             //    }
             //}
             $sourcing_table[] = $st;
         }
         $sourcing_info .= tep_draw_table('spo', $sourcing_table);
     } else {
         $sourcing_info .= '<strong class="red">No Elements Information found</strong>';
     }
     $sourcing_info .= '</div>';
 } else {
     $sourcing_info = '';
 }
 $status_show_bin_history = array('5', '6', '7', '8', '12');
 if (isset($itrans) && $itrans['stock_status'] == 'D' || in_array($do['status'], $status_show_bin_history)) {
     $bih = $class_pm->stockRetrieveHistory($whid_fg_hh, $do['products_id'], $do['articles_id'], $bih_start_date, $bih_end_date);
     $bih_start = date('d.m.Y', strtotime($bih_start_date));
     $bih_end = date('d.m.Y', is_null($bih_end_date) ? time() : strtotime($bih_end_date));
     $binin_history = '<div style="margin-top:20px;">';
     $binin_history .= '<h3>Bin In History (' . $bih_start . '-' . $bih_end . ')</h3>';
     if (count($bih) > 0) {
         $binin_table = array();
         $bit = array();
         $bit['sort'] = 'No';
         $bit['date_add'] = 'Date';
         $bit['qty'] = 'Transaction';
         $bit['desc'] = 'Info';
         $binin_table[] = $bit;
         $bih_count = 0;
         foreach ($bih as $h) {
             $bih_count++;
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:depot-order.php


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