<?xml version="1.0" encoding="utf-8"?>
  <finDocument version="1.00" exportedUtcDate="2023-06-07T21:34:54.0000000">
    <CreatedUserId>Admin</CreatedUserId>
    <CreatedUtcDate>2022-08-04T00:00:13.5100000</CreatedUtcDate>
    <UpdatedUserId>Admin</UpdatedUserId>
    <UpdatedUtcDate>2023-06-07T21:26:00.0160000</UpdatedUtcDate>
    <Active>true</Active>
    <AllowLog>true</AllowLog>
    <AllowStandalone>false</AllowStandalone>
    <AutoSaveDocument>true</AutoSaveDocument>
    <AutoPublishPriority>5</AutoPublishPriority>
    <Bookmarks />
    <Category />
    <CreateLog>true</CreateLog>
    <ChargeFee>false</ChargeFee>
    <CloudConnectAvailable>false</CloudConnectAvailable>
    <CloudConnectAllowPublish>false</CloudConnectAllowPublish>
    <DefaultPublishStatus>ToSend</DefaultPublishStatus>
    <Description>Loan Contract (Revolving Credit)</Description>
    <DocumentEmailCopyOfPrimary>true</DocumentEmailCopyOfPrimary>
    <DocumentEmailDoNotCombineForJoints>true</DocumentEmailDoNotCombineForJoints>
    <DocumentId>LCRC</DocumentId>
    <DocumentLogSubject />
    <DocumentType>Account</DocumentType>
    <EmailHTML>false</EmailHTML>
    <Fee>0</Fee>
    <FeeNotes />
    <FeeReference />
    <FeeElementId />
    <FileName>Loan_Contract_NZCCCFA_RC.docx</FileName>
    <FileType>WordDocument</FileType>
    <LogConfirmPrinted>false</LogConfirmPrinted>
    <Notes>This is an example Loan Contract suitable for Consumer Revolving Credit Loans in New Zealand.

Supports Account Applications.</Notes>
    <ParameterSetId />
    <ParametersType>Standard</ParametersType>
    <PermissionKeyExecute />
    <ShowInReportExplorer>false</ShowInReportExplorer>
    <SplitDocumentByPostalZone>false</SplitDocumentByPostalZone>
    <UserFlagA>false</UserFlagA>
    <UserFlagB>false</UserFlagB>
    <AllowExternalParty>None</AllowExternalParty>
    <DocumentTypeAccountApp>true</DocumentTypeAccountApp>
    <ExternalPartyCategories />
    <SendToAccountOwners>All</SendToAccountOwners>
    <SendToAccountGuarantors>true</SendToAccountGuarantors>
    <SendToAccountOther>false</SendToAccountOther>
    <SendToAccountJoints>false</SendToAccountJoints>
    <FileCategory />
    <EmbedDocumentInLog>false</EmbedDocumentInLog>
    <EmailDocument>Prompt</EmailDocument>
    <DoNotEmailDocumentForStandalone>false</DoNotEmailDocumentForStandalone>
    <EmailClientCommunicationType>NotApplicable</EmailClientCommunicationType>
    <PrintDocumentEvenIfEmailed>false</PrintDocumentEvenIfEmailed>
    <PrintOnPublish>true</PrintOnPublish>
    <TemplateMessage>Please review the attached letter.</TemplateMessage>
    <TemplateSubject>Loan Contract</TemplateSubject>
    <TemplateDocumentBinaryData>H4sIAAAAAAAEAOy7U6woQLO2uWzbtm3btm3btm3tZRt72bZt29bs7/zD5NzPJHPei0qlLzv1dnWl+1GQBgZBAQADgAAAACAEYEq0VzcDBAAoAQUAQAaAANIWtrdzMbVz0VfxdDB11qXzsLUhKAQBoigAAAL4H/3/Ws0pk1aDDAiir6E/wfOta1IdFCVD44XxptgWH4BRLHIiz0JFXT89hxyMJSSMLOMjBLNb3rMQjMHzG1k2kIgt7qSX6Lxpgcl6luzU66tHtP4mmGT7KQw7guNsATYsXd2YMmyADMQtg0nTylDyOUU5wagabwBxVKnxaiRcI5jwQn7RmHefereB0rdIf1PKNoJhwekVIkMl1y+z/NhJEGEar9otq5ukyIQYtKJEXHtcLuSleqQpJNqv+9vhPMRhY/BlyqlHgd064DuyylFNjBEXO+uXhtX5qGq7dDSU0Mps4Rw+KheQtHyv0QrTAyTc7WTn1arn7Gb9UwZpr1CIKOnhF7TchQw2MPomkVl6tu8TkCBrAeudb0Q0+p8erVB6p7gFqSZyIyoCJ42bV3IRIlcAWHZ/1nG0s5UTlzjj+AhqUt/iG169i9ROWRwCMp7O1VfJkp7XHwW7k1DKgdd9Ok3C+f/t8O8vMIDC/8OeeIlYbbf/Mrl/7oP+Z099J1MbZ3q6/8T/seX/6D+qTur/Z0sYgdvg7+D5bsWNfowiOXrjuU2MdXAIbUk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ayToCp5HqiUkc3w/DYg5tP2AgpqUhdI3e3NPgcc/XPrdi7oLRxIr2aXnjTjw64okJtLuj7Z67hCT4i/BiBwinCOUKI9cJCcibpAbtLM8/NvjqOz3WuSXiRL8pgMeX3Jt19MJ1dlHSPBHQnIBnORRdaxW0j5RPqkpe0v0ZsvYKC30R582ILdkPZ7gDvLy2reExpJblzf6jDjqE/n4cs5DQYPNIjwgZmJUt1tJb4Qv3YdYu5WhKWact5afQvWV0kPq7m+Ns6uFk9H4TPKK0mLEcOGcFDXDmvgCn918SiY5AqjaCr3xNiroUxJp/J6wsnhWPp+zDBuC/XllgEMwgP1vC4P+Lv+wTOjvBv576cK/S87r5fa3hQx/B/6+pttf0g3zDyu8/Q7/72mNf5cHvn/D/5dJjr9b+n1m218iKvi/zHP73cTv0xj+klTxf5jU8Dv896/8/pIW+X/65u93/O9v1f6SMJ3/8Y7td/Dv0dNfsm71z7HU7xZ+93f/Ejvbf/J+f8f/t0vxd5GxBwP7Hw7G7/D/vr3/XZ4c/wb/981eSRYa5lcZwmsCf0Vgu/7a+38hR6L+LncAAA==</TemplateDocumentBinaryData>
    <Code>'Loan_Contract_NZCCCFA_RC LCRC
Option Explicit On
Option Strict On

' #################################################################
' LCRC - Loan Contract - Consumer Revolving Credit Loans in New Zealand.
'
' Version: 1.20 (24/05/2023)
'
' Usage:
' Account Document can only be published via a Log.
' Supports Account Applications.
' #################################################################
' Version        Date  User     Job       Description
' -------  ----------  -------  --------  -------------------------
'    1.11  28/07/2021  ISS
'    1.12  11/03/2022  ISS      J028424   Add New Minimum Payment Basis
'    1.13  11/04/2022  ISS      J028581   Electronic Signatures always using 'Global' Cost Centre default options
'    1.14  05/09/2022  ISS      J029494   IDCheck Smart Tag
'    1.15  05/09/2022  ISS      J029495   Authentication Type Smart Tag
'    1.16  05/09/2022  ISS      J029515   Custom Options field to provide for future options
'    1.17  07/09/2022  ISS      J029498   Correct spelling mistake
'    1.18  03/11/2022  ISS      J029494   IDCheck Smart Tag; add ANY option
'    1.19  19/04/2023  ISS      J030934   Corrected script constant data types
'    1.20  24/05/2023  ISS      J031138   Corrected description of IDV option
' #################################################################

