myDATATools.getPeppolMeasurmentUnit Method

Get the Measurment Unit Code list according to peppol. 
This method returns data for the provLine.peppolMeasurementUnit field. 
For more information about each measurement unit, check the Peppol Measurement Unit 
This function is not available in the Trial Version.
Public Function getPeppolMeasurmentUnit() As Dictionary(Of String, String)
This language is not supported or no code example is available.
public Dictionary<string, string> getPeppolMeasurmentUnit()
This language is not supported or no code example is available.

Return Value

Dictionary<string, string>
Remarks
 
For each AADE Measurement Units (method getMeasurementUnit) use the peppol codes: 
AADE Code 1 --> Peppol Code: XUN 
AADE Code 2 --> Peppol Code: KGM 
AADE Code 3 --> Peppol Code: LTR 
AADE Code 4 --> Peppol Code: MTR 
AADE Code 5 --> Peppol Code: MTK 
AADE Code 6 --> Peppol Code: MTQ 
AADE Code 7 --> Peppol Code: Choose the most appropriate data that this method returned.
Example
 
 myDATATools mdt = new myDATATools("Arbitrans User", "Arbitrans Key");
 Dictionary<string, string> measurs = mdt.getPeppolMeasurmentUnit();
 foreach (var measur In measurs)
 {
     Console.WriteLine("       measurment Code: " & measur.Key);
     Console.WriteLine("measurment Description: " & measur.Value);
 }
 					
This language is not supported or no code example is available.
 Dim mdt as myDATATools = new myDATATools("Arbitrans User", "Arbitrans Key")
 Dim measurs As Dictionary(Of String, String) = mdt.getPeppolMeasurmentUnit()
 For Each measur In measurs
     Console.WriteLine("       measurment Code: " & measur.Key)
     Console.WriteLine("measurment Description: " & measur.Value)
 Next
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition