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

修改零售明细销售价格不会传输到门店

[复制链接]

251

主题

134

回帖

1404

积分

版主

积分
1404

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

发表于 2024-8-29 10:44:48 | 显示全部楼层 |阅读模式
elect case when stdprice=20 then 2 when stdprice=60 then 3 else 0 end ,stdprice,netprice, * –into d_sale_c_bak0203
from u_sale_c where wareid=’194607′ and accdate
=’2020-01-22′ and stdprice=2
create table #disable_u_sale_c(id int)
update u_sale_c
set stdprice=case when stdprice=20 then 2 when stdprice=60 then 3 else 0 end,netprice=case when stdprice=20 then 2 when stdprice=60 then 3 else 0 end
from u_sale_c
where wareid=’194607′ and accdate>=’2020-01-22′
drop table #disable_u_sale_c
恢复
select case when stdprice=2 then 20 when stdprice=3 then 60 else 0 end ,stdprice,netprice, * –into d_sale_c_bak0203
from u_sale_c where wareid=’194607′ and accdate
=’2020-01-22′ and stdprice=2
create table #disable_u_sale_c(id int)
update u_sale_c
set stdprice=case when stdprice=2 then 20 when stdprice=3 then 60 else 0 end,netprice=case when stdprice=2 then 20 when stdprice=3 then 60 else 0 end
from u_sale_c
where wareid=’194607′ and accdate>=’2020-01-22′
drop table #disable_u_sale_c

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

本版积分规则

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