'#Const "DisputeResolutionShow",Boolean,True,"Show the Dispute Resolution Scheme section?"
'#Const "IncludeSystemDefaultFees",Boolean,True,"Indicates whether to list system based Default Fees"
'#Const "ShowMethodOfPayment",Boolean,True,"Indicates whether to show Payment Method details"
'#Const "UseElectronicSigning",Boolean,False,"Indicates whether to use Electronic Signing if available and Email addresses are found"
'#Const "SecuredSigningCustomOptions",String,"","For Secured Signing Electronic Signatures, specifies additional Secured Signing options not supported by other settings"
'#Const "SecuredSigningRequireJobTitle",Boolean,False,"For Secured Signing Electronic Signatures, determines whether the invitee must enter a Job Title"
'#Const "SecuredSigningRequireReason",Boolean,False,"For Secured Signing Electronic Signatures, determines whether the invitee must enter a Reason"
'#Const "SecuredSigningUseAuthType",String,"","For Secured Signing Electronic Signatures, specifies Authentication Type: CODE, PWD (Password), SMS, IDV (ID Verification), KBA (Knowledge-Based), or blank to not use.  These combination codes are accepted: KBA+IDV, SMS+KBA+IDV, SMS+KBA, SMS+IDV.",",CODE,PWD,SMS,IDV,KBA,KBA+IDV,SMS+KBA+IDV,SMS+KBA,SMS+IDV"
'#Const "SecuredSigningUseFaceToFace",Boolean,False,"For Secured Signing Electronic Signatures, determines whether Face to Face signing is used (requires SMS)"
'#const "SecuredSigningUseIDCheck",String,"","For Secured Signing Electronic Signatures, specifies ID Check Type (RealMe, NZ Driver License, NZ Passport, or any of these) or blank to not use",",RM,NZDL,NZPASS,ANY"
'#Const "SecuredSigningUseReview",Boolean,False,"For Secured Signing Electronic Signatures, determines whether there is a minimum time before signing"
'#Const "SecuredSigningUseTextLink",Boolean,False,"For Secured Signing Electronic Signatures, determines whether to send an SMS invitation, i.e. TextLink (requires SMS)"
'#Const "SecuredSigningUseVideoConfirmation",Boolean,False,"For Secured Signing Electronic Signatures, determines whether to add Video confirmation to the signing process"

' Constants
Private DisputeResolutionShow As Boolean = True
Private IncludeSystemDefaultFees As Boolean = True
Private ShowMethodOfPayment As Boolean = True
Private UseElectronicSigning As Boolean = False
Private SecuredSigningCustomOptions As String = ""
Private SecuredSigningRequireJobTitle As Boolean = False
Private SecuredSigningRequireReason As Boolean = False
Private SecuredSigningUseAuthType As String = ""
Private SecuredSigningUseFaceToFace As Boolean = False
Private SecuredSigningUseIDCheck As String = ""
Private SecuredSigningUseReview As Boolean = False
Private SecuredSigningUseTextLink As Boolean = False
Private SecuredSigningUseVideoConfirmation As Boolean = False

' Objects
Private mDocument As finDocumentRO
Private mWordDocuments As List(Of ISWordDocument)
Private mWordDocumentsAccount As List(Of ISWordDocument)

Public Function Main(source As Object, eventId As String, eventArgs As ISKeyValueList, ByRef handled As Boolean, parameters As Object, ByRef returnValues As ISKeyValueList, ByRef text As String) As Boolean

  Dim Success As Boolean

  ' Assume Success
  Success = True

  ' Get Constants
  With ScriptInfo.Constants
    DisputeResolutionShow = .GetBoolean("DisputeResolutionShow", DisputeResolutionShow)
    IncludeSystemDefaultFees = .GetBoolean("IncludeSystemDefaultFees", IncludeSystemDefaultFees)
    ShowMethodOfPayment = .GetBoolean("ShowMethodOfPayment", ShowMethodOfPayment)
    UseElectronicSigning = finBL.Settings.AddOns.ElectronicSignature AndAlso .GetBoolean("UseElectronicSigning", UseElectronicSigning)
    SecuredSigningCustomOptions = .GetString("SecuredSigningCustomOptions", SecuredSigningCustomOptions)
    SecuredSigningRequireJobTitle = .GetBoolean("SecuredSigningRequireJobTitle", SecuredSigningRequireJobTitle)
    SecuredSigningRequireReason = .GetBoolean("SecuredSigningRequireReason", SecuredSigningRequireReason)
    SecuredSigningUseAuthType = .GetString("SecuredSigningUseAuthType", SecuredSigningUseAuthType)
    SecuredSigningUseFaceToFace = .GetBoolean("SecuredSigningUseFaceToFace", SecuredSigningUseFaceToFace)
    SecuredSigningUseIDCheck = .GetString("SecuredSigningUseIDCheck", SecuredSigningUseIDCheck)
    SecuredSigningUseReview = .GetBoolean("SecuredSigningUseReview", SecuredSigningUseReview)
    SecuredSigningUseTextLink = .GetBoolean("SecuredSigningUseTextLink", SecuredSigningUseTextLink)
    SecuredSigningUseVideoConfirmation = .GetBoolean("SecuredSigningUseVideoConfirmation", SecuredSigningUseVideoConfirmation)
  End With

  ' Initialise
  mDocument = finBL.Documents(Mid(ScriptInfo.ScriptId, 10))
  mWordDocuments = New List(Of ISWordDocument)
  mWordDocumentsAccount = New List(Of ISWordDocument)

  ' Get Constants

  ' Handle Events
  Select Case eventId
    Case "Publish"
      ' Publish
      If TypeOf source Is finLogPublishBatch Then
        ' Log Publish
        Success = Publish_Log(DirectCast(source, finLogPublishBatch)(0))
      Else
        ' Standalone (Ad-Hoc)
        Success = False
        finBL.Error.ErrorBegin("This Document does not support Standalone publishing and must be published from a Log.")
      End If
  End Select

  Return Success

End Function

'#################################################################
' Publish via Log
'#################################################################
Private Function Publish_Log(logPublishBatchItem As finLogPublishBatchItem) As Boolean

  Dim dis As finDocumentRecipientDetailsItems
  Dim Success As Boolean

  ' Assume Success
  Success = True

  ' Validate

  ' Get Document Recipient Details for relevant Account Clients
  If Success Then
    Success = mDocument.GetAccountDocumentRecipientDetailsItemsFromLogPublishBatchItem(logPublishBatchItem, dis)
  End If

  ' If Electronic Signature, then only send the first Document
  If Success AndAlso UseElectronicSigning AndAlso dis.CanSendElectronicSignature Then
    Do While dis.Count &gt; 1
      dis.RemoveAt(1)
    Loop
  End If

  ' Create Document
  If Success Then
    If Not CreateAccountDocument(dis, logPublishBatchItem, logPublishBatchItem.LogPk, Nothing) Then
      ' Ignore errors since the status of logPublishBatchitem will be updated to record this
    End If
  End If

  Return Success

End Function

'#################################################################
' Create Document for relevant Account Clients
'#################################################################
Private Function CreateAccountDocument(dis As finDocumentRecipientDetailsItems,
                                       logPublishBatchItem As finLogPublishBatchItem,
                                       parentLogPk As Integer,
                                       ByRef accountLog As finAccountLog) As Boolean

  Dim di As finDocumentRecipientDetailsItem
  Dim DocumentManagerFileName As String
  Dim DocumentManagerFileNameRelative As String
  Dim DocumentBinaryData As Byte()
  Dim ESDocumentBinaryData As Byte()
  Dim Success As Boolean

  ' Assume Success
  Success = True

  ' Initialise
  mWordDocumentsAccount.Clear()

  ' Create Document for all relevant Account Clients
  For Each di In dis
    ' Create Document
    If Not CreateDocument(di) Then
      Success = False
      Exit For
    End If
  Next

  ' Standalone Publish functionality
  If Success Then
    If logPublishBatchItem Is Nothing Then
      ' Embed in Log?
      If mDocument.EmbedDocumentInLog Then
        Success = finBL.PdfUtilities.CombineWordDocumentsToPdfByteArray(mWordDocumentsAccount, DocumentBinaryData)
      End If

      ' Create Log
      If Success AndAlso mDocument.CreateLog Then
        If finBL.AccountFunctions.LogAddDocument(dis(0).Account.Pk, mDocument.DocumentId, accountLog, mDocument.DocumentLogSubjectResolved, "", DocumentManagerFileNameRelative, "", isefinLogEmbeddedFileType.Pdf, DocumentBinaryData) Then
          ' Ensure any Email Logs are linked to this new Log
          parentLogPk = AccountLog.Pk
        Else
          Success = False
        End If
      End If
    End If
  End If

  ' Save Combined Document to Document Manager?
  ' NOTE: This is for ALL Account Clients, regardless of whether individual documents will be saved for each Account Client
  If Success AndAlso mDocument.AutoSaveDocument Then
    If di.AccountApp Is Nothing Then
      ' Account
      Success = finBL.DocumentManagerFunctions.SaveWordDocumentsToDocumentManagerPdfAccount(di.AccountId, mWordDocumentsAccount, mDocument.FileName, DocumentManagerFileName, DocumentManagerFileNameRelative)
    Else
      ' Account Application
      Success = finBL.DocumentManagerFunctions.SaveWordDocumentsToDocumentManagerPdfAccountApp(di.AccountAppId, mWordDocumentsAccount, mDocument.FileName, DocumentManagerFileName, DocumentManagerFileNameRelative)
    End If
  End If

  ' Embed Combined Document in Log?
  ' NOTE: This is for ALL Account Clients, regardless of whether individual documents will be saved for each Account Client
  If Success AndAlso mDocument.EmbedDocumentInLog Then
    Success = finBL.PdfUtilities.CombineWordDocumentsToPdfByteArray(mWordDocumentsAccount, DocumentBinaryData)
  End If

  ' Email Account Clients?
  ' NOTE: This will create additional Account Logs (for each Account Client) where neccessary
  If Success AndAlso dis(0).EmailDetails.PublishEmail Then
    If di.AccountApp Is Nothing Then
      ' Account
      Success = dis.SendAccountEmailsPdf(parentLogPk)
    Else
      ' Account Application
      Success = dis.SendAccountAppEmailsPdf(parentLogPk)
    End If
  End If

  ' Send for Electronic Signature
  If Success AndAlso UseElectronicSigning AndAlso dis.CanSendElectronicSignature Then
    ' Get Binary Data of combined PDF
    If DocumentBinaryData Is Nothing Then
      Success = finBL.PdfUtilities.CombineWordDocumentsToPdfByteArray(mWordDocumentsAccount, ESDocumentBinaryData)
    Else
      ESDocumentBinaryData = DocumentBinaryData
    End If

    ' Send Electronic Signature
    If Success Then Success = SendElectronicSignature(dis, logPublishBatchItem, ESDocumentBinaryData)
  End If

  ' Update Log Publish details
  If logPublishBatchItem IsNot Nothing Then
    With logPublishBatchItem
      If Success Then
        ' Success
        .PublishSuccess = True
        .PublishDocumentFileName = DocumentManagerFileNameRelative
        .PublishDocumentBinaryDataFileType = isefinLogEmbeddedFileType.Pdf
        .PublishDocumentBinaryData = DocumentBinaryData
        .PrintStatus = dis(0).PrintStatus
      Else
        ' Failure
        .PublishSuccess = False
        .PublishError = finBL.Error.Message(True, True)
      End If
    End With
  End If

  Return Success

