东莞精诚网络技术交流论坛

 找回密码
 注册
搜索
热搜: 活动 交友 discuz
查看: 1924|回复: 0

金蝶K3一些参数和表处理的SQL语句

[复制链接]
发表于 2009-4-11 09:51:43 | 显示全部楼层 |阅读模式
修改物料的计量单位
select * from t_icitem  where fnumber  like  'C.01%'
select * from t_measureunit
update t_icitem set fsaleunitid='1844' where fnumber  like  'C.01%'-----销售计量单位
update t_icitem set forderunitid='1844' where fnumber  like  'C.01%'-----采购计量单位
update t_icitem set fstoreunitid='1844' where fnumber  like  'C.01%'-----库存计量单位
update t_icitem set fproductunitid='1844' where fnumber  like  'C.01%'-----生产计量单位
update t_icitem set fsecunitid=null   where fnumber='pm.ad.dp.zz.0037.m06'---改为空值
update t_icitem set fpricedecimal=6---修改单价精度

-修改固定资产模块的开始期间
UPDATE t_SystemProfile
SET FValue = 1
WHERE (FCategory = 'FA') AND (FKey = 'StartPeriod')
UPDATE t_SystemProfile
SET FValue = 2007
WHERE (FCategory = 'FA') AND (FKey = 'StartYear')

修改总帐期间
select * from  t_SystemProfile
UPDATE t_SystemProfile
SET FValue = 3
WHERE (FCategory = 'gl') AND (FKey = 'currentPeriod')
UPDATE t_SystemProfile
SET FValue = 2009
WHERE (FCategory = 'gl') AND (FKey = 'currentyear')
修改暂估的参数
UPDATE t_SystemProfile
SET FValue = '1'
WHERE (FKey = 'zangudiffmethod') AND (FCategory = 'IC')------单到冲回或月初一次从回

UPDATE t_SystemProfile
SET FValue = '1'
WHERE (FKey = 'MAKEzanguvoucher') AND (FCategory = 'IC')-----选择入库暂估
修改计价方法
select * from t_icitem  where fnumber='02.003'
select * from t_icitem where ftrack='81'  
update t_icitem set ftrack='76' where fnumber='02.003'
修改库存更新参数
update t_systemprofile set fvalue=1 where fcategory='ic' and fkey='upstockwhensave'
修改业务期间
UPDATE t_SystemProfile
SET FValue = 2008
WHERE (FKey = 'StartYear') AND (FCategory = 'IC')
UPDATE t_SystemProfile
SET  FValue = 10
WHERE (FKey = 'StartPeriod ') AND (FCategory = 'IC')
UPDATE t_SystemProfile
SET FValue = 2008
WHERE (FKey = 'CurrentYear') AND (FCategory = 'IC')
UPDATE t_SystemProfile
SET  FValue = 10
WHERE (FKey = 'CurrentPeriod ') AND (FCategory = 'IC')
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|Archiver|精诚网络 ( 粤ICP备13030199号 )

GMT+8, 2021-10-23 19:05 , Processed in 0.100104 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表