問題描述:
11.5升級到12.1標準版報錯:資產(chǎn)屬性中,系統(tǒng)預(yù)置的“無形資產(chǎn)”“周轉(zhuǎn)材料”“生產(chǎn)性生物資產(chǎn)”“長期待攤費用”,這幾個屬性下,存在資產(chǎn)卡片。
問題回復(fù):
這種方法對后續(xù)計提折舊有不可預(yù)知的錯誤,慎用,操作過程如下,首先備份賬套,然后在產(chǎn)品中的資產(chǎn)屬性基礎(chǔ)檔案中找到固定資產(chǎn)的名稱,替換下邊腳本中的“固定資產(chǎn)”,在產(chǎn)品中的資產(chǎn)分類中找到用戶想要把非固定資產(chǎn)的卡片放入的資產(chǎn)分類的名稱后替換下面腳本中的“工具“,在數(shù)據(jù)庫中的AA_DeprMethod表中找到”年限平均法“折舊方法的名稱,替換下面腳本中的”年限平均法“(用戶沒有改動過的話就不用替換了),都替換完畢后,執(zhí)行替換完后的腳本,再進行升級declare @assetpropid nvarchar(50)declare @assetclassid nvarchar(50)declare @deprmethodid nvarchar(50)set @assetpropid = (select id from AA_AssetProp where name = '固定資產(chǎn)')set @assetclassid = (select id from AA_AssetClass where name = '工具')set @deprmethodid = (select id from AA_DeprMethod where name = '年限平均法')update am_asset set idAssetProp = @assetpropid,idassetclass = @assetclassid,iddeprmethod = @deprmethodid where idassetclass in (select id from AA_AssetClass where idassetprop != @assetpropid)