myDATATools.checkE3Class (List<comb>, Int32, Boolean) Method

Check whether a list of E3 Code and Category combination is valid. 
This function is not available in the Trial Version.
Public Function checkE3Class( _ 
ByVal combs As List(Of comb), _ 
ByVal type As Integer, _ 
ByVal OnlyE3Category As Boolean
) As Dictionary(Of String, Boolean)
This language is not supported or no code example is available.
public Dictionary<string, bool> checkE3Class( 
List<comb> combs
int type
bool OnlyE3Category 
)
This language is not supported or no code example is available.

Parameters

combs
List<comb>

List of comb

type
int

Check Type (Income/Expenses). 
1 is for Income 
2 is for Expenses 
3 in General (Income or Expenses)

OnlyE3Category
bool

If True then checks whether the E3 Code and Category combination is valid in general, regardless of invoice type. 
Otherwise, checks the combination including the invoice type

Return Value

Dictionary<string, bool>
Remarks
 
The following example will return a dictionary as following: 
[13.31-E3_302_002-category2_10, True] 
[13.32-E3_302_002-category2_10, False] 
[14.1-E3_202_003-category2_2, True]
Example
 
 myDATATools mdt = new myDATATools("Arbitrans User", "Arbitrans Key");
 var Combs = new List<comb>();
 var c1 = new comb();
 c1.Type = "13.31";
 c1.E3 = "E3_302_002";
 c1.Category = "category2_10";
 Combs.Add(c1);
 
 var c2 = new comb();
 c2.Type = "13.32";
 c2.E3 = "E3_302_002";
 c2.Category = "category2_10";
 Combs.Add(c2);
 
 var c3 = new comb();
 c3.Type = "14.1";
 c3.E3 = "E3_202_003";
 c3.Category = "category2_2";
 Combs.Add(c3);
 
 Dictionary<string, bool> result = mdt.checkE3Class(Combs, 2, false);
 					
This language is not supported or no code example is available.
 Dim mdt as myDATATools = new myDATATools("Arbitrans User", "Arbitrans Key")
 Dim Combs As New List(Of comb)
 Dim c1 As New comb
 c1.Type = "13.31"
 c1.E3 = "E3_302_002"
 c1.Category = "category2_10"
 Combs.Add(c1)
 
 Dim c2 As New comb
 c2.Type = "13.32"
 c2.E3 = "E3_302_002"
 c2.Category = "category2_10"
 Combs.Add(c2)
 
 Dim c3 As New comb
 c3.Type = "14.1"
 c3.E3 = "E3_202_003"
 c3.Category = "category2_2"
 Combs.Add(c3)
 
 Dim result As Dictionary(Of String, Boolean) = mdt.checkE3Class(Combs, 2, False)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition