myDATATools.getValidCategory (String, Int32) Method

Retrieve all valid categories of a specific Invoice Type. 
This function can be used to get all the categories supported by AADE for a specific invoice type, whether it is income or expense. 
This way, you can limit the end user's options and lead him to select the correct category. 
Categories are used in invoice classification for the field classification.Category or the field classifications.classificationCategory 
The responsibility for selecting the appropriate category lies with the end user.
Public Function getValidCategory( _ 
ByVal InvoiceType As String, _ 
ByVal checkType As Integer
) As String()
This language is not supported or no code example is available.
public string[] getValidCategory( 
string InvoiceType
int checkType 
)
This language is not supported or no code example is available.

Parameters

InvoiceType
string

Invoice Type (1.1, 1.2, 1.3, etc)

checkType
int

Check Type (Income/Expenses). 
1 is for Income Categories 
2 is for Expenses Categories 
3 is for Income and Expenses Categories

Return Value

string[]
Example
 
 myDATATools mdt = new myDATATools("Arbitrans User", "Arbitrans Key");
 string[] result = mdt.getValidCategory("1.1", 1);
 
 // The result of the above is a list containing:
 // category1_1
 // category1_2
 // category1_3
 // category1_4
 // category1_5
 // category1_8
 // category1_9
 // category1_95
 					
This language is not supported or no code example is available.
 Dim mdt as myDATATools = new myDATATools("Arbitrans User", "Arbitrans Key")
 Dim result As String() = mdt.getValidCategory("1.1", 1)
 
 ' The result of the above is a list containing:
 ' category1_1
 ' category1_2
 ' category1_3
 ' category1_4
 ' category1_5
 ' category1_8
 ' category1_9
 ' category1_95
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition