|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
KIS专业版修改帐套启用期间
查询开始期间(年度)和当前期间(年度)的数据表信息
select * from t_systemprofile where fkey like '%star%'
select * from t_systemprofile where fkey like '%curr%'
--修改启用期间
update t_systemprofile set fvalue='1' where fkey='StartPeriod' and
fcategory='IC'
--修改当前期间
update t_systemprofile set fvalue='1' where fkey='CurrentPeriod' and
fcategory='IC'
--修改启用年份
update t_systemprofile set fvalue='2007' where fkey='StartYear' and
fcategory='IC'
--修改当前年份
update t_systemprofile set fvalue='2007' where fkey='CurrentYear' and
fcategory='IC'
fcategory值说明
CN(出纳管理),CN_START_YEAR表示出纳启用期间,CN_START_YEAR表示出纳的启用年度
FA(固定资产),StartPeriod表示启用期间,StartYear表示启用年度
GL(财务处理),PA为工资管理,IC为业务系统
专业版修改系统参数
允许负库存
Update t_systemprofile Set FValue=0 where FCategory='IC' And FKey='UnderStock'
Fvalue = 1 不允许负库存
Fvalue = 0 允许负库存
改为分仓核算
Update t_systemprofile Set FValue=1 where FCategory=’IC’ And FKey=’CalculateType'
Fvalue = 1 为分仓
Fvalue = 0 为总仓
修改为保存更新还是审核更新
Update t_systemprofile set FValue=0 where FCategory='IC' and FKey='UPSTOCKWHENSAVE'
Fvalue = 0 审核更新
Fvalue = 1 保存更新
修改为单到冲回还是差额冲回
Update t_systemprofile set FValue=0 where FCategory='IC' and FKey='ZanGuDiffMethod'
Fvalue = 0 差额冲回
Fvalue = 1 单到冲回
实例:刚开的账套,开账时设了按自然月作会计期间,现要修改为每月的25号为期末,26号当下一期的期初。
第一 、先要确保没有凭证是跨期的,也就是说,要改的当期凭证不能有26号的,要将凭证改26号之前时间或删除。
第二、备份账套文件,改这个很容易出问题的,一定要备份好账套。
第三、改数据库,在SQL查询运行如下代码:
update t_systemprofile
set FValue='0'
where FKey='PeriodByMonth' and FValue='1'
update t_systemprofile
set FValue = '010101260226032604260526062607260826092610261126'
where FValue ='010102010301040105010601070108010901100111011201'
update t_systemprofile
set FValue = 0
where FCategory = 'GL' and FKey='Closed'
第四、进入系统参数设置修改会计期间。
第五、改数据库,在SQL查询运行如下代码:
update t_systemprofile
set FValue = 1
where FCategory = 'GL' and FKey='Closed'
完成!
修改允许负库存结账(1 允许 0 不允许)
update t_SystemProfile set FValue=1 WHERE (FCategory = 'IC' and FKey='UnderStockCalculate')
修改允许负库存出库(1 允许 0 不允许)
Update t_systemprofile Set FValue=1 where FCategory='IC' And FKey='UnderStock'
|
|