wugg před 2 roky
rodič
revize
8a62ee353c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/admin/controller/Sale.php

+ 1 - 1
app/admin/controller/Sale.php

@@ -3056,7 +3056,7 @@ class Sale extends Base
         $condition='';
         if(!empty($role['write']) && $this->uid!=""){
             // $where[]=["a.apply_id","in",$role['write']];
-            $condition .=" (gb.is_stock=1 and n.contactor = {$this->uid}) or (gb.is_stock=0 and wpo.cgder_id = {$this->uid}) or a.apply_id in (".implode(',',
+            $condition .=" (b.is_stock=1 and n.contactor = {$this->uid}) or (b.is_stock=0 and wpo.cgder_id = {$this->uid}) or a.apply_id in (".implode(',',
                     $role['write'])
                 .")";
         }