/*把分店改总部或单店版*/
--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