找回密码
 立即注册
搜索
查看: 90|回复: 0

药房网试图

[复制链接]

251

主题

134

回帖

1404

积分

版主

积分
1404

活跃会员宣传达人突出贡献优秀版主

发表于 2024-8-29 10:43:02 | 显示全部楼层 |阅读模式
selecte.fileno,b.waresimname,b.warename,b.warespec,dbo.f_get_classname(b.wareid,’03’,1) jx,max(b.purprice * 1.55) as price,sum(a.wareqty – a.awaitqty) as wareqty,
1 zk,b.barcode,dbo.f_get_classname(b.wareid,’08’,1) fl,producer,a.wareid,max(c.batchno+c.idno) as batid,1 zl,max(b.purprice) as purprice,max(c.makeno) as makeno,max(c.makedate) as makedate,max(c.invalidate) as ivalidate
from u_store_c a inner join u_ware_q b on a.wareid = b.wareid
inner join u_ware_ext e on a.wareid = e.wareid
inner join u_store_i c on a.wareid = c.wareid and a.batchno = c.batchno and a.idno = c.idno
where a.wareqty > 0 and a.busno in (‘0000′,’196′,’234′,’118′,’197′,’100’)
and b.warename not like ‘%YW%’
group by e.fileno,b.waresimname,b.warename,b.warespec,b.wareid,
b.barcode,producer,a.wareid,b.warename
and (b.warename not like ‘%YW%’ or b.warename not like ‘%XY%’ )

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表