Explorar o código

修改特殊仓浏览的状态

lvhao hai 5 días
pai
achega
a013837922
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      core/CoreApp/controllers/Specialstock.php

+ 5 - 2
core/CoreApp/controllers/Specialstock.php

@@ -980,9 +980,12 @@ class Specialstock extends Start_Controller {
             {
             {
                 $where  .= " and purchase = '$purchase'";
                 $where  .= " and purchase = '$purchase'";
             }
             }
-			if($state)
+			if(isset($state))
             {
             {
-                $where  .= " and state = '$state'";
+				if($state > -1){
+					$where  .= " and state = '$state'";
+				}
+               
             }
             }
 			if($ktime && $jtime)
 			if($ktime && $jtime)
             {
             {