diff --git a/src/Sql/dbo/Stored Procedures/Transaction_ReadByOrganizationId.sql b/src/Sql/dbo/Stored Procedures/Transaction_ReadByOrganizationId.sql index d15c7603e..47736d1d3 100644 --- a/src/Sql/dbo/Stored Procedures/Transaction_ReadByOrganizationId.sql +++ b/src/Sql/dbo/Stored Procedures/Transaction_ReadByOrganizationId.sql @@ -9,6 +9,6 @@ BEGIN FROM [dbo].[TransactionView] WHERE - [UserId] = NULL + [UserId] IS NULL AND [OrganizationId] = @OrganizationId END \ No newline at end of file diff --git a/util/Setup/DbScripts/2019-01-31_00_Transactions.sql b/util/Setup/DbScripts/2019-01-31_00_Transactions.sql index f559ac730..e9c61fd30 100644 --- a/util/Setup/DbScripts/2019-01-31_00_Transactions.sql +++ b/util/Setup/DbScripts/2019-01-31_00_Transactions.sql @@ -155,7 +155,7 @@ BEGIN FROM [dbo].[TransactionView] WHERE - [UserId] = NULL + [UserId] IS NULL AND [OrganizationId] = @OrganizationId END GO