inventory_302_2
This commit is contained in:
@@ -402,7 +402,7 @@ class User extends Wxapp
|
||||
$bg_color = '#fff';
|
||||
$in_time = $res_items[0]['in_time'] != '0000-00-00 00:00:00' ? strtotime($res_items[0]['in_time']) : $res_items[0]['c_time'];
|
||||
$re_logs = $this->mdItemsOplogs->select(["item_id in({$str_ids})" => null, 'type' => 2, 'biz_id_to' => $val['id']
|
||||
], 'c_time asc', 1, 1, 'com_time');//找出调拨最早
|
||||
], 'com_time asc', 1, 1, 'com_time');//找出调拨最早
|
||||
$re_logs && $in_time = strtotime($re_logs[0]['com_time']);
|
||||
if ($in_time) {//计算库存天数
|
||||
$days = round((time() - $in_time) / 3600 / 24);
|
||||
|
||||
Reference in New Issue
Block a user