金蝶K/3 WISE ERP匯率修改小記

最近財務發現有幾張銷售訂單的匯率選擇是正確的,美金,匯率也是公司匯率也正確的。但奇怪 的是,匯率一直是1,結果問了業務員才發現問題,原來是業務員自作聰明把正確的匯率改爲1了(匯率沒有禁止修改的)。


但銷售訂單已經審覈 了,不能再退回 反審修改了,也有10幾張銷售訂單,爲了財務數據的準確,只能改數據庫了。以下是修改代碼,大神請略過。。。


select * from seorder where fdate>='2017-01-01' and fcurrencyid=1003 and fexchangerate=1
go
--找出銷售訂單單據頭匯率錯誤的銷售訂單


update seorder set fexchangerate=6.9 where fdate>='2017-01-01' and fcurrencyid=1003 and fexchangerate=1
go


--修改正確單據頭的匯率



select * from seorderentry where finterid in(4901,
4908
,4909
,4910
,4911
,4912
,4967
,4995
,4996
,5005
,5006
,5059
,5249)
go


--過濾出來銷售單據體的內容



update seorderentry set fallstdamount=fallamount*6.9  where finterid in(4901,
4908
,4909
,4910
,4911
,4912
,4967
,4995
,4996
,5005
,5006
,5059
,5249)
go

--批量修改本位幣

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章