|
|
@@ -3,6 +3,6 @@ from plm_item t1
|
|
|
LEFT JOIN sa_itemsaleclass t2 ON t2.itemid = t1.itemid AND t2.siteid = t1.siteid
|
|
|
LEFT JOIN plm_itemclass t3 ON t2.itemclassid = t3.itemclassid AND t2.siteid = t3.siteid
|
|
|
where t1.siteid = $siteid$
|
|
|
- and $where$
|
|
|
+ and $where$ and $tablefilter$
|
|
|
and not exists(select 1 from sa_itempriceadjust_items where siteid= $siteid$ and sa_itempriceadjustid=$sa_itempriceadjustid$ and t1.itemid=itemid)
|
|
|
group by t1.itemid, t1.itemname, t1.itemno, t1.model, t1.spec
|