|
@ -39,6 +39,7 @@ ALTER PROC PROC_AGENT_RECEIVER_SETUP |
|
|
@otherRelationDesc VARCHAR(20) = NULL, |
|
|
@otherRelationDesc VARCHAR(20) = NULL, |
|
|
@RelationshipOther VARCHAR(100) = NULL, |
|
|
@RelationshipOther VARCHAR(100) = NULL, |
|
|
@PurposeOfRemitanceOther VARCHAR(100) = NULL, |
|
|
@PurposeOfRemitanceOther VARCHAR(100) = NULL, |
|
|
|
|
|
@branchManual VARCHAR(100) = NULL, |
|
|
@loginBranchId BIGINT = NULL |
|
|
@loginBranchId BIGINT = NULL |
|
|
AS |
|
|
AS |
|
|
SET NOCOUNT ON; |
|
|
SET NOCOUNT ON; |
|
@ -98,15 +99,18 @@ BEGIN |
|
|
(fullname |
|
|
(fullname |
|
|
,membershipId ,customerId ,firstName ,middleName ,lastName1 ,lastName2 ,country ,NativeCountry,[address] ,[state] ,zipCode ,city ,email , |
|
|
,membershipId ,customerId ,firstName ,middleName ,lastName1 ,lastName2 ,country ,NativeCountry,[address] ,[state] ,zipCode ,city ,email , |
|
|
homePhone ,workPhone ,mobile ,relationship ,receiverType ,idType ,idNumber ,placeOfIssue ,paymentMode ,bankLocation ,payOutPartner , |
|
|
homePhone ,workPhone ,mobile ,relationship ,receiverType ,idType ,idNumber ,placeOfIssue ,paymentMode ,bankLocation ,payOutPartner , |
|
|
bankName ,receiverAccountNo ,remarks ,purposeOfRemit ,createdBy ,createdDate,otherRelationDesc,agentId, relationOther, purposeOther, isCDDIUpdated |
|
|
|
|
|
|
|
|
bankName ,receiverAccountNo ,remarks ,purposeOfRemit ,createdBy ,createdDate,otherRelationDesc,agentId, relationOther, purposeOther, isCDDIUpdated, |
|
|
|
|
|
bankBranchName |
|
|
) |
|
|
) |
|
|
SELECT ISNULL(@firstName,'') + ISNULL(' ' + @middleName,'') +ISNULL(' ' + @lastName1,''), |
|
|
SELECT ISNULL(@firstName,'') + ISNULL(' ' + @middleName,'') +ISNULL(' ' + @lastName1,''), |
|
|
@membershipId ,@customerIdNew ,@firstName ,@middleName ,@lastName1 ,@lastName2 ,@country ,@nativeCountry,@address ,@state ,@zipCode ,@city ,@email , |
|
|
@membershipId ,@customerIdNew ,@firstName ,@middleName ,@lastName1 ,@lastName2 ,@country ,@nativeCountry,@address ,@state ,@zipCode ,@city ,@email , |
|
|
@homePhone ,@workPhone ,@mobile ,@RELATION ,@receiverType ,@idType ,@idNumber ,@placeOfIssue ,@paymentMode ,@bankLocation ,@payOutPartner , |
|
|
@homePhone ,@workPhone ,@mobile ,@RELATION ,@receiverType ,@idType ,@idNumber ,@placeOfIssue ,@paymentMode ,@bankLocation ,@payOutPartner , |
|
|
@bankName ,@receiverAccountNo ,@remarks ,@PURPOSEID ,@user ,GETDATE(),@otherRelationDesc,@loginBranchId, @RelationshipOther, @PurposeOfRemitanceOther, 1 |
|
|
|
|
|
|
|
|
@bankName ,@receiverAccountNo ,@remarks ,@PURPOSEID ,@user ,GETDATE(),@otherRelationDesc,@loginBranchId, @RelationshipOther, @PurposeOfRemitanceOther, 1 , |
|
|
|
|
|
@branchManual |
|
|
|
|
|
|
|
|
SET @receiverId=SCOPE_IDENTITY(); |
|
|
SET @receiverId=SCOPE_IDENTITY(); |
|
|
SELECT '0' errorCode ,'Receiver Successfully added.' msg ,id = @receiverId,extra = cast(@customerIdNew as varchar) + '|' + cast(@membershipId as varchar); |
|
|
SELECT '0' errorCode ,'Receiver Successfully added.' msg ,id = @receiverId,extra = cast(@customerIdNew as varchar) + '|' + cast(@membershipId as varchar); |
|
|
RETURN; |
|
|
RETURN; |
|
|
END; |
|
|
END; |
|
|
END |
|
|
END |
|
|
|
|
|
|