Invoice - Document information

This section includes all document references, including document no, dates and currency information.

cbc:ID - Invoice number (M)
Default mapping: OrderDocument.InvoiceNo
cbc:IssueDate - Invoice date (M)
Default mapping: OrderDocument.InvoiceDate
cbc:DueDate - Payment due date (O)
Default mapping: calculated from OrderDocument.InvoiceDate

Not mapped from a field directly, although the field OrdreDocument.DueDate exists. According to document handling in Business however, this field is used for overriding the due date calculated by Visma Business during invoicing. The calculation in question is Invoice date + Credit days found on the payment terms set on the order document. This also means that if there is a hold between approving a invoice and sending it to AutoInvoice, any changes made to credit days in the Payment terms table inbetween, will cause the due date to change in the XML.

cbc:InvoiceTypeCode - Type of invoice issued (M)
Default mapping: hardcoded.

Hardcoded value based on type. Invoice = 380, Credit note = 381, factoring = 393, credited factoring = 396, Interest note = 84.

cbc:Note - Free text note (O)
Mapping:
  • Default mapping: OrderDocumentNote.Note
  • Also available through mapping tool

In addition to the default mapping, the mapping tool is available. The fields set in the mapping tool will override the default mapping for Note. See online documentation for more details about the handling of Note.

cbc:TaxPointDate - VAT accounting date (O)
Default mapping: OrderDocument.InvoiceDate
cbc:DocumentCurrencyCode - Invoice currency (M)
Default mapping: OrderDocument.CurrencyNo -> Currency.IsoCode
cbc:TaxCurrencyCode - VAT accounting currency (O)
Default mapping: CompanyInformation.CurrencyNo-> Currency.IsoCode

This currency code is only included if the order currency is different to the client currency. When this currency code is included, the TaxTotal will include a tax amount in the tax currency in addition to the invoice currency.

cbc:BuyerReference - Your ref (O)
Default mapping: OrderDocument.YourReference

Optional, but only if Order reference is included in the invoice. BuyerReference must be included if order reference is not included.

cac:OriginatorDocumentReference (O)
cbc:ID (M)
Default mapping: OrderDocument.QuotationNo
cac:InvoicePeriod - The period that the invoice content is for (O)
cbc:StartDate - Invoicing period start date (O)
Default mapping: None
cbc:EndDate - Invoicing period end date (O)
Default mapping: None

Both dates are possible to map through the mapping tool. One date may be mapped without having to map the other.

cac:OrderReference - Purchase and sales order identification (O)
cbc:ID - Purchase order reference (M)
Default mapping: OrderDocument.CustomerOrSupplierOrderNo

Optional only if Buyer reference is included in the invoice. OrderReference must be included if buyer reference is not included.

cbc:SalesOrderID - Sales order reference (O)
Default mapping: OrderDocument.OrderNo

Inclusion of sales order reference is dependent on order reference being set.

cac:BillingReference - Information about preceding invoice (O)
cbc:ID - Preceding invoice number (M)
Default mapping: OrderDocument.InvoiceReference

Billing reference is only included on credit notes.

cac:ContractDocumentReference - Information about contract relevant for invoice (O)
cbc:ID - Contract reference (M)
Default mapping: CompanyInformation.AutoInvoiceCustomerContractUnit

Alternative mapping: CompanyInformation.AutoInvoiceContractUnit

Also available through mapping tool.

The default and alternative mappings of contract reference in Business is a reference to which organisational unit field on the order that is to be used. The mapping from the mapping tool refers to information fields on the order.
Anm: Default mapping overrides mapping tool.
cac:AdditionalDocumentReference - attached documents (O)
This section includes all information about any attached documents. If a document is attached to the order before invoicing, it will be included in this section in binary form.
cac:ProjectReference - The project reference for the invoice (O)
cbc:ID - Project reference (M)
Default mapping: CompanyInformation.AutoInvoiceProjectUnit

Also available through mapping tool.

The default mapping of project reference in Business is a reference to which organisational unit field on the order that is to be used.
Anm: Default mapping overrides mapping tool.


Vi uppskattar din feedback. Skicka feedback om detta ämne till Visma.