|
@@ -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'])
|
|
|
.")";
|
|
|
}
|