IF EXISTS (SELECT * FROM tbWorkFlowTasks WHERE ActionLink = 'MMS_Stores_ExternalSite.aspx?url=/Financial/CollectedSales&hideStoreSelector=true')
BEGIN

UPDATE tbWorkFlowTasks SET ConfirmationQuery = 'Custom:Mx.Services.WorkFlowTaskService,Mx.Services:CheckCollectedSales|*|qryMMSWorkFlowCheck_ClosingChangeFundStatus,qryMMSWorkFlowCheck_CollectedSalesStatus' 
WHERE ActionLink = 'MMS_Stores_ExternalSite.aspx?url=/Financial/CollectedSales&hideStoreSelector=true'

END
GO
