Try this.
SELECT A.Code , A.Name, A.Value - isnull(B.Value,0) - isnull(C.Value,0) as COLLL
FROM (SELECT [Code],[Name],Sum([Value]) as Value FROM [zamzam].[dbo].[B_Delivery_Stuff] WHERE [Type]=1 AND [Code] IN(SELECT [Code] FROM [zamzam].[dbo].[S_Stuff] WHERE ID_TypeStuff=4)
Group by Code ,Name) A
left join (SELECT [Code],Sum([Value]) as Value
FROM [zamzam].[dbo].[B_Delivery_Stuff] B WHERE [type]=2 AND Code IN(SELECT [Code]
FROM [zamzam].[dbo].[S_Stuff] where ID_TypeStuff=4) Group by Code) B on A.Code = B.Code
left join (SELECT [Code]
,Sum([Value]) as Value
FROM [zamzam].[dbo].[B_StuffProduct] C WHERE Code IN(SELECT [Code]
FROM [zamzam].[dbo].[S_Stuff] where ID_TypeStuff=4) Group by Code) C on A.Code = C.Code having A.Value - isnull(B.Value,0) - isnull(C.Value,0) <>0