在线播放亚洲第一字幕,大鸡巴操死我了视频网站,欧美日韩中文字,久久久999婷婷欧美一区

Rss & SiteMap

昂捷論壇 http://m.yzsenyi.com

中國零售業(yè)界精英論壇!
共2 條記錄, 每頁顯示 15 條, 頁簽: [1]
[瀏覽完整版]

標(biāo)題:店代碼不小心改變后要修改的數(shù)據(jù)

1樓
czg1981 發(fā)表于:2008/7/17 18:55:04

對應(yīng)連鎖企業(yè)來說,我們系統(tǒng)在總部來統(tǒng)一修改參數(shù),然后由系統(tǒng)自動下發(fā)到每一個門店,這樣提高了我們的工作效率,但是有時候不小心把一些相對獨立的參數(shù)也一起下發(fā)了,比如店代碼.
店代碼修改后影響的數(shù)據(jù):用戶進入系統(tǒng)的權(quán)限,值單機構(gòu)等;流水方面需要修改非自營商品的扣率,銷售成本,店代碼等
流水方面涉及的表有:tb_o_sg, tb_o_sm,tb_o_sg_today,tb_cursale
參考語句:

select * into #tb_o_sg
from tb_o_sg
where c_store_id='1'
and datediff(day,c_datetime,getdate())=0

update #tb_o_sg
set c_deduct_rate=case when b.c_prom_deduct_rate<>0 then b.c_prom_deduct_rate else b.c_deduct_rate end,
 c_pt_cost=round(#tb_o_sg.c_price_disc*(1-0.01*case when b.c_prom_deduct_rate<>0 then b.c_prom_deduct_rate else b.c_deduct_rate end),2)
from tb_gdsprovider b
where #tb_o_sg.c_gds_type like '自營%'
and #tb_o_sg.c_gcode=b.c_gcode
and b.c_status='主供應(yīng)商'

update tb_o_sg
set c_deduct_rate=b.c_deduct_rate,c_pt_cost=b.c_pt_cost,c_store_id=dbo.uf_store_id()
from #tb_o_sg b
where tb_o_sg.c_guid=b.c_guid

update tb_o_sg_today
set c_deduct_rate=b.c_deduct_rate,c_pt_cost=b.c_pt_cost,c_store_id=dbo.uf_store_id()
from #tb_o_sg b
where tb_o_sg.c_guid=b.c_guid

update tb_o_sm
set c_store_id=dbo.uf_store_id()
where c_store_id='1'
and datediff(day,c_datetime,getdate())=0

delete tb_cursale
where datediff(day,c_datetime,getdate())=0

2樓
czg1981 發(fā)表于:2008/7/17 18:58:41
對應(yīng)連鎖企業(yè)還有手工的調(diào)整上級的實時銷售監(jiān)測
如果做了其它單據(jù),就只能一一的修改了
共2 條記錄, 每頁顯示 15 條, 頁簽: [1]

Copyright © 2006-2010 EnjoyIT.com.cn
網(wǎng)友言論或觀點與昂捷公司無關(guān)!涉及版權(quán)/著作權(quán)問題請與發(fā)帖者直接聯(lián)系
Powered By Dvbbs Version 8.2.0
Processed in 0.19141 s, 2 queries.
枞阳县| 固始县| 金秀| 海宁市| 弥渡县| 光山县| 镶黄旗| 资阳市| 江源县| 平利县| 苍南县| 长顺县| 多伦县| 仙居县| 裕民县| 彰化市| 西藏| 沂源县| 安宁市| 琼海市| 府谷县| 勐海县| 恭城| 澄城县| 灵山县| 夏津县| 南康市| 阜康市| 井研县| 凤台县| 阿城市| 敦煌市| 兖州市| 土默特右旗| 新昌县| 南郑县| 张家港市| 景泰县| 望奎县| 吉首市| 囊谦县|