End Function

'#################################################################
' Create Document
'#################################################################
Private Function CreateDocument(di As finDocumentRecipientDetailsItem) As Boolean

  Dim Success As Boolean
  Dim WordDocumentBookmarks As ISWordDocumentBookmarks

  ' Assume Success
  Success = True

  ' Get Bookmarks
  WordDocumentBookmarks = di.WordDocument.GetBookmarks()

  ' Replace Standard Bookmarks
  Success = di.UpdateStandardBookmarks(WordDocumentBookmarks)

  ' Replace Custom Bookmarks
  If Success Then
    Me.ReplaceBookmarks(di, WordDocumentBookmarks)
  End If

  ' Update Bookmarks
  If Success Then
    Success = di.WordDocument.UpdateBookmarks(WordDocumentBookmarks)
  End If

  ' Record Word Document
  If Success Then
    mWordDocuments.Add(di.WordDocument)
    mWordDocumentsAccount.Add(di.WordDocument)
  End If

  ' Update di Email details if required
  ' NOTE: By default, these are set to the Email template details defined on this Document

  Return Success

End Function

'#################################################################
' CUSTOM BOOKMARKS
'#################################################################
Private Function ReplaceBookmarks(di As finDocumentRecipientDetailsItem,
                                  wordDocumentBookmarks As ISWordDocumentBookmarks) As Boolean

  Dim AccountCalc As finAccountCalc
  Dim strTemp As String
  Dim Success As Boolean
  Dim SummaryTable As ISSummaryTable

  ' Assume Success
  Success = True

  ' Initialise
  If di.Account IsNot Nothing Then
    If di.Account.CalculationVersions.Count = 0 Then
      AccountCalc = di.Account.Calculation()
    Else
      di.Account.CalculationVersions(0).GetAccountCalc(AccountCalc)
    End If
  End If

  ' Guarantor
  Select Case di.AccountClient.RoleType
    Case isefinAccountRoleType.Guarantor
    Case Else
      wordDocumentBookmarks.Delete("Guarantor")
  End Select

  ' Statement
  If AccountCalc Is Nothing Then
    wordDocumentBookmarks.SetContentString("StatementCycle", "error")
  Else
    Select Case AccountCalc.OriginalStatementCycle
      Case "", "None"
        wordDocumentBookmarks.SetContentString("StatementCycle", "None.")
      Case "On Demand"
        wordDocumentBookmarks.SetContentString("StatementCycle", "When Requested.")
      Case Else
        wordDocumentBookmarks.SetContentString("StatementCycle", AccountCalc.OriginalStatementCycleDescription)
    End Select
  End If

  ' Advances
  wordDocumentBookmarks.SetContentCurrency("OpeningBalance", ReplaceBookmarks_OpeningBalance(di.Account, AccountCalc, SummaryTable), True)
  wordDocumentBookmarks.SetContentSummaryTable("OpeningTransactions", SummaryTable)

  ' Minimum Payment
  wordDocumentBookmarks.SetContentString("MinimumPayment", ReplaceBookmarks_MinimumPayment(di.Account, AccountCalc))
  If accountcalc.MinimumPaymentDueDaysResolved = 0 Then
    wordDocumentBookmarks.SetContentString("DueDays", "on the same day as")
  Else
    wordDocumentBookmarks.SetContentString("DueDays", String.Format("{0} days after", accountcalc.MinimumPaymentDueDaysResolved))
  End If

  ' Payments
  If ShowMethodOfPayment Then
    wordDocumentBookmarks.SetContentString("PaymentMethod", ReplaceBookmarks_PaymentMethod(di.Account, AccountCalc))
  Else
    wordDocumentBookmarks.Delete("PaymentMethodTable")
  End If

  ' Interest
  wordDocumentBookmarks.SetContentHtml("InterestDetails", Replace(ReplaceBookmarks_InterestDetails(di.Account, AccountCalc), vbNewLine, "&lt;br/&gt;"))
  wordDocumentBookmarks.SetContentCurrency("CreditLimit", AccountCalc.CreditLimit1, True)
  wordDocumentBookmarks.SetContentString("InterestMethod", ReplaceBookmarks_InterestMethod(di.Account, AccountCalc))

  ' Credit Fees
  wordDocumentBookmarks.SetContentString("CreditFees", ReplaceBookmarks_CreditFees(di.Account, AccountCalc))

  ' Security Interests
  If finBL.Settings.Addons.SecurityRegister Then
    If di.Account.SecurityStmt.SecurityItems.Count = 0 Then
      wordDocumentBookmarks.Delete("SecurityInterestTable")
    End If
  Else
    wordDocumentBookmarks.Delete("SecurityInterestTable")
  End If

  ' Default Interest and Fees
  strTemp = ReplaceBookmarks_DefaultInterest(di.Account, AccountCalc)
  If Len(strTemp) = 0 Then
    wordDocumentBookmarks.DeleteTableRow("DefaultInterest")
  Else
    wordDocumentBookmarks.SetContentString("DefaultInterest", strTemp)
  End If
  wordDocumentBookmarks.SetContentHtml("DefaultFees", Replace(ReplaceBookmarks_DefaultFees(di.Account, AccountCalc), vbNewLine, "&lt;br/&gt;"))

  ' Right to Cancel section - Credit vs Non-Credit Sale
  If di.Account.AccountType Is Nothing OrElse di.Account.AccountType.CreditSale Then
    wordDocumentBookmarks.Delete("NonCreditSale1")
    wordDocumentBookmarks.Delete("NonCreditSale2")
  Else
    wordDocumentBookmarks.Delete("CreditSale1")
    wordDocumentBookmarks.Delete("CreditSale2")
  End If

  ' Layby Sale
  If di.Account.AccountType Is Nothing OrElse (Not di.Account.AccountType.LaybySale) Then
    wordDocumentBookmarks.Delete("LaybySale")
  End If

  ' Dispute Resolution section - Remove?
  If Not DisputeResolutionShow Then
    wordDocumentBookmarks.Delete("DisputeResolutionSection")
  End If

  ' Signature Block
  If UseElectronicSigning AndAlso di.Parent.CanSendElectronicSignature Then
    wordDocumentBookmarks.Delete("AccountSignatureBlock")
  Else
    wordDocumentBookmarks.Delete("AccountESignatureBlock")
  End If

  ' Remove Bookmarks not set
  wordDocumentBookmarks.RemoveAll()

  Return Success

End Function

