金蝶 KIS 专业版财务包快速删除所有凭证及余额
业务场景:企业要建多个套帐并且要求科目结构完全一致,未使用数量金额核算。其中一个帐套已经使用一个月,其他帐套要完全按照该帐套结构建立并使用。
方法一:新建帐套,使用数据交换平台将源帐套基础资料全部导出到新帐套中。缺点:大量的报表不能批量导入。
方法二:将源帐套备份,然后恢复,更改帐套属性;
通过如下 SQL 语句清除帐套所有数据:
Delete from t_FACard
Delete from t_FADevice
Delete from t_FAOrgFor
Delete from t_FADept
Delete from t_FAExpense
Delete from t_FAPurchase
Delete from t_FACardItem
Delete from t_FAClear
Delete from t_FAAlter
Delete from t_FABalCard
Delete from t_FABalDevice
Delete from t_FABalOrgFor
Delete from t_FABalDept
Delete from t_FABalExpense
Delete from t_FABalPurchase
Delete from t_FABalCardItem
Delete from t_FABalance
--以上删除所有固定资产卡片
Delete from t_VoucherEntry --删除所有凭证分录
Delete from t_Voucher --删除所有凭证
Delete from t_CashFlowBal --删除现金流量
Delete from t_profitandloss --删除损益类实际发生额
Delete from t_balance --删除余额
Delete from t_log --删除系统日志
Delete from cn_xjrjz --删除现金日记帐
Delete from cn_yhrjz --删除银行日记帐
Delete from cn_lcye --删除年初余额表数据
缺点:无;优点:速度快,而且原有报表也全部存在。