Преглед на файлове

区域经理发退明细bug修复

hu преди 1 година
родител
ревизия
0dcbce4039
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/custom/restcontroller/webmanage/sale/dispatch/SQL/工厂发货及退货明细(区域经理).sql

+ 1 - 1
src/custom/restcontroller/webmanage/sale/dispatch/SQL/工厂发货及退货明细(区域经理).sql

@@ -54,4 +54,4 @@ FROM st_stockbill_items t1
          left join plm_itemextend t6 on t2.siteid = t6.siteid and t2.itemid = t6.itemid
          left join sa_agents t7 on t7.sys_enterpriseid=t8.sys_enterpriseid and t7.siteid=t8.siteid
          left join sys_enterprise t9 on t9.sys_enterpriseid=t8.sys_enterpriseid and t9.siteid=t8.siteid
-where t4.rb=0 and  t1.siteid = $siteid$ and t4.sys_enterpriseid in (select sys_enterpriseid from sys_enterprise_tradefield where sa_saleareaid in $sa_saleareaids$)) t where $where$
+where t4.rb=0 and  t1.siteid = $siteid$ and $where$ and t4.sys_enterpriseid in (select sys_enterpriseid from sys_enterprise_tradefield where sa_saleareaid in $sa_saleareaids$)) t