27  
泰格数据库特征从分店改为总部
作者: 王天宇 于 2020年09月29日 发布在分类 / 软件 / 泰格 / 至尊 下,并于 2020年09月29日 编辑

/*把分店改总部或单店版*/

--1.先用APP工具,修改仓库,把原来的仓库编号改为00

--2.把前台所有POS机的所属仓库更改为00

--3.再执行以下命令修改数据库内部的值为00

if not exists(select 1 from ba_stock_info where branch_no = '00')
   insert ba_stock_info (branch_no, branch_name ) values('00', '公司总部') 

update sys_option set system_value = '1' where system_id = 'Is_Distributed'
update sys_option set system_value = '00' where system_id = 'g_branch_no'
update sys_buyer_info set branch_no = '00'

delete item_branch where branch_no = '00'
delete ba_branch_sale_price where branch_no = '00'

truncate table cm_point
truncate table cm_sheet_point
truncate table cm_branch_sheet_point
truncate table cm_stock_info




 推荐知识

 历史版本

修改日期 修改人 备注
2020-09-29 08:54:08[当前版本] 王天宇 1.0

慧邦知识分享平台 - free.V4.3.0-439 - 免费版