소스 검색

修改产品入库的总数计算

lvhao 1 개월 전
부모
커밋
bc23c2abb0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      core/CoreApp/controllers/Whlabel.php

+ 2 - 1
core/CoreApp/controllers/Whlabel.php

@@ -2207,7 +2207,8 @@ class Whlabel extends Start_Controller
 				$g = $this->whlabel->find_count($where . ' and enter = "' . $v['enter'] . '" and sku = "' . $v['sku'] . '" and warehouse = "' . $v['warehouse'] . '"');
 				$info_list[$k]['g'] = $g;
 			}
-			$total = count($this->whlabel->find_pc($where, 'sku,features,warehouse', 'id,warehouse,sku,title,features,number'));
+			//$total = count($this->whlabel->find_pc($where, 'sku,features,warehouse', 'id,warehouse,sku,title,features,number'));
+			$total = count($this->whlabel->find_pc($where, 'enter,warehouse,sku', 'id,warehouse,sku,title,features,number'));
 			$pagenum = ceil($total / $perpage);
 			$over = $total - ($start + $perpage);
 			$rows = array('total' => $total, 'over' => $over, 'pagenum' => $pagenum, 'rows' => ($info_list));