
insert into SystemSetting(SettingName,SettingValue1,SettingValue2)
values 
	('CompanyConfiguration','ShowRightFactoryItem','false') 	

insert into CompanyConfiguration
	select 'ShowRightFactoryItem','false'

update SystemSetting set SettingValue2='false,true' where SettingValue1='OrderEditModels'
update SystemSetting set SettingValue2='false,true' where SettingValue1='FactoryOrderEditModels'

update CompanyConfiguration set SettingValue='false,true' where SettingName='OrderEditModels'
update CompanyConfiguration set SettingValue='false,true' where SettingName='FactoryOrderEditModels'

update SystemSetting set SettingValue2='2' where SettingValue1='OrderEditDefaultModel'
update CompanyConfiguration set SettingValue='2' where SettingName='OrderEditDefaultModel'



insert into SystemSetting(SettingName,SettingValue1,SettingValue2)
values 
	('CompanyConfiguration','PrintDeliveryTransactionDate','false') 	
insert into CompanyConfiguration
	select 'PrintDeliveryTransactionDate','false'  	
	
	
insert into SystemSetting(SettingName,SettingValue1,SettingValue2)
values 
	('CompanyConfiguration','PrintDeliveryDetail','true') 	
insert into CompanyConfiguration
	select 'PrintDeliveryDetail','true'  


update configuration set SettingValue='5.0.6' where SettingName='DatabaseVersion'
 go
 