Explorar el Código

发货单选择订单过滤条件更新

hu hace 2 años
padre
commit
7edcd7708c

+ 1 - 0
src/custom/restcontroller/webmanage/sale/dispatch/SQL/审核订单列表查询.sql

@@ -10,5 +10,6 @@ FROM sa_order t1
          LEFT JOIN sys_enterprise t2 ON t1.sys_enterpriseid = t2.sys_enterpriseid
     AND t1.siteid = t2.siteid
 WHERE t1.STATUS = '审核'
+  and  exists (select 1 from sa_orderitems where (ifnull(undeliqty, 0)!=0 and ifnull(isclose, 0 )= 0) and sa_orderid=t1.sa_orderid)
   AND t1.siteid = $siteid$
   and $where$