Skip to content

Commit

Permalink
CON-1493- Script updated after execution of Test Scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
VasanthaKasirajan3008 committed Aug 10, 2020
1 parent c31c3d1 commit f93f413
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ WHERE PendingAgreementVersion = 3
INSERT INTO [employer_account].[EmployerAgreement] (TemplateId, StatusId, AccountLegalEntityId)
SELECT 5, 1, Id
FROM [employer_account].[AccountLegalEntity]
WHERE PendingAgreementVersion IS NULL AND PendingAgreementId IS NULL AND Deleted IS NULL
WHERE (PendingAgreementVersion IS NULL OR PendingAgreementVersion = 4) AND Deleted IS NULL

UPDATE ale
SET PendingAgreementVersion = 4, PendingAgreementId = ea.Id
FROM [employer_account].[AccountLegalEntity] ale
JOIN [employer_account].[EmployerAgreement] ea ON ea.AccountLegalEntityId = ale.Id AND ea.TemplateId = 5 AND ea.StatusId = 1
WHERE PendingAgreementVersion IS NULL AND PendingAgreementId IS NULL AND Deleted IS NULL
WHERE (PendingAgreementVersion IS NULL OR PendingAgreementVersion = 4) AND Deleted IS NULL

0 comments on commit f93f413

Please sign in to comment.