-- Error al pagar agrupado domicilio SoftRestaurant 9.0PRO
--Consulta 1
ALTER TABLE tempcheques ADD cuentapagadaprocesada bit DEFAULT NULL
--Consulta 2
IF NOT Exists(select * from syscolumns as sc INNER JOIN sysobjects as so on sc.id=so.id and sc.name='paymentmethod_id' and so.name='tempcheques')
BEGIN
ALTER TABLE tempcheques ADD paymentmethod_id int NOT NULL default -1
END
IF NOT Exists(select * from syscolumns as sc INNER JOIN sysobjects as so on sc.id=so.id and sc.name='paymentmethod_id' and so.name='cheques')
BEGIN
ALTER TABLE cheques ADD paymentmethod_id int NOT NULL default -1
END