Parcourir la source

修改产品入库的总数计算

lvhao il y a 1 mois
Parent
commit
bc23c2abb0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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));