当前位置: 首页>>代码示例>>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;未经允许,请勿转载。