Private Function ReplaceBookmarks_CreditFees(account As finAccount,
                                             accountCalc As finAccountCalc) As String

  Dim AccountStdTran As finAccountStdTran

  ' Initialise
  ReplaceBookmarks_CreditFees = ""

  ' Facility Fee
  If AccountCalc IsNot Nothing Then
    With account.AccountType
      Select Case .FacilityFeeChargeBasis
        Case isefinFacilityFeeChargeBasis.None
          ' No Fee
        Case isefinFacilityFeeChargeBasis.PerCharge
          If Len(ReplaceBookmarks_CreditFees) &lt;&gt; 0 Then ReplaceBookmarks_CreditFees &amp;= vbNewLine
          ReplaceBookmarks_CreditFees &amp;= String.Format("Facility Fee; {0} charged {1}.", finBL.FormatCurrency(.FacilityFeeValue, True), LCase(AccountCalc.InterestCycleDescription))
        Case isefinFacilityFeeChargeBasis.PerMonth
          If Len(ReplaceBookmarks_CreditFees) &lt;&gt; 0 Then ReplaceBookmarks_CreditFees &amp;= vbNewLine
          ReplaceBookmarks_CreditFees &amp;= String.Format("Facility Fee; {0} per month, charged {1}.", finBL.FormatCurrency(.FacilityFeeValue, True), LCase(AccountCalc.InterestCycleDescription))
      End Select
    End With
  End If

  ' Standard Transactions
  If AccountCalc IsNot Nothing Then
    For Each AccountStdTran In AccountCalc.StandardTransactions
      Select Case AccountStdTran.Element.AllocationType
        Case isefinElementAllocationType.FeesNIB, isefinElementAllocationType.FeesIB
          If AccountStdTran.Cycle &lt;&gt; "Opening" Then
            If Len(ReplaceBookmarks_CreditFees) &lt;&gt; 0 Then ReplaceBookmarks_CreditFees &amp;= vbNewLine
            If Len(AccountStdTran.Notes) = 0 Then
              ReplaceBookmarks_CreditFees &amp;= AccountStdTran.Element.Description
            Else
              ReplaceBookmarks_CreditFees &amp;= Replace(AccountStdTran.Notes, vbNewLine, ",")
            End If
            ReplaceBookmarks_CreditFees &amp;= String.Format("; {0} charged {1}.", AccountStdTran.ValueDescription, LCase(AccountStdTran.CycleDescription))
          End If
      End Select
    Next
  End If

  ' Elements
  With account.AccountType.ElementLinks
    ' Withdrawal
    With .ItemByElementLinkType(isefinAccountTypeElementLinkType.FeeWithdrawal)
      If .Value &lt;&gt; 0 Then
        If Len(ReplaceBookmarks_CreditFees) &lt;&gt; 0 Then ReplaceBookmarks_CreditFees &amp;= vbNewLine
        ReplaceBookmarks_CreditFees &amp;= String.Format("Withdrawal Fee; {0} per additional advance made to you.", finBL.FormatCurrency(.Value, True))
      End If
    End With

    ' Payment Arrangement
    With .ItemByElementLinkType(isefinAccountTypeElementLinkType.FeePaymentArrangement)
      If .Value &lt;&gt; 0 Then
        If Len(ReplaceBookmarks_CreditFees) &lt;&gt; 0 Then ReplaceBookmarks_CreditFees &amp;= vbNewLine
        ReplaceBookmarks_CreditFees &amp;= String.Format("Payment Arrangement Fee; {0}.", finBL.FormatCurrency(.Value, True))
      End If
    End With
  End With

  ' No Fees
  If Len(ReplaceBookmarks_CreditFees) = 0 Then
    ReplaceBookmarks_CreditFees = "No applicable fees."
  End If

End Function

Private Function ReplaceBookmarks_DefaultFees(account As finAccount,
                                              accountCalc As finAccountCalc) As String

  Dim Document As finDocumentRO

  ' Initialise
  ReplaceBookmarks_DefaultFees = ""

  If AccountCalc IsNot Nothing AndAlso IncludeSystemDefaultFees Then
    ' Default Fee
    With account.AccountType
      Select Case .DefaultFeeChargeBasis
        Case isefinDefaultFeeChargeBasis.None
        Case isefinDefaultFeeChargeBasis.PerCharge
          ReplaceBookmarks_DefaultFees &amp;= String.Format("{0}, charged {1}.", finBL.FormatCurrency(.DefaultFeeValue, True), LCase(AccountCalc.InterestCycleDescription))
        Case isefinDefaultFeeChargeBasis.PerDay
          ReplaceBookmarks_DefaultFees &amp;= String.Format("{0} per day, charged {1}.", finBL.FormatCurrency(.DefaultFeeValue, True), LCase(AccountCalc.InterestCycleDescription))
        Case isefinDefaultFeeChargeBasis.PerMonth
          ReplaceBookmarks_DefaultFees &amp;= String.Format("{0} per month, charged {1}.", finBL.FormatCurrency(.DefaultFeeValue, True), LCase(AccountCalc.InterestCycleDescription))
      End Select
    End With

    ' Letter Fees
    For Each Document In finBL.Documents
      If account.AccountType.IsDocumentAvailable(Document.DocumentId) And Document.Fee &lt;&gt; 0 Then
        If Len(ReplaceBookmarks_DefaultFees) &lt;&gt; 0 Then ReplaceBookmarks_DefaultFees &amp;= vbNewLine
        ReplaceBookmarks_DefaultFees &amp;= String.format("'{0}' correspondence fee; {1} fee per correspondence sent.", Document.Description, finBL.FormatCurrency(Document.Fee, True))
      End If
    Next

    ' No Fees!
    If Len(ReplaceBookmarks_DefaultFees) = 0 Then ReplaceBookmarks_DefaultFees = "No applicable default fees."
  End If

  ' Add Heading
  ReplaceBookmarks_DefaultFees = "&lt;b&gt;Default Fees:&lt;/b&gt;" &amp; vbNewLine &amp; ReplaceBookmarks_DefaultFees

End Function

Private Function ReplaceBookmarks_DefaultInterest(account As finAccount,
                                                  accountCalc As finAccountCalc) As String

  Dim DefaultInterestRate1 As Double
  Dim DefaultInterestRate2 As Double
  Dim DefaultInterestRate3 As Double

  ' Initialise
  ReplaceBookmarks_DefaultInterest = ""

  If AccountCalc IsNot Nothing Then
    If account.AccountType.DefaultInterestOverdueBasis = isefinDefaultInterestOverdueBasis.None Then
      ' No Default Interest
    ElseIf AccountCalc.DefaultInterestRate = 0 Then
      ' No Default Interest
    Else
      ' Charge Basis
      Select Case account.AccountType.DefaultInterestOverdueChargeBasis
        Case isefinDefaultInterestOverdueChargeBasis.Balance
          ReplaceBookmarks_DefaultInterest = "Default interest charges are calculated by multiplying the unpaid balance at the end of the day by a daily default interest rate. "
        Case isefinDefaultInterestOverdueChargeBasis.Overdue
          ReplaceBookmarks_DefaultInterest = "Default interest charges are calculated by multiplying the amount in arrears at the end of the day by a daily default interest rate. "
      End Select

      ' Default Interest Rate
      ReplaceBookmarks_DefaultInterest &amp;= "The daily Default Interest rate is calculated by dividing the annual Default Interest rate by "
      Select Case AccountCalc.OptionInterestAccruedMethod
        Case isefinAccountCalcInterestAccruedMethod.Actual_Actual
          ReplaceBookmarks_DefaultInterest &amp;= "365 for days falling within a year containing 365 days or 366 for days falling within a year containing 366 days. "
        Case isefinAccountCalcInterestAccruedMethod.Actual_360
          ReplaceBookmarks_DefaultInterest &amp;= "360. "
        Case isefinAccountCalcInterestAccruedMethod.Actual_365
          ReplaceBookmarks_DefaultInterest &amp;= "365. "
        Case isefinAccountCalcInterestAccruedMethod.Actual_365_Annualised
          ReplaceBookmarks_DefaultInterest &amp;= "365. "
      End Select

      ' Charge Frequency
      ReplaceBookmarks_DefaultInterest &amp;= "Interest is charged to your Account " &amp; LCase(AccountCalc.InterestCycleDescription) &amp; "." &amp; vbNewLine

      ' Period Covered
      Select Case AccountCalc.DefaultInterestRateBasis
        Case isefinDefaultInterestRateBasis.FixedRate
          DefaultInterestRate1 = AccountCalc.DefaultInterestRate - AccountCalc.StartupInterestRate
          If DefaultInterestRate1 &lt; 0 Then DefaultInterestRate1 = 0
          DefaultInterestRate2 = AccountCalc.DefaultInterestRate - AccountCalc.InterestRate
          If DefaultInterestRate2 &lt; 0 Then DefaultInterestRate2 = 0

          Select Case AccountCalc.StartupInterestType
            Case isefinAccountInterestType.NotApplicable
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                If AccountCalc.DefaultInterestRate &gt; AccountCalc.InterestRate Then
                  DefaultInterestRate3 = AccountCalc.DefaultInterestRate
                Else
                  DefaultInterestRate3 = AccountCalc.InterestRate
                End If

                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; "." &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage(DefaultInterestRate3 / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; "."
              End If

            Case isefinAccountInterestType.InterestFree, isefinAccountInterestType.FixedRate
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                If AccountCalc.DefaultInterestRate &gt; AccountCalc.InterestRate Then
                  DefaultInterestRate3 = AccountCalc.DefaultInterestRate
                Else
                  DefaultInterestRate3 = AccountCalc.InterestRate
                End If

                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate1 / 100, 4) &amp; " until " &amp; finBL.FormatDateDocuments(AccountCalc.StartupInterestToDateResolved, True) &amp; "; then" &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; " until " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity.AddDays(-1), True) &amp; "; then" &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage(DefaultInterestRate3 / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate1 / 100, 4) &amp; " until " &amp; finBL.FormatDateDocuments(AccountCalc.StartupInterestToDateResolved, True) &amp; "; then" &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; "."
              End If

            Case isefinAccountInterestType.FloatingRate
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is the difference between the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "." &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is the difference between the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              End If

            Case isefinAccountInterestType.RateTable
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is the difference between the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "." &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is the difference between the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              End If
          End Select

        Case isefinDefaultInterestRateBasis.PlusRate
          DefaultInterestRate1 = AccountCalc.DefaultInterestRate + AccountCalc.StartupInterestRate
          If DefaultInterestRate1 &lt; 0 Then DefaultInterestRate1 = 0
          DefaultInterestRate2 = AccountCalc.DefaultInterestRate + AccountCalc.InterestRate
          If DefaultInterestRate2 &lt; 0 Then DefaultInterestRate2 = 0
          DefaultInterestRate3 = AccountCalc.DefaultInterestRate + AccountCalc.InterestRate + AccountCalc.InterestRate
          If DefaultInterestRate3 &lt; 0 Then DefaultInterestRate3 = 0

          Select Case AccountCalc.StartupInterestType
            Case isefinAccountInterestType.NotApplicable
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; "." &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage(DefaultInterestRate3 / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; "."
              End If

            Case isefinAccountInterestType.InterestFree, isefinAccountInterestType.FixedRate
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate1 / 100, 4) &amp; " until " &amp; finBL.FormatDateDocuments(AccountCalc.StartupInterestToDateResolved, True) &amp; "; then" &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; " until " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity.AddDays(-1), True) &amp; "; then" &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage(DefaultInterestRate3 / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate1 / 100, 4) &amp; " until " &amp; finBL.FormatDateDocuments(AccountCalc.StartupInterestToDateResolved, True) &amp; "; then" &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(DefaultInterestRate2 / 100, 4) &amp; "."
              End If

            Case isefinAccountInterestType.FloatingRate
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is the sum of the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "." &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is the sum of the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is the sum of the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              End If

            Case isefinAccountInterestType.RateTable
              If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is the sum of the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "." &amp; vbNewLine
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is the sum of the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              Else
                ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is the sum of the Annual Interest rate (described in the Interest section of this document) and " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
              End If
          End Select

        Case isefinDefaultInterestRateBasis.PremiumRate
          If AccountCalc.AccountType.OptionInterestPostMaturityBasis = isefinInterestPostMaturityBasis.ChargeAsDefault Then
            ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate for the term of the contract is " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "." &amp; vbNewLine
            ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate after the term of the contract (from " &amp; finBL.FormatDateDocuments(AccountCalc.DateMaturity, True) &amp; ") is " &amp; finBL.FormatPercentage((AccountCalc.InterestRate + AccountCalc.DefaultInterestRate) / 100, 4) &amp; "."
          Else
            ReplaceBookmarks_DefaultInterest &amp;= "Annual Default Interest rate is " &amp; finBL.FormatPercentage(AccountCalc.DefaultInterestRate / 100, 4) &amp; "."
          End If
      End Select
    End If
  End If

  ' Add Heading
  If Len(ReplaceBookmarks_DefaultInterest) &lt;&gt; 0 Then
    ReplaceBookmarks_DefaultInterest &amp;= vbNewline &amp; "This is charged on the amount in excess of your credit limit or when your credit contract is in default."
  End If

End Function

Private Function ReplaceBookmarks_InterestDetails(account As finAccount,
                                                  accountCalc As finAccountCalc) As String

Dim DailyRateOngoing As String
Dim DailyRateStartup As String
Dim InterestOngoing As String
Dim InterestStartup As String

  ' Initialise
  ReplaceBookmarks_InterestDetails = ""

  If AccountCalc IsNot Nothing Then
    ' Startup Interest
    DailyRateStartup = Me.ReplaceBookmarks_InterestDetails_GetDailyRate(accountCalc.StartupInterestType, accountCalc.StartupInterestRate, accountCalc.InterestCycle, accountCalc.StartupInterestRateTableIdResolved, accountCalc.OptionInterestAccruedMethod)

    Select Case accountCalc.StartupInterestType
      Case isefinAccountInterestType.NotApplicable
        InterestStartup = ""

      Case isefinAccountInterestType.InterestFree
        InterestStartup = "&lt;b&gt;Interest Free Period&lt;/b&gt;" &amp; vbNewLine
        InterestStartup &amp;= "Interest free for "

      Case isefinAccountInterestType.FixedRate
        InterestStartup = "&lt;b&gt;Initial Interest Period&lt;/b&gt;" &amp; vbNewLine
        InterestStartup &amp;= finBL.FormatPercentage(accountCalc.StartupInterestRate / 100, 4) &amp; " fixed for "

      Case isefinAccountInterestType.FloatingRate
        InterestStartup = "&lt;b&gt;Initial Interest Period&lt;/b&gt;" &amp; vbNewLine
        InterestStartup &amp;= finBL.FormatPercentage(accountCalc.StartupInterestRate / 100, 4) &amp; " floating for "

      Case isefinAccountInterestType.RateTable
        InterestStartup = "&lt;b&gt;Initial Interest Period&lt;/b&gt;" &amp; vbNewLine
        If finBL.RateTables.Exists(accountCalc.StartupInterestRateTableIdResolved) Then
          With finBL.RateTables.Item(accountCalc.StartupInterestRateTableIdResolved)
            If accountCalc.StartupInterestRatePremium &lt; 0 Then
              InterestStartup &amp;= finBL.FormatPercentage((accountCalc.StartupInterestRatePremium) / 100, 4) &amp; " below base rate "
            ElseIf accountCalc.StartupInterestRatePremium &gt; 0 Then
              InterestStartup &amp;= finBL.FormatPercentage((accountCalc.StartupInterestRatePremium) / 100, 4) &amp; " above base rate "
            Else
              ' Zero Premium
            End If

            ' Description of Rate Table
            InterestStartup &amp;= .PublishDescriptionResolved(account)
          End With
        Else
          InterestStartup &amp;= "[Invalid Rate Table] "
        End If
        InterestStartup &amp;= " for "
    End Select

    If Len(InterestStartup) &lt;&gt; 0 Then
      ' Startup Period
      InterestStartup &amp;= LCase(finBL.Runtime.DateUtilities.PeriodToWords(account.DateOpened, accountCalc.StartupInterestToDateResolved.AddDays(1))) &amp; " "

      ' Startup To Date
      InterestStartup &amp;= "until " &amp; finBL.FormatDateDocuments(accountCalc.StartupInterestToDateResolved, True) &amp; "."

      ' Startup Daily Rate
      If Len(DailyRateStartup) &lt;&gt; 0 Then
        InterestStartup &amp;= vbNewLine &amp; DailyRateStartup
      End If
    End If

    ' Ongoing Interest
    DailyRateOngoing = Me.ReplaceBookmarks_InterestDetails_GetDailyRate(accountCalc.InterestType, accountCalc.InterestRate, accountCalc.InterestCycle, accountCalc.InterestRateTableIdResolved, accountCalc.OptionInterestAccruedMethod)

    If Len(InterestStartup) = 0 Then
      InterestOngoing = "&lt;b&gt;Interest Rate&lt;/b&gt;" &amp; vbNewLine
    Else
      InterestOngoing = "&lt;b&gt;Ongoing Interest Period&lt;/b&gt;" &amp; vbNewLine
    End If
    Select Case accountCalc.InterestType
      Case isefinAccountInterestType.InterestFree
        InterestOngoing &amp;= "Interest free"

      Case isefinAccountInterestType.FixedRate
        InterestOngoing &amp;= "Current annual interest rate " &amp; finBL.FormatPercentage(accountCalc.InterestRate / 100, 4) &amp; " (this rate may vary)"

      Case isefinAccountInterestType.FloatingRate
        InterestOngoing &amp;= "Current annual interest rate " &amp; finBL.FormatPercentage(accountCalc.InterestRate / 100, 4) &amp; " (this rate may vary)"

      Case isefinAccountInterestType.RateTable
        If finBL.RateTables.Exists(AccountCalc.InterestRateTableIdResolved) Then
          With finBL.RateTables.Item(AccountCalc.InterestRateTableIdResolved)
            If accountCalc.InterestRatePremium &lt; 0 Then
              InterestOngoing &amp;= finBL.FormatPercentage(accountCalc.InterestRatePremium / 100, 4) &amp; " below base rate "
            ElseIf AccountCalc.InterestRatePremium &gt; 0 Then
              InterestOngoing &amp;= finBL.FormatPercentage(accountCalc.InterestRatePremium / 100, 4) &amp; " above base rate "
            Else
              ' Zero Premium
            End If

            ' Description of Rate Table
            InterestOngoing &amp;= .PublishDescriptionResolved(account)
          End With
        Else
          InterestOngoing &amp;= "[Invalid Rate Table] "
        End If
    End Select
    If Len(InterestOngoing) &lt;&gt; 0 Then
      ' Ongoing Daily Rate
      If Len(DailyRateOngoing) &lt;&gt; 0 Then
        InterestOngoing &amp;= vbNewLine &amp; DailyRateOngoing
      End If

      ' Replace final ;
      If Right(InterestOngoing,1) = ";" Then InterestOngoing = Left(InterestOngoing, Len(InterestOngoing) - 1) &amp; "."
    End If

    ' Return Interest details
    ReplaceBookmarks_InterestDetails = InterestStartup
    If Len(ReplaceBookmarks_InterestDetails) &lt;&gt; 0 Then ReplaceBookmarks_InterestDetails &amp;= vbNewLine &amp; vbNewLine
    ReplaceBookmarks_InterestDetails &amp;= InterestOngoing
  End If

