|
|
@ -98,5 +98,31 @@ BEGIN |
|
|
|
SELECT '0' errorCode ,'Receiver Successfully added.' msg ,id = @receiverId,extra = cast(@customerIdNew as varchar) + '|' + cast(@membershipId as varchar); |
|
|
|
RETURN; |
|
|
|
END; |
|
|
|
IF @flag = 'i-new-tab' |
|
|
|
BEGIN |
|
|
|
IF NOT EXISTS(SELECT 'X' FROM CUSTOMERMASTER WITH(NOLOCK) WHERE customerId = @customerId) |
|
|
|
BEGIN |
|
|
|
SELECT '1' errorCode,''''+cast(@customerId as varchar) + ''' customerId does not exists.' msg,null id |
|
|
|
RETURN |
|
|
|
END |
|
|
|
|
|
|
|
SELECT @membershipId = membershipId from CUSTOMERMASTER WITH(NOLOCK) WHERE customerId = @customerId |
|
|
|
INSERT INTO receiverInformation |
|
|
|
(fullname |
|
|
|
,membershipId ,customerId ,firstName ,middleName ,lastName1 ,lastName2 ,country ,NativeCountry,[address] ,[state] ,zipCode ,city ,email , |
|
|
|
homePhone ,workPhone ,mobile ,relationship ,receiverType ,idType ,idNumber ,placeOfIssue ,paymentMode ,bankLocation ,payOutPartner , |
|
|
|
bankName ,receiverAccountNo ,remarks ,purposeOfRemit ,createdBy ,createdDate,otherRelationDesc,agentId, relationOther, purposeOther, isCDDIUpdated, |
|
|
|
bankBranchName |
|
|
|
) |
|
|
|
SELECT ISNULL(@firstName,'') + ISNULL(' ' + @middleName,'') +ISNULL(' ' + @lastName1,''), |
|
|
|
@membershipId ,@customerId ,@firstName ,@middleName ,@lastName1 ,@lastName2 ,@country ,@nativeCountry,@address ,@state ,@zipCode ,@city ,@email , |
|
|
|
@homePhone ,@workPhone ,@mobile ,@RELATION ,@receiverType ,@idType ,@idNumber ,@placeOfIssue ,@paymentMode ,@bankLocation ,@payOutPartner , |
|
|
|
@bankName ,@receiverAccountNo ,@remarks ,@PURPOSEID ,@user ,GETDATE(),@otherRelationDesc,@loginBranchId, @RelationshipOther, @PurposeOfRemitanceOther, 1 , |
|
|
|
@branchManual |
|
|
|
|
|
|
|
SET @receiverId=SCOPE_IDENTITY(); |
|
|
|
SELECT '0' errorCode ,'Receiver Successfully added.' msg ,id = @receiverId,extra = cast(@customerId as varchar) + '|' + cast(@membershipId as varchar); |
|
|
|
RETURN; |
|
|
|
END; |
|
|
|
END |
|
|
|
|