Knowledgebase:
Deliver
Posted by Mohammad Rahhal, Last modified by Angham Al-Banawien on 04 July 2018 01:48 PM

Syntax

 Public Function Deliver(Ticket As Integer, DeliveryItemID As String, NumberOfItems As Integer, DepID As Integer, Optional Comment As String""As CallingResultsEnum

This function delivers the physical items for specific symbol. After Deliver method executes the DeliveryResultReceived event fire.

Parameters

Parameter Description 
Ticket The procces ticket number, value of type is Integer.
DeliveryItemID The ID of delivery Item ,value of type is String.
NumberOfItems Items number that need to be delivered,value of type is Integer.
DepID The department identifier to send the delivery order for, value of type Integer.
Note :The department must be branch type.
comment String use to mark the deliver operation on the trading list.


Return value

Returns a value of type CallingResultsEnum.if the request sent to server successfully it will return SuccessResult 

Sample

 Private Sub API_DepartmentsResultReceived(ByRef Departments As CDepartments, ByRef Count As Integer) Handles API.DepartmentsResultReceived


      If Count > 0 then
           For i As Integer = 0 To Count -1
               Dim dep As CDepartment
               dep = Departments.Item(i)
           if dep.IsBranch then

             Dim pos as VertexFXBOAPI.COOPosition
             pos = API.OpenPositionByIndex(1)
             Dim result As CallingResultsEnum
             result =  API.Deliver(pos.Ticket,”DeliveryItemID”,1, dep. DeptID,”Comment”)
           end if
         Next
      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