End Function

Private Function ReplaceBookmarks_InterestDetails_GetDailyRate(interestType As isefinAccountInterestType, _
                                                               interestRate As Double, _
                                                               interestCycle As String, _
                                                               rateTableId As String, _
                                                               interestAccruedMethod As isefinAccountCalcInterestAccruedMethod) As String

  ' Initialise
  ReplaceBookmarks_InterestDetails_GetDailyRate = ""

  Select Case interestType
    Case isefinAccountInterestType.NotApplicable

    Case isefinAccountInterestType.InterestFree

    Case isefinAccountInterestType.FixedRate, isefinAccountInterestType.FloatingRate
      Select Case InterestAccruedMethod
        Case isefinAccountCalcInterestAccruedMethod.Actual_Actual
          ReplaceBookmarks_InterestDetails_GetDailyRate = String.Format("Daily Interest Rate: {0} for years with 365 days, {1} for years with 366 days.", Format((interestRate / 365) / 100, "##0.000000000000%"), Format((interestRate / 366) / 100, "##0.000000000000%"))

        Case isefinAccountCalcInterestAccruedMethod.Actual_360
          ReplaceBookmarks_InterestDetails_GetDailyRate = "Daily Interest Rate: " &amp; Format((interestRate / 360) / 100, "##0.000000000000%")

        Case isefinAccountCalcInterestAccruedMethod.Actual_365
          ReplaceBookmarks_InterestDetails_GetDailyRate = "Daily Interest Rate: " &amp; Format((interestRate / 365) / 100, "##0.000000000000%")

        Case isefinAccountCalcInterestAccruedMethod.Actual_365_Annualised
          Select Case finBL.Utilities.DateCycleGetFreqPA(interestCycle)
            Case 1: ReplaceBookmarks_InterestDetails_GetDailyRate = "Yearly interest rate: " &amp; Format(interestRate / 100, "##0.000000000000%")
            Case 2: ReplaceBookmarks_InterestDetails_GetDailyRate = "Half Yearly interest rate: " &amp; Format(interestRate / 200, "##0.000000000000%")
            Case 3: ReplaceBookmarks_InterestDetails_GetDailyRate = "Four Monthly interest rate: " &amp; Format(interestRate / 300, "##0.000000000000%")
            Case 4: ReplaceBookmarks_InterestDetails_GetDailyRate = "Quarterly interest rate: " &amp; Format(interestRate / 400, "##0.000000000000%")
            Case 6: ReplaceBookmarks_InterestDetails_GetDailyRate = "Two Monthly interest rate: " &amp; Format(interestRate / 600, "##0.000000000000%")
            Case 12: ReplaceBookmarks_InterestDetails_GetDailyRate = "Monthly interest rate: " &amp; Format(interestRate / 1200, "##0.000000000000%")
            Case 13: ReplaceBookmarks_InterestDetails_GetDailyRate = "Four Weekly interest rate: " &amp; Format(interestRate / 1300, "##0.000000000000%")
            Case 26: ReplaceBookmarks_InterestDetails_GetDailyRate = "Fortnightly interest rate: " &amp; Format(interestRate / 2600, "##0.000000000000%")
            Case 52: ReplaceBookmarks_InterestDetails_GetDailyRate = "Weekly interest rate: " &amp; Format(interestRate / 52000, "##0.000000000000%")
            Case 365: ReplaceBookmarks_InterestDetails_GetDailyRate = "Daily interest rate: " &amp; Format(interestRate / 365000, "##0.000000000000%")
            Case Else: ReplaceBookmarks_InterestDetails_GetDailyRate = ""
          End Select
      End Select

    Case isefinAccountInterestType.RateTable
  End Select

End Function

Private Function ReplaceBookmarks_InterestMethod(account As finAccount,
                                                 accountCalc As finAccountCalc) As String

  Dim InterestCyclePreceding As String
  Dim InterestCycleSimple As String
  Dim InterestOnInterest As String

  ' Initialise
  ReplaceBookmarks_InterestMethod = ""

  If AccountCalc IsNot Nothing Then
    If AccountCalc.OptionInterestOnInterest Then
      InterestOnInterest = "balance"
    Else
      InterestOnInterest = "principal balance"
    End If

    ' Interest Method
    Select Case AccountCalc.OptionInterestAccruedMethod
      Case isefinAccountCalcInterestAccruedMethod.Actual_Actual
        ReplaceBookmarks_InterestMethod &amp;= "Interest charges are calculated by multiplying the unpaid " &amp; InterestOnInterest &amp; " at the end of the day by a daily interest rate. "
        ReplaceBookmarks_InterestMethod &amp;= "The daily interest rate is calculated by dividing the annual interest rate by 365 for days falling within a year containing 365 days or 366 for days falling within a year containing 366 days."

      Case isefinAccountCalcInterestAccruedMethod.Actual_360
        ReplaceBookmarks_InterestMethod &amp;= "Interest charges are calculated by multiplying the unpaid " &amp; InterestOnInterest &amp; " at the end of the day by a daily interest rate. "
        ReplaceBookmarks_InterestMethod &amp;= "The daily interest rate is calculated by dividing the annual interest rate by 360."

      Case isefinAccountCalcInterestAccruedMethod.Actual_365
        ReplaceBookmarks_InterestMethod &amp;= "Interest charges are calculated by multiplying the unpaid " &amp; InterestOnInterest &amp; " at the end of the day by a daily interest rate. "
        ReplaceBookmarks_InterestMethod &amp;= "The daily interest rate is calculated by dividing the annual interest rate by 365."

      Case isefinAccountCalcInterestAccruedMethod.Actual_365_Annualised
        Select Case finBL.Utilities.DateCycleGetFreqPA(AccountCalc.InterestCycle)
          Case 1: InterestCycleSimple = "yearly": InterestCyclePreceding = "year"
          Case 2: InterestCycleSimple = "half yearly": InterestCyclePreceding = "half year"
          Case 3: InterestCycleSimple = "4 monthly": InterestCyclePreceding = "4 months"
          Case 4: InterestCycleSimple = "quarterly": InterestCyclePreceding = "quarter"
          Case 6: InterestCycleSimple = "2 monthly": InterestCyclePreceding = "2 months"
          Case 12: InterestCycleSimple = "monthly": InterestCyclePreceding = "month"
          Case 13: InterestCycleSimple = "4 weekly": InterestCyclePreceding = "4 weeks"
          Case 26: InterestCycleSimple = "fortnightly": InterestCyclePreceding = "fortnight"
          Case 52: InterestCycleSimple = "weekly": InterestCyclePreceding = "week"
          Case 365: InterestCycleSimple = "daily": InterestCyclePreceding = "day"
          Case Else: InterestCycleSimple = LCase(finBL.Utilities.DateCycleGetMnemonicFriendly(True, AccountCalc.InterestCycle)): InterestCyclePreceding = "yearly"
        End Select

        ReplaceBookmarks_InterestMethod &amp;= "Interest charges are calculated by multiplying the average unpaid daily " &amp; InterestOnInterest &amp; " for the preceding " &amp; InterestCyclePreceding &amp; " by a " &amp; InterestCycleSimple &amp; " interest rate. "
        ReplaceBookmarks_InterestMethod &amp;= "The " &amp; InterestCycleSimple &amp; " interest rate is calculated by dividing the annual interest rate by " &amp; CStr(finBL.Utilities.DateCycleGetFreqPA(AccountCalc.InterestCycle)) &amp; "."
    End Select

    ReplaceBookmarks_InterestMethod &amp;= vbNewLine
    ReplaceBookmarks_InterestMethod &amp;= "Interest is charged to your account " &amp; LCase(AccountCalc.InterestCycleDescription) &amp; "."
    If accountCalc.InterestCycleDateFirst &lt;&gt; Nothing Then
      ReplaceBookmarks_InterestMethod &amp;= " First Interest will be charged on " &amp; finBL.FormatDateDocuments(accountCalc.InterestCycleDateFirst, True) &amp; "."
    End If
  End If

