  ALTER TABLE dbo.ApiCrmTasks ADD CustLocErpId INT NOT NULL DEFAULT(0),CustErpId INT NOT NULL DEFAULT(0);
  GO
  ALTER TABLE dbo.ApiDocuments ADD CustErpId INT NOT NULL DEFAULT(0);
  GO
  ALTER TABLE dbo.ApiCustomerPersons ADD CustLocErpId INT NOT NULL DEFAULT(0), CustErpId INT NOT NULL DEFAULT(0);;
  GO

  
  ALTER TABLE dbo.ApiCustomerLocations ADD OwnerErpId INT NOT NULL DEFAULT(0), CustErpId INT NOT NULL DEFAULT(0);
  GO

  ALTER TABLE dbo.ApiDocuments ADD NettoBrutto INT NOT NULL DEFAULT(0), Netto decimal(18,2) NOT NULL DEFAULT(0),Brutto decimal(18,2) NOT NULL DEFAULT(0);
  GO
  ALTER TABLE dbo.ApiCrmTasks ADD [TaskSummaryId] INT NOT NULL DEFAULT(0);
  GO
