elements Structure

Struct elements 
It contains all the necessary fields required to determine an invoice.
Public Structure elements
This language is not supported or no code example is available.
public struct elements
This language is not supported or no code example is available.
Fields
 
Name Description
Public field aa mandatory field, numbers ONLY. 
The invoice number, type of Long
Public field correlatedInvoices The correlated invoices, type of String 
The field labelled "correlated invoices" is obligatory for invoices 1.6, 2.4, and 5.1. 
Its value should correspond To the "Mark" associated With the original invoice.
Public field currency Default value EUR. ISO Currency Code ONLY. 
The currency, type of String 
Get a list of all currency codes using myDATATools.getCurrencies
Public field deductionsAmount Fill out this field only if lineData is false 
The deductions amount of the invoice, type of Double
Public field dispatchDate The dispatch date, type of Date 
Determines the date the dispatch will start.
Public field dispatchTime The dispatch time, type of String 
Determines the time (24-hour) the dispatch will start. Example: 18:31
Public field exchangeRate It is a mandatory field only when you use a currency other than EUR. 
Get the Exchage Rates using ExchangeRates Class. 
The exchange rate, type of Double
Public field feesAmount Fill out this field only if lineData is false 
The fees amount of the invoice, type of Double
Public field invoiceType mandatory field 
The invoice type, type of String 
Get a list of all invoiceType using myDATATools.getInvoiceType
Public field invoiceVariationType The invoice variation type, type of Integer 
Only enter this information when you are sending an expense to myDATA for an entity whose original issuer neglected to send it. 
Get a list of all invoiceVariationType using myDATATools.getInvoiceVariationType
Public field isDeliveryNote Indication of Delivery Note, type of Boolean 
Determines if the invoice also stands for a delivery note. It is only applicable to invoice Type 1.1. 
Default Value False 
Public field issueDate Default Value Current System Date 
The issue date, type of Date
Public field lineData Define if the taxes are at line level. 
Default value false 
If the taxes are at line level, you should fill in the invoiceLine.otherTaxesPercentCategory, the invoiceLine.otherTaxesAmount, the invoiceLine.stampDutyPercentCategory, the invoiceLine.stampDutyAmount, the invoiceLine.withheldPercentCategory, the invoiceLine.withheldAmount, the invoiceLine.feesPercentCategory, the invoiceLine.feesAmount, and the invoiceLine.deductionsAmount
Complete the required fields only. There is no requirement to complete the aforementioned fields in full. 
lineData, type of Boolean
Public field movePurpose The move purpose of the dispatch, type of Integer 
Get a list of all movePurpose using myDATATools.getMovePurpose
Public field multipleConnectedMarks This field is not applicable to invoice types 1.6, 2.4, and 5.1. 
Invoice marks that are connected to the current invoice. 
Use a comma (,) to divide the marks. 
Example: 400000000000001,400000000000002,400000000000003
Public field noteAddress It is a mandatory field only when Invoice Type is 9.4 [or 1.1 with isDeliveryNote=True] 
Delivery Note Addresses is an object of deliveryNoteAddresses containing the loading and delivery addresses. 
Public field otherCorrelatedEntities Other Correlated Entities is a list type of otherCorrelatedEntities
This list is optional and can be send with any invoiceType.
Public field otherMovePurposeTitle It is a mandatory field only when movePurpose=18 
A concise explanation of the "Other Move Purpose" can be provided in this field, which is a free text area.
Public field otherTaxesAmount Fill out this field only if lineData is false 
The other taxes amount of the invoice, type of Double
Public field selfPricing The self pricing, type of Boolean 
Set this value to "true" if the invoice issued by the issuer represents an expense for the issuer and a profit for the counterpart. 
Public field series Default Value 0 
Determines the series of the invoice. If there is no series, it should be filled with zero (0). 
The series, type of String
Public field specialInvoiceCategory The special invoice category, type of Integer 
Only enter values in this field if the invoice in question pertains to a unique invoice type and not the one specified in the invoiceType. 
The end user will be aware of the precise circumstances in which values should be entered into this field. 
Get a list of all specialInvoiceCategory using myDATATools.getspecialInvoiceCategory
Public field stampDutyAmount Fill out this field only if lineData is false 
The stamp duty amount of the invoice, type of Double
Public field tableAA Acceptable only for invoiceType="8.6" The restaurant table number.
Public field thirdPartyCollection It is a acceptable field only when Invoice Type is 8.4 or 8.5
Public field totalCancelDeliveryOrders Acceptable only for invoiceType="8.6" Indication of multiple rejections of order slips. 
If True, then the field multipleConnectedMarks must have values and the invoiceLine array should have exactly one (1) line with zero (0) values.
Public field transmissionFailure It is a mandatory field only when the invoice issue date is earlier than the current date and outside of the range set by the myDATA limitations law. 
Acceptable values for ERP: 3 (Loss of connection) 
Acceptable values for Providers: 1 (failure of entity to communicate with the provider) and 2 (failure of the provider to communicate with myDATA) 
The transmission failure, type of Integer
Public field vatPaymentSuspension The vat payment suspension, type of Boolean 
Determines if the issuer is not obligated to pay the VAT to the government. 
Default Value False 
Public field vehicleNumber The licence plate of the vehicle that it is associated with the dispatch, type of String
Public field withheldAmount Fill out this field only if lineData is false 
The withheld amount of the invoice, type of Double
Top

.NET Framework

Supported in: 3.5 or newer

In this article

Definition