Knowledgebase:
DeleteMoneyTransaction
Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 07 May 2017 01:00 PM

Syntax

Public Function DeleteMoneyTransaction (AccountID As Integer, TicketID As Integer) As CallingResultsEnum

This function is used to delete money transaction for a specific account number. After DeleteMoneyTransaction method executes, DeleteMoneyTransactionResultReceived event fires.

Parameters

Parameter Description 
AccountID Account number to delete money transaction from. Value type is Integer.
TicketID Ticket number to be deleted. Value type is Integer.

Return value 

Returns value of type CallingResultsEnum. If the request was sent to the server successfully, it will return SuccessResult.

Sample


  Private Sub GetHistory_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GetHistory.Click

    ‘BOAPI is predefined variable as CVertexBOAPI

     Dim Result as CallingResultsEnum
     Dim vAccount As COAccount
     Dim vClient as COClient
     Dim AccountID as Integer
     vClient = BOAPI.ClientByIndex (1)
     vAccount = BOAPI.AccountByIndex (vClient.ClientID, 1)
     AccountID = vAccount.AccountID
     Result = BOAPI.GetAccountHistory (AccountID,-1,””,””)
     MsgBox (Result)

  End Sub

  Private Sub BOAPI_AccountHistoryReceived (ByRef AccountHistory As VBA.Collection) Handles BOAPI.AccountHistoryReceived
     Dim vAccount As COAccount
     Dim vClient as COClient
     Dim AccountID as Integer
     vClient = BOAPI.ClientByIndex (1)
     vAccount = BOAPI.AccountByIndex (vClient.ClientID, 1)
     AccountID = vAccount.AccountID
     Dim TicketID as Integer = AccountHistory.Item (1).Ticket

     IF AccountHistory.Item (1).HisType = “3” then ‘ Money Transaction 

        Dim Result as CallingResultsEnum
        Result = BOAPI.DeleteMoneyTransaction(AccountID, TicketID)
        MsgBox (Result)

     End IF 

  End Sub

 

See Also


VertexFX Backoffice API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions