Create TRIGGER [dbo].[Tu_EShopTrackingDetail]
ON [dbo].[TrackingDetail]
AFTER UPDATE
AS
    BEGIN
	 Declare @isdone bit = (Select top(1) isdone From inserted)
	 if update (isdone) and (@isdone=1)
	 begin
			INSERT dbo.EShopTablesChanges ( Id ,Name ,EntityRowId ,	ModifiedOn ,Action )
							SELECT NEWID() ,
							'Tracking' ,
							inserted.Id ,
							GETDATE() ,
							0
			FROM Inserted WITH (NOLOCK) 
    end
    END