End Function

Private Function ReplaceBookmarks_MinimumPayment(account As finAccount,
                                                 accountCalc As finAccountCalc) As String

  ' Initialise
  ReplaceBookmarks_MinimumPayment = ""

  If AccountCalc IsNot Nothing Then
    Select Case accountCalc.MinimumPaymentBasis
      Case isefinAccountMinimumPaymentBasis.Custom
        ReplaceBookmarks_MinimumPayment = accountCalc.MinimumPaymentBasisText &amp; "."

      Case isefinAccountMinimumPaymentBasis.Higher
        ReplaceBookmarks_MinimumPayment = String.Format("The higher of {0}" &amp; vbNewLine &amp; "or" &amp; vbNewLine &amp; "{1} of the unpaid balance as at the end of each statement period.", finBL.FormatCurrency(accountCalc.MinimumPaymentValue, True), finBL.FormatPercentage(accountCalc.MinimumPaymentPercent / 100, 4))

      Case isefinAccountMinimumPaymentBasis.Instalment
        If accountCalc.MinimumPaymentInstalmentEndDate = Nothing Then
          ReplaceBookmarks_MinimumPayment = "Instalment, with no end date"
        Else
          ReplaceBookmarks_MinimumPayment = String.Format("Instalment, ending on {0}", finBL.FormatDateDocuments(accountCalc.MinimumPaymentInstalmentEndDate, True))
        End If
        If accountCalc.MinimumPaymentInstalmentResidualValue &lt;&gt; 0 Then
          ReplaceBookmarks_MinimumPayment &amp;= String.Format(" and a Residual Value of {0}", finBL.FormatCurrency(accountCalc.MinimumPaymentInstalmentResidualValue, True))
        End If
        ReplaceBookmarks_MinimumPayment &amp;= "."

      Case isefinAccountMinimumPaymentBasis.InterestAndFeesBalance
        ReplaceBookmarks_MinimumPayment &amp;= "The balance of Interest and Fees as at the end of each statement period."

      Case isefinAccountMinimumPaymentBasis.InterestAndFeesOnly
        ReplaceBookmarks_MinimumPayment &amp;= "The value of Interest and Fees for the statement period."

      Case isefinAccountMinimumPaymentBasis.InterestBalance
        ReplaceBookmarks_MinimumPayment &amp;= "The balance of Interest as at the end of each statement period."

      Case isefinAccountMinimumPaymentBasis.InterestOnly
        ReplaceBookmarks_MinimumPayment &amp;= "The value of Interest for the statement period."

      Case isefinAccountMinimumPaymentBasis.OngoingSetValue
        ReplaceBookmarks_MinimumPayment = String.Format("An ongoing set value of {0}.", finBL.FormatCurrency(accountCalc.MinimumPaymentValue, True))

      Case isefinAccountMinimumPaymentBasis.PercentOfBalance
        ReplaceBookmarks_MinimumPayment = String.Format("{0} of the unpaid balance as at the end of each statement period.", finBL.FormatPercentage(accountCalc.MinimumPaymentPercent / 100, 4))

      Case isefinAccountMinimumPaymentBasis.SetValue
        ReplaceBookmarks_MinimumPayment = String.Format("A set value of {0}.", finBL.FormatCurrency(accountCalc.MinimumPaymentValue, True))

      Case Else
        ReplaceBookmarks_MinimumPayment = accountCalc.MinimumPaymentBasisText &amp; "."
    End Select
  End If

End Function

Private Function ReplaceBookmarks_OpeningBalance(account As finAccount,
                                                 accountCalc As finAccountCalc,
                                                 ByRef summaryTable As ISSummaryTable) As Decimal

  Dim AccountCalcScheduleItem As finAccountCalcScheduleItem
  Dim Heading As String
  Dim Ok As Boolean

  ' Initialise
  ReplaceBookmarks_OpeningBalance = 0

  ' Initialise ByRef
  summaryTable = finBL.CreateSummaryTable()

  ' Update Summary Table
  With summaryTable
    .TableClass = iseSummaryTableClass.TabularData
    .AutoStripe = False
    .WidthHtml = "100%"

    ' Options
    With .WordDocumentOptions
      .Borders(iseWordDocumentSummaryTableBorder.All).Colour = "#A0A0A0"
      .CellVerticalAlignment = iseSummaryTableCellVerticalAlignment.Top
    End With

    ' Columns
    With .Columns
      .AddText("")
      .AddCurrency("")
    End With
  End With

  If AccountCalc IsNot Nothing Then
    ' Opening Transactions (or Opening and related to this Account Calculation for restructures)
    For Each AccountCalcScheduleItem In AccountCalc.Schedule
      Select Case AccountCalcScheduleItem.ElementType
        Case isefinElementType.Advance, isefinElementType.Refinance, isefinElementType.Withdrawal
          Ok = AccountCalcScheduleItem.Date = account.DateOpened AndAlso AccountCalcScheduleItem.Value &lt;&gt; 0
        Case Else
          Ok = False
      End Select

      If Ok Then
        ' Update Opening Balance
        ReplaceBookmarks_OpeningBalance += AccountCalcScheduleItem.Value

        ' Update Opening Transactions
        With summaryTable.Rows.Add.Cells()
          .AddText(AccountCalcScheduleItem.NotesResolved)
          .AddCurrency(AccountCalcScheduleItem.Value, True)
        End With
      End If
    Next

    ' Deposits
    Heading = "less"
    For Each AccountCalcScheduleItem In AccountCalc.Schedule
      Select Case AccountCalcScheduleItem.ElementType
        Case isefinElementType.Deposit
          Ok = AccountCalcScheduleItem.Date = account.DateOpened AndAlso AccountCalcScheduleItem.Value &lt;&gt; 0
        Case Else
          Ok = False
      End Select

      If Ok Then
        ' Update Opening Balance
        ReplaceBookmarks_OpeningBalance += AccountCalcScheduleItem.Value

        ' Add Heading
        If Len(Heading) &lt;&gt; 0 Then
          With summaryTable.Rows.Add.Cells()
            .AddText(Heading)

            ' Reset heading
            Heading = ""
          End With
        End If

        ' Update Opening Transactions
        With summaryTable.Rows.Add.Cells()
          .AddText(AccountCalcScheduleItem.NotesResolved)
          .AddCurrency(AccountCalcScheduleItem.Value, True)
        End With
      End If
    Next

    ' Opening Fees
    Heading = "plus"
    For Each AccountCalcScheduleItem In AccountCalc.Schedule
      Select Case AccountCalcScheduleItem.ElementType
        Case isefinElementType.Cost
          ' Show if Cost is on the date opened
          Ok = AccountCalcScheduleItem.Date = account.DateOpened AndAlso AccountCalcScheduleItem.Value &lt;&gt; 0
        Case isefinElementType.Fee, isefinElementType.Journal
          ' Show if Fee or Journal is an Opening type
          Ok = AccountCalcScheduleItem.ScheduleType = isefinAccountCalcScheduleType.Opening
        Case Else
          Ok = False
      End Select

      If Ok Then
        ' Update Opening Balance
        ReplaceBookmarks_OpeningBalance += AccountCalcScheduleItem.Value

        ' Add Heading
        If Len(Heading) &lt;&gt; 0 Then
          With summaryTable.Rows.Add.Cells()
            .AddText(Heading)

            ' Reset heading
            Heading = ""
          End With
        End If

        ' Update Opening Transactions
        With summaryTable.Rows.Add.Cells()
          .AddText(AccountCalcScheduleItem.NotesResolved)
          .AddCurrency(AccountCalcScheduleItem.Value, True)
        End With
      End If
    Next
  End If

End Function

