wzh 5 years atrás
parent
commit
493fb50079
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/application/controllers/Lampcontrol.php

+ 2 - 2
api/application/controllers/Lampcontrol.php

@@ -46,9 +46,9 @@ class Lampcontrol extends Base_Controller {
             
             if ($type == 2) {
                 $filter['L.manu'] = $company;
-            }elseif ($type == 2) {
-                $filter['L.supplier'] = $company;
             }elseif ($type == 3) {
+                $filter['L.supplier'] = $company;
+            }elseif ($type == 4) {
                 $filter['L.po'] = $company;
             }else {
                 $filter['L.upazilla'] = $company;