记录生活和工作的点滴

单品转柜错误(购销处理)

begin tran
--删除转柜记帐单
delete unaccsheet0 where sheettype in (2371,2372) and venderid=3210 and shopid='A002'
--更新商品柜组属性
update countergoods set counterid=2501,countgroupid=2501 where goodsid=86075 and shopid='A002'
--更新销售柜组
update salegoods201201 set countgroupid=2501 where goodsid=86075 and shopid='A002' and sdate>='20120110'
--更新成本柜组
update salecost201201 set countgroupid=2501 where goodsid=86075 and shopid='A002' and sdate>='20120110'
 
update rpt_d_shopsstock set countgroupid=2501  where goodsid=86075 and shopid='A002' and sdate>='20120110'
 
commit

引用通告 | 工作日记RSS 标签:
1/1, 0«1»

发布评论

您的昵称 邮箱地址 个人主页
Processed in 0.0687 second(s), 9 queries