Skip to content

Commit 7597d4d

Browse files
author
dborowiecki
committed
OTC-144: Enrolled insurees have isOffline flag set to 0
1 parent 5accf38 commit 7597d4d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

-16 Bytes
Binary file not shown.

Migration script/openIMIS migration v1.4.2 - 1.5.0.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ CREATE PROCEDURE [dbo].[uspConsumeEnrollments](
678678
WHILE @@FETCH_STATUS = 0
679679
BEGIN
680680
INSERT INTO tblFamilies(InsureeId, LocationId, Poverty, ValidityFrom, AuditUserId, FamilyType, FamilyAddress, Ethnicity, ConfirmationNo, ConfirmationType, isOffline)
681-
SELECT 0 , TF.LocationId, TF.Poverty, GETDATE() , @AuditUserId , TF.FamilyType, TF.FamilyAddress, TF.Ethnicity, TF.ConfirmationNo, ConfirmationType,1 isOffline FROM @tblFamilies TF
681+
SELECT 0 , TF.LocationId, TF.Poverty, GETDATE() , @AuditUserId , TF.FamilyType, TF.FamilyAddress, TF.Ethnicity, TF.ConfirmationNo, ConfirmationType, 0 FROM @tblFamilies TF
682682
DECLARE @NewFamilyId INT =0
683683
SELECT @NewFamilyId= SCOPE_IDENTITY();
684684
IF @@ROWCOUNT > 0
@@ -765,7 +765,7 @@ CREATE PROCEDURE [dbo].[uspConsumeEnrollments](
765765
INSERT INTO tblInsuree(FamilyId, CHFID, LastName, OtherNames, DOB, Gender, Marital, IsHead, passport, Phone, CardIssued, ValidityFrom,
766766
AuditUserId, Relationship, Profession, Education, Email, TypeOfId, HFID, CurrentAddress, GeoLocation, CurrentVillage, isOffline)
767767
SELECT NewFamilyId, CHFID, LastName, OtherNames, DOB, Gender, Marital, IsHead, passport, Phone, CardIssued, GETDATE() ValidityFrom,
768-
@AuditUserId AuditUserId, Relationship, Profession, Education, Email, TypeOfId, HFID, CurrentAddress, GeoLocation, CurVillage, 1 isOffLine
768+
@AuditUserId AuditUserId, Relationship, Profession, Education, Email, TypeOfId, HFID, CurrentAddress, GeoLocation, CurVillage, 0
769769
FROM @tblInsuree WHERE InsureeId = @CurInsureeId;
770770
DECLARE @NewInsureeId INT =0
771771
SELECT @NewInsureeId= SCOPE_IDENTITY();

0 commit comments

Comments
 (0)