Private Function ReplaceBookmarks_PaymentMethod(account As finAccount,
                                                accountCalc As finAccountCalc) As String

  Dim PaymentCountAdditional As Integer
  Dim PaymentCountPromise As Integer
  Dim PaymentCountTransaction As Integer
  Dim PaymentMethodPk As Integer

  ' Initialise
  ReplaceBookmarks_PaymentMethod = ""

  If AccountCalc IsNot Nothing Then
    ' Get Information
    If account.BankingDetails.ExistsBankingDetailsType(isefinAccountBankingDetailsType.Incoming) Then
      PaymentMethodPk = account.BankingDetails.Item(0).BankingDetails.PaymentMethodPk
    Else
      PaymentMethodPk = 0
    End If
    accountCalc.Schedule.CountPayments(False, 0, 0, 0, 0, PaymentCountAdditional, PaymentCountPromise, PaymentCountTransaction)

    If PaymentMethodPk = 0 Then
      ReplaceBookmarks_PaymentMethod = "Payments to be mailed or paid to the Creditor at the Creditor's address."
    Else
      ReplaceBookmarks_PaymentMethod = "Payments to be made by " &amp;  finBL.PaymentMethods.ItemByPk(PaymentMethodPk).Description &amp; "."

       ' Add additional payments note on Payment Method?
      If PaymentCountAdditional &lt;&gt; 0 Or PaymentCountPromise &lt;&gt; 0 Or PaymentCountTransaction &lt;&gt; 0 Then
        If finBL.PaymentMethods.ItemByPk(PaymentMethodPk).IsDirectDebit Then
          ReplaceBookmarks_PaymentMethod &amp;= vbNewLine &amp; "Additional payments may be combined with regular payments when debiting your Bank Account."
        End If
      End If
    End If
  End If

End Function

'#################################################################
' ELECTRONIC SIGNATURE
'#################################################################
Private Function SendElectronicSignature(dis As finDocumentRecipientDetailsItems,
                                         logPublishBatchItem As finLogPublishBatchItem,
                                         documentBinaryData As Byte()) As Boolean

  Dim AccountClient As finAccountClient
  Dim di As finDocumentRecipientDetailsItem
  Dim Email As String
  Dim FileName As String
  Dim Request As ISElectronicSignatureRequest
  Dim Request_AdobeSign_FileInfo As ISElectronicSignatureRequest_AdobeSign_FileInfo
  Dim Request_AdobeSign_RecipientInfo As ISElectronicSignatureRequest_AdobeSign_RecipientInfo
  Dim Request_AdobeSign_RecipientSetInfo As ISElectronicSignatureRequest_AdobeSign_RecipientSetInfo
  Dim Request_DocuSign_Document As ISElectronicSignatureRequest_DocuSign_Document
  Dim Request_DocuSign_Recipient As ISElectronicSignatureRequest_DocuSign_Recipient
  Dim Success As Boolean

  ' Assume Success
  Success = True

  ' Cache Document Information
  di = dis(0)

  ' Save Binary Data to temporary file
  If Success Then
    FileName = finBL.Runtime.FileUtilities.TempPath &amp; finBL.Runtime.FileUtilities.GetFileNameCleaned(mDocument.Description) &amp; Format(finBL.TimeZoneFunctions.GetCurrentDatabaseDateTime,"_yyyyMMddhhmmss") &amp; ".pdf"
    Success = finBL.Runtime.FileUtilities.WriteFileFromByteArray(FileName, documentBinaryData)
  End If

  If Success Then
    Select Case finBL.CostCentresResolved.ItemByAccount(di.Account).DefaultElectronicSignatureServiceId
      Case "AdobeSign"
        ' Create Request
        Request = finBL.ElectronicSignature.Service_AdobeSign.CreateRequest_AgreementSendEx(di.Account.BranchPk)

        ' Set Basic Properties
        With DirectCast(Request, ISElectronicSignatureRequest_AdobeSign_AgreementSendEx)
          .BranchPk = di.Account.BranchPk

          With .DocumentCreationInfo
            .Name = mDocument.Description
            .Message = di.EmailDetails.EmailMessage
            If Len(di.AccountId) &lt;&gt; 0 Then
              .ExternalId.Group = "Account"
              .ExternalId.Id = di.AccountId
            End If

            ' Add File
            If Success Then
              Request_AdobeSign_FileInfo = .FileInfos.CreateISElectronicSignatureRequest_AdobeSign_FileInfo
              With Request_AdobeSign_FileInfo
                .FileName = FileName
              End With
              .FileInfos.Add(Request_AdobeSign_FileInfo)
            End If

            ' Add Recipients
            If Success Then
              For Each AccountClient In di.Account.Clients
                If AccountClient.IsOwner AndAlso AccountClient.AccountSignatory Then
                  ' Get Email
                  Email = AccountClient.Client.ContactMethods.GetCurrentEmail().Value

                  If Len(Email) = 0 Then
                    Success = False
                    finBL.Error.ErrorBegin("Email not found.")
                    Exit For
                  Else
                    ' Create Objects
                    Request_AdobeSign_RecipientSetInfo = .RecipientSetInfos.CreateISElectronicSignatureRequest_AdobeSign_RecipientSetInfo()
                    Request_AdobeSign_RecipientInfo = Request_AdobeSign_RecipientSetInfo.RecipientSetMemberInfos.CreateISElectronicSignatureRequest_AdobeSign_RecipientInfo()
                    Request_AdobeSign_RecipientSetInfo.RecipientSetMemberInfos.Add(Request_AdobeSign_RecipientInfo)

                    ' Update Properties
                    With Request_AdobeSign_RecipientSetInfo
                      .RecipientRole = iseElectronicSignatures_AdobeRecipientRole.Signer
                    End With
                    With Request_AdobeSign_RecipientInfo
                      .ClientId = AccountClient.ClientId
                      .Email = Email
                    End With

                    ' Add Recipient
                    .RecipientSetInfos.Add(Request_AdobeSign_RecipientSetInfo)
                 End If
                End If
              Next
            End If

            ' Add Finance Company Recipients
          End With
        End With

      Case "DocuSign"
        ' Create Request
        Request = finBL.ElectronicSignature.Service_Docusign.CreateRequest_CreateEnvelope(di.Account.BranchPk)

        With DirectCast(Request, ISElectronicSignatureRequest_DocuSign_CreateEnvelope)
          .BranchPk = di.Account.BranchPk
          .EmailSubject = di.EmailDetails.EmailSubject
          .EmailBlurb = di.EmailDetails.EmailMessage
          .Status = iseElectronicSignatures_DocuSignEnvelopeStatus.Sent

          ' Add Document
          If Success Then
            Request_DocuSign_Document = .Documents.CreateISElectronicSignatureRequest_DocuSign_Document()
            With Request_DocuSign_Document
              .LoadFromFile(FileName)
            End With
            .Documents.Add(Request_DocuSign_Document)
          End If

          ' Add Recipients
          If Success Then
            For Each AccountClient In di.Account.Clients
              If AccountClient.IsOwner AndAlso AccountClient.AccountSignatory Then
                ' Get Email
                Email = AccountClient.Client.ContactMethods.GetCurrentEmail().Value

                If Len(Email) = 0 Then
                  Success = False
                  finBL.Error.ErrorBegin("Email not found.")
                  Exit For
                Else
                  ' Add Recipient
                  Request_DocuSign_Recipient = .Recipients.CreateISElectronicSignatureRequest_DocuSign_Recipient()
                  With Request_DocuSign_Recipient
                    .RecipientType = iseElectronicSignatures_DocuSignRecipientType.Signer
                    .Name = AccountClient.Client.GetFullName(True, True)
                    .Email = Email
                    '.Note = AccountClient.ClientId
                  End With

                  ' Add Recipient
                  .Recipients.Add(Request_DocuSign_Recipient)
               End If
              End If
            Next
          End If

          ' Add Finance Company Recipients
        End With

      Case "SecuredSigning"
        ' Create Request
        Request = finBL.ElectronicSignature.Service_SecuredSigning.CreateRequest_SmartTagSendEx(di.Account.BranchPk)

        With DirectCast(Request, ISElectronicSignatureRequest_SecuredSigning_SmartTagSendEx)
          ' Set Properties
          .BranchPk = di.Account.BranchPk
          '.DueDate = Date.Now().AddDays(1)

          ' Add Document
          If Success Then
            .Documents.Add(FileName)
          End If
        End With
    End Select
  End If

  ' Send Electronic Signature
  If Success Then
    If di.AccountApp Is Nothing Then
      ' Account
      Success = finBL.ElectronicSignature.ExecuteSendAccountLog(Request, logPublishBatchItem.LogPk, Nothing)
    Else
      ' Account Application
      Success = finBL.ElectronicSignature.ExecuteSendAccountApplicationLog(Request, logPublishBatchItem.LogPk, Nothing)
    End If
  End If

  ' Delete Temporary File
  If Len(FileName) &lt;&gt; 0 Then
    finBL.Runtime.FileUtilities.DeleteFile(FileName)
  End If

  ' Set all Logs to not print
  If Success Then
    For Each di In dis
      di.PrintStatus = isefinLogPrintStatus.NotApplicable
    Next
  End If

  Return Success

End Function</Code>
    <Language>VisualBasic</Language>
    <TimeoutSeconds>0</TimeoutSeconds>
    <ScriptReferenceReports>false</ScriptReferenceReports>
  </finDocument>