squashed commit

This commit is contained in:
hoangvv
2026-09-18 13:55:25 +07:00
commit 039c98d4d0
45882 changed files with 24235585 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
from . import models
def uninstall_hook(env):
env["res.partner"]._clear_removed_edi_formats("oioubl_201")
+21
View File
@@ -0,0 +1,21 @@
{
'author': 'Odoo',
'name': 'Denmark - E-invoicing',
'version': '0.1',
'category': 'Accounting/Localizations/EDI',
'description': """
E-invoice implementation for the Denmark
""",
'summary': "E-Invoicing, Offentlig Information Online Universal Business Language",
'depends': [
'account_edi_ubl_cii',
'l10n_dk',
],
'data': [
'data/oioubl_templates.xml',
],
'installable': True,
'auto_install': True,
'license': 'LGPL-3',
'uninstall_hook': 'uninstall_hook',
}
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="oioubl_PaymentTermsType" inherit_id="account_edi_ubl_cii.ubl_20_PaymentTermsType" primary="True">
<xpath expr="//*[local-name()='Amount']" position="after">
<t xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<t t-set="settlement_period" t-value="vals['settlement_period']"/>
<cac:SettlementPeriod>
<cbc:StartDate><t t-out="settlement_period['start_date']"/></cbc:StartDate>
<cbc:EndDate><t t-out="settlement_period['end_date']"/></cbc:EndDate>
</cac:SettlementPeriod>
</t>
</xpath>
</template>
<template id="oioubl_PaymentMeansType" inherit_id="account_edi_ubl_cii.ubl_20_PaymentMeansType" primary="True">
<xpath expr="//*[local-name()='PayeeFinancialAccount']//*[local-name()='FinancialInstitution']//*[local-name()='Address']" position="attributes">
<attribute name="t-if">not invoice.partner_bank_id in supplier.bank_ids</attribute>
</xpath>
</template>
</odoo>
+67
View File
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_dk_oioubl
#
# Weblate <noreply-mt-weblate@weblate.org>, 2025.
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-03 15:42+0000\n"
"PO-Revision-Date: 2025-11-19 20:12+0000\n"
"Last-Translator: Weblate <noreply-mt-weblate@weblate.org>\n"
"Language-Team: Danish <https://translate.odoo.com/projects/odoo-18-l10n/"
"l10n_dk_oioubl/da/>\n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.12.2\n"
#. module: l10n_dk_oioubl
#: model:ir.model,name:l10n_dk_oioubl.model_res_partner
msgid "Contact"
msgstr "Kontakt"
#. module: l10n_dk_oioubl
#: model:ir.model.fields.selection,name:l10n_dk_oioubl.selection__res_partner__invoice_edi_format__oioubl_201
msgid "Denmark (Oioubl)"
msgstr ""
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid "Denmark E-Invoicing"
msgstr ""
#. module: l10n_dk_oioubl
#: model:ir.model,name:l10n_dk_oioubl.model_account_edi_xml_oioubl_201
msgid "OIOUBL 2.01"
msgstr ""
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid "The company registry is required for french partner: %s"
msgstr "Virksomhedsregistret er påkrævet for den franske partner: %s"
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid "The following partner's street number is missing: %s"
msgstr "Følgende partners gadenummer mangler: %s"
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid ""
"The payment method in the generated XML may be incorrect. Please update the "
"following module "
msgstr ""
#. module: l10n_dk_oioubl
#: model:ir.model.fields,field_description:l10n_dk_oioubl.field_res_partner__invoice_edi_format
#: model:ir.model.fields,field_description:l10n_dk_oioubl.field_res_users__invoice_edi_format
msgid "eInvoice format"
msgstr "eInvoice format"
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_dk_oioubl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-03 15:42+0000\n"
"PO-Revision-Date: 2025-11-03 15:42+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_dk_oioubl
#: model:ir.model,name:l10n_dk_oioubl.model_res_partner
msgid "Contact"
msgstr ""
#. module: l10n_dk_oioubl
#: model:ir.model.fields.selection,name:l10n_dk_oioubl.selection__res_partner__invoice_edi_format__oioubl_201
msgid "Denmark (Oioubl)"
msgstr ""
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid "Denmark E-Invoicing"
msgstr ""
#. module: l10n_dk_oioubl
#: model:ir.model,name:l10n_dk_oioubl.model_account_edi_xml_oioubl_201
msgid "OIOUBL 2.01"
msgstr ""
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid "The company registry is required for french partner: %s"
msgstr ""
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid "The following partner's street number is missing: %s"
msgstr ""
#. module: l10n_dk_oioubl
#. odoo-python
#: code:addons/l10n_dk_oioubl/models/account_edi_xml_oioubl_201.py:0
msgid ""
"The payment method in the generated XML may be incorrect. Please update the "
"following module "
msgstr ""
#. module: l10n_dk_oioubl
#: model:ir.model.fields,field_description:l10n_dk_oioubl.field_res_partner__invoice_edi_format
#: model:ir.model.fields,field_description:l10n_dk_oioubl.field_res_users__invoice_edi_format
msgid "eInvoice format"
msgstr ""
+2
View File
@@ -0,0 +1,2 @@
from . import account_edi_xml_oioubl_201
from . import res_partner
@@ -0,0 +1,362 @@
from odoo import _, models, tools
from markupsafe import Markup
from odoo.tools import html2plaintext
DANISH_NATIONAL_IT_AND_TELECOM_AGENCY_ID = '320'
PAYMENT_MEANS_CODE = {
# https://www.oioubl.info/codelists/en/urn_oioubl_codelist_paymentmeanscode-1.1.html
'unknown': 1,
'cash': 10,
'cheque': 20,
'debit': 31,
'bank': 42,
'card': 48, # credit card
'direct debit': 49,
'compensation': 97,
}
UBL_TO_OIOUBL_TAX_CATEGORY_ID_MAPPING = {
# Simple mapping between tax type provided in UBL and what is accepted in OIOUBL
# https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/
# https://www.oioubl.info/codelists/en/urn_oioubl_id_taxcategoryid-1.1.html
'AE': 'ReverseCharge',
'E': 'ZeroRated',
'S': 'StandardRated',
'Z': 'ZeroRated',
'G': 'ZeroRated',
'O': 'ZeroRated',
'K': 'ReverseCharge',
'L': 'ZeroRated',
'M': 'ZeroRated',
}
TAX_POSSIBLE_VALUES = set(UBL_TO_OIOUBL_TAX_CATEGORY_ID_MAPPING.values())
EAS_SCHEME_ID_MAPPING = {
'0007': 'SE:ORGNR',
'0009': 'FR:SIRET',
'0060': 'DUNS',
'0088': 'GLN',
'0096': 'DK:P',
'0097': 'IT:FTI',
'0135': 'IT:SIA',
'0142': 'IT:SECETI',
'0184': 'DK:CVR',
'0192': 'NO:ORGNR',
'0196': 'IS:KT',
'0198': 'DK:SE',
'0201': 'IT:IPA',
'0208': 'BE:VAT',
'0210': 'IT:CF',
'0211': 'IT:VAT',
'0212': 'FI:ORGNR',
'0213': 'FI:VAT',
'0216': 'FI:OVT',
'9955': 'SE:VAT',
'9910': 'HU:VAT',
'9915': 'AT:VAT',
'9918': 'IBAN',
'9919': 'AT:KUR',
'9920': 'ES:VAT',
'9922': 'AD:VAT',
'9923': 'AL:VAT',
'9924': 'BA:VAT',
'9925': 'BE:VAT',
'9926': 'BG:VAT',
'9927': 'CH:VAT',
'9928': 'CY:VAT',
'9929': 'CZ:VAT',
'9930': 'DE:VAT',
'9931': 'EE:VAT',
'9932': 'GB:VAT',
'9933': 'GR:VAT',
'9934': 'HR:VAT',
'9935': 'IE:VAT',
'9936': 'LI:VAT',
'9937': 'LT:VAT',
'9938': 'LU:VAT',
'9939': 'LV:VAT',
'9940': 'MC:VAT',
'9941': 'ME:VAT',
'9942': 'MK:VAT',
'9943': 'MT:VAT',
'9944': 'NL:VAT',
'9945': 'PL:VAT',
'9946': 'PT:VAT',
'9947': 'RO:VAT',
'9948': 'RS:VAT',
'9949': 'SI:VAT',
'9950': 'SK:VAT',
'9951': 'SM:VAT',
'9952': 'TR:VAT',
'9953': 'VA:VAT',
}
def format_vat_number(partner):
vat = (partner.vat or '').replace(' ', '')
if vat[:2].isnumeric():
vat = partner.country_code.upper() + vat
return vat
class AccountEdiXmlOIOUBL201(models.AbstractModel):
_name = "account.edi.xml.oioubl_201"
_inherit = 'account.edi.xml.ubl_20'
_description = "OIOUBL 2.01"
# Data validation Schematron available at the following URL:
# https://rep.erst.dk/git/openebusiness/common/-/tree/master/resources/Schematrons/OIOUBL
# -------------------------------------------------------------------------
# EXPORT
# -------------------------------------------------------------------------
def _export_invoice_filename(self, invoice):
return f"{invoice.name.replace('/', '_')}_oioubl_201.xml"
def _export_invoice_ecosio_schematrons(self):
return {
'invoice': 'org.oasis-open:invoice:2.0',
'credit_note': 'org.oasis-open:creditnote:2.0',
}
def _export_invoice_vals(self, invoice):
# EXTENDS account.edi.xml.ubl_20
vals = super()._export_invoice_vals(invoice)
vals['PaymentTermsType_template'] = 'l10n_dk_oioubl.oioubl_PaymentTermsType'
if self.env.ref('l10n_dk_oioubl.oioubl_PaymentMeansType', raise_if_not_found=False):
vals['PaymentMeansType_template'] = 'l10n_dk_oioubl.oioubl_PaymentMeansType'
else:
module = self.env['ir.module.module']._get('l10n_dk_oioubl')
module_url = f"/web#id={module.id}&model={module._name}&view_type=form"
message = _("The payment method in the generated XML may be incorrect. Please update the following module ")
message += Markup("<a href='%s' style='color:#017e84; font-weight: bold;'>(%s)</a>") % (module_url, _("Denmark E-Invoicing"))
invoice.message_post(body=message)
vals['vals'].update({
'customization_id': 'OIOUBL-2.01',
# ProfileID is the property that define which documents the company can send and receive
# 'Procurement-BilSim-1.0' is the simplest one: invoice and bill
# https://www.oioubl.info/documents/en/en/Guidelines/OIOUBL_GUIDE_PROFILES.pdf
'profile_id': 'Procurement-BilSim-1.0',
'profile_id_attrs': {
'schemeID': 'urn:oioubl:id:profileid-1.6',
'schemeAgencyID': DANISH_NATIONAL_IT_AND_TELECOM_AGENCY_ID,
}
})
vals['vals'].setdefault('document_type_code_attrs', {}).update({
'listID': 'urn:oioubl:codelist:invoicetypecode-1.2',
'listAgencyID': DANISH_NATIONAL_IT_AND_TELECOM_AGENCY_ID,
})
return vals
def _get_partner_party_vals(self, partner, role):
# EXTENDS account.edi.xml.ubl_20
""" The scheme_id needs to be in letters and the VAT number (if there is one) should be preceded by 2 letters"""
vals = super()._get_partner_party_vals(partner, role)
if partner.peppol_endpoint and partner.peppol_eas in EAS_SCHEME_ID_MAPPING:
# if we don't know the mapping with real names for the Peppol Endpoint, fallback on VAT simply
endpoint_id = partner.peppol_endpoint
scheme_id = EAS_SCHEME_ID_MAPPING[partner.peppol_eas]
if (scheme_id in ('DK:CVR', 'FR:SIRET') or scheme_id[3:] == 'VAT') and endpoint_id.isnumeric():
endpoint_id = scheme_id[:2] + endpoint_id
else:
endpoint_id = format_vat_number(partner)
country_code = endpoint_id[:2]
match country_code:
case 'DK':
scheme_id = 'DK:CVR'
case 'FR':
scheme_id = 'FR:SIRET'
# SIRET is the french company registry
endpoint_id = (partner.company_registry or "").replace(" ", "")
case _:
scheme_id = f'{country_code}:VAT'
vals.update({
# list of possible endpointID available at
# https://www.oioubl.info/documents/en/en/Guidelines/OIOUBL_GUIDE_ENDPOINT.pdf
'endpoint_id': endpoint_id,
'endpoint_id_attrs': {'schemeID': scheme_id},
})
for party_tax_scheme in vals['party_tax_scheme_vals']:
# the doc says it could be empty but the schematron says otherwise
# https://www.oioubl.info/Classes/en/TaxScheme.html
party_tax_scheme.update({
'tax_scheme_vals': {
'id': 'VAT',
'id_attrs': {'schemeID': 'urn:oioubl:id:taxschemeid-1.5'},
'name': 'VAT',
},
})
return vals
def _get_partner_address_vals(self, partner):
# EXTENDS account.edi.xml.ubl_20
vals = super()._get_partner_address_vals(partner)
# https://www.oioubl.info/Classes/en/Address.html
address = tools.street_split(partner.street)
street_name = address.get('street_name')
building_number = address.get('street_number')
vals.update({
# could be 'UN/CEFACT codeliste 3477' instead of StructuredDK' for partner out of DK
# not implemented yet because `StructuredDK` seems more than enough
'address_format_code': 'StructuredDK',
'address_format_code_attrs': {
'listAgencyID': DANISH_NATIONAL_IT_AND_TELECOM_AGENCY_ID,
'listID': 'urn:oioubl:codelist:addressformatcode-1.1',
},
'street_name': street_name,
'building_number': building_number,
})
return vals
def _get_partner_party_tax_scheme_vals_list(self, partner, role):
# EXTENDS account.edi.xml.ubl_20
vals_list = super()._get_partner_party_tax_scheme_vals_list(partner, role)
vat = format_vat_number(partner)
schemeID = 'DK:SE' if vat[:2] == 'DK' else 'ZZZ'
for vals in vals_list:
if partner.vat:
# SE is the danish vat number
# DK:SE indicates we're using it and 'ZZZ' is for international number
# https://www.oioubl.info/Codelists/en/urn_oioubl_scheme_partytaxschemecompanyid-1.1.html
vals.update({
'company_id_attrs': {'schemeID': schemeID},
'company_id': vat,
})
return vals_list
def _get_partner_party_legal_entity_vals_list(self, partner):
# EXTENDS account.edi.xml.ubl_20
vals_list = super()._get_partner_party_legal_entity_vals_list(partner)
vat = format_vat_number(partner)
schemeID = 'DK:CVR' if vat[:2] == 'DK' else 'ZZZ'
for vals in vals_list:
vals.update({
'company_id': vat,
'company_id_attrs': {'schemeID': schemeID},
})
return vals_list
def _get_invoice_payment_means_vals_list(self, invoice):
# EXTENDS account.edi.xml.ubl_20
vals_list = super()._get_invoice_payment_means_vals_list(invoice)
for vals in vals_list:
# Hardcoded 'unknown' for now
# Later on, it would be nice to create a dynamically selected template that would depends on the payment means
vals['payment_means_code'] = PAYMENT_MEANS_CODE['unknown']
return vals_list
def _get_invoice_tax_totals_vals_list(self, invoice, taxes_vals):
# EXTENDS account.edi.xml.ubl_20
vals_list = super()._get_invoice_tax_totals_vals_list(invoice, taxes_vals)
for tax_total_vals in vals_list:
for subtotal_vals in tax_total_vals.get('tax_subtotal_vals', []):
# https://www.oioubl.info/Classes/en/TaxSubtotal.html
# No 'percent' node in OIOUBL
subtotal_vals.pop('percent', None)
# TaxCategory https://www.oioubl.info/Classes/en/TaxCategory.html
subtotal_vals['tax_category_vals']['id_attrs'] = {
'schemeID': 'urn:oioubl:id:taxcategoryid-1.3',
'schemeAgencyID': DANISH_NATIONAL_IT_AND_TELECOM_AGENCY_ID,
}
# TaxCategory id list: https://www.oioubl.info/codelists/en/urn_oioubl_id_taxcategoryid-1.1.html
# The condition prevents the value to be mapped again when the methods is run several time
if subtotal_vals['tax_category_vals']['id'] not in TAX_POSSIBLE_VALUES:
subtotal_vals['tax_category_vals']['id'] = UBL_TO_OIOUBL_TAX_CATEGORY_ID_MAPPING.get(subtotal_vals['tax_category_vals']['id'])
subtotal_vals['tax_category_vals']['tax_scheme_vals']['name'] = 'VAT'
subtotal_vals['tax_category_vals']['tax_scheme_vals']['id_attrs'] = {'schemeID': 'urn:oioubl:id:taxschemeid-1.5'}
# /Invoice[1]/cac:TaxTotal[1]/cac:TaxSubtotal[1]/cac:TaxCategory[1]
# [W-LIB230] Name should only be used within NES profiles
# (cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
if 'name' in subtotal_vals['tax_category_vals']:
del subtotal_vals['tax_category_vals']['name']
return vals_list
def _get_invoice_monetary_total_vals(self, invoice, taxes_vals, line_extension_amount, allowance_total_amount, charge_total_amount):
# EXTENDS account.edi.xml.ubl_20
vals = super()._get_invoice_monetary_total_vals(invoice, taxes_vals, line_extension_amount, allowance_total_amount, charge_total_amount)
# In OIOUBL context, tax_exclusive_amount means "tax only"
vals['tax_exclusive_amount'] = taxes_vals['tax_amount_currency']
if invoice.currency_id.is_zero(vals['prepaid_amount']):
del vals['prepaid_amount']
return vals
def _get_invoice_payment_terms_vals_list(self, invoice):
# OVERRIDES 'account_edi_ubl_cii'
if not invoice.invoice_payment_term_id:
return []
sign = 1 if invoice.is_inbound(include_receipts=True) else -1
return [
{
'id': line.id,
'amount': sign * line.amount_currency,
'currency_name': line.currency_id.name,
'currency_dp': self._get_currency_decimal_places(line.currency_id),
'note_vals': [{'note_vals': [{'note': html2plaintext(invoice.invoice_payment_term_id.note)}]}],
'settlement_period': {
'start_date': invoice.invoice_date,
'end_date': line.date_maturity,
}
}
for line in invoice.line_ids.filtered(lambda line: line.display_type == 'payment_term').sorted('date_maturity')
]
def _get_tax_category_list(self, customer, supplier, taxes):
# EXTENDS account.edi.common
vals_list = super()._get_tax_category_list(customer, supplier, taxes)
for vals in vals_list:
# TaxCategory https://www.oioubl.info/Classes/en/TaxCategory.html
vals['id'] = UBL_TO_OIOUBL_TAX_CATEGORY_ID_MAPPING.get(vals['id'])
vals['id_attrs'] = {
'schemeID': 'urn:oioubl:id:taxcategoryid-1.3',
'schemeAgencyID': DANISH_NATIONAL_IT_AND_TELECOM_AGENCY_ID,
}
vals['tax_scheme_vals']['id_attrs'] = {'schemeID': 'urn:oioubl:id:taxschemeid-1.5'}
vals['tax_scheme_vals']['name'] = 'VAT'
# OIOUBL can't contain name for category
# /Invoice[1]/cac:InvoiceLine[1]/cac:Item[1]/cac:ClassifiedTaxCategory[1]
# [W-LIB230] Name should only be used within NES profiles
# (cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
if 'name' in vals:
del vals['name']
return vals_list
def _get_document_type_code_vals(self, invoice, invoice_data):
# EXTENDS 'account_edi_ubl_cii
# http://www.datypic.com/sc/ubl20/e-cbc_DocumentTypeCode.html
vals = super()._get_document_type_code_vals(invoice, invoice_data)
vals['value'] = "380" if invoice.move_type == 'out_invoice' else "381"
vals['attrs']['listAgencyID'] = "6"
vals['attrs']['listID'] = "UN/ECE 1001"
return vals
def _export_invoice_constraints(self, invoice, vals):
# EXTENDS account.edi.xml.ubl_20
constraints = super()._export_invoice_constraints(invoice, vals)
for partner_type in ('supplier', 'customer'):
partner = vals[partner_type]
building_number = tools.street_split(partner.street).get('street_number')
if not building_number:
constraints[f"oioubl201_{partner_type}_building_number_required"] = \
_("The following partner's street number is missing: %s", partner.display_name)
if partner.country_code == "FR" and not partner.commercial_partner_id.company_registry:
constraints["oioubl201_company_registry_required_for_french_partner"] = \
_("The company registry is required for french partner: %s", partner.display_name)
constraints[f'oioubl201_{partner_type}_vat_required'] = self._check_required_fields(partner.commercial_partner_id, 'vat')
return constraints
def _get_currency_decimal_places(self, currency_id):
# OIOUBL needs the data to be formated to 2 decimals
return 2
@@ -0,0 +1,12 @@
from odoo import api, models
class AccountMove(models.Model):
_inherit = 'account.move'
@api.model
def _get_ubl_cii_builder_from_xml_tree(self, tree):
customization_id = tree.find('{*}CustomizationID')
if customization_id is not None and 'OIOUBL-2' in customization_id.text:
return self.env['account.edi.xml.oioubl_201']
return super()._get_ubl_cii_builder_from_xml_tree(tree)
@@ -0,0 +1,19 @@
from odoo import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
invoice_edi_format = fields.Selection(selection_add=[('oioubl_201', "Denmark (Oioubl)")])
def _get_edi_builder(self, invoice_edi_format):
# EXTENDS 'account_edi_ubl_cii'
if invoice_edi_format == 'oioubl_201':
return self.env['account.edi.xml.oioubl_201']
return super()._get_edi_builder(invoice_edi_format)
def _get_ubl_cii_formats_info(self):
# EXTENDS 'account_edi_ubl_cii'
formats_info = super()._get_ubl_cii_formats_info()
formats_info['oioubl_201'] = {'countries': ['DK']}
return formats_info
+1
View File
@@ -0,0 +1 @@
from . import test_xml_oioubl_dk
@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:sdt="urn:oasis:names:specification:ubl:schema:xsd:SpecializedDatatypes-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.0.xsd">
<!--
******************************************************************************************************************
OIOUBL Instance Documentation
title= ADVORD_01_01_00_Invoice_v2p1.xml
replaces= ADVORD_01_01_00_Invoice_v2p1.xml
publisher= "IT og Telestyrelsen"
Creator= "Finn Christensen"
created= 2006-09-08
modified= 2007-03-26
issued= 2007-03-26
conformsTo= OIOUBL_ScenarioPackage_ADVORD
description= "This document is produced as part of the OIOUBL Advanced Ordering procurement scenario package"
rights= "It can be used following the Common Creative Licence"
all terms derived from http://dublincore.org/documents/dcmi-terms/
For more information, see www.oioubl.dk or email oioubl@itst.dk
******************************************************************************************************************
-->
<!-- The following TestInstance process instruction is for customization usage. It indicates that the instance is for testing purposes -->
<?TestInstance ResponseTo="smtp:test@company.dk"
description= "apply your comment here"
?>
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeAgencyID="320" schemeID="urn:oioubl:id:profileid-1.1">Procurement-OrdSel-BilSim-1.0</cbc:ProfileID>
<cbc:ID>A00095678</cbc:ID>
<cbc:CopyIndicator>false</cbc:CopyIndicator>
<cbc:UUID>6E09886B-DC6E-439F-82D1-7CCAC7F4E3B3</cbc:UUID>
<cbc:IssueDate>2006-04-10</cbc:IssueDate>
<cbc:InvoiceTypeCode listAgencyID="320" listID="urn:oioubl:codelist:invoicetypecode-1.1">380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cbc:AccountingCost>5250124502</cbc:AccountingCost>
<cac:OrderReference>
<cbc:ID>5002701</cbc:ID>
<cbc:IssueDate>2006-04-01</cbc:IssueDate>
</cac:OrderReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK16356706</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="DK:CVR">DK16356706</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Krea Toys</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Leverandørvej</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Dyssegård</cbc:CityName>
<cbc:PostalZone>2870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356706</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Krea Toys</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356706</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>9876</cbc:ID>
<cbc:Name>Hugo Jensen</cbc:Name>
<cbc:Telephone>26532147</cbc:Telephone>
<cbc:ElectronicMail>Hugo@kt.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeAgencyID="9" schemeID="GLN">5798000416604</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GLN">5798000417777</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Myretuen</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Fredericiavej</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Helsingør</cbc:CityName>
<cbc:PostalZone>3000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356709</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Myretuen</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356709</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>1413</cbc:ID>
<cbc:Name>Lise Hansen</cbc:Name>
<cbc:Telephone>2653214</cbc:Telephone>
<cbc:ElectronicMail>Lise@mt.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2006-04-15</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2006-04-25</cbc:PaymentDueDate>
<cbc:PaymentChannelCode listAgencyID="320" listID="urn:oioubl:codelist:paymentchannelcode-1.1">DK:BANK</cbc:PaymentChannelCode>
<cac:PayeeFinancialAccount>
<cbc:ID>0005704966</cbc:ID>
<cbc:PaymentNote>A00095678</cbc:PaymentNote>
<cac:FinancialInstitutionBranch>
<cbc:ID>9544</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansID>1</cbc:PaymentMeansID>
<cbc:Amount currencyID="DKK">6250.00</cbc:Amount>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">5000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">5000.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">1250.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">6250.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">6250.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="EA">1.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">5000.00</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>1</cbc:LineID>
</cac:OrderLineReference>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">5000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>Fine toy</cbc:Description>
<cbc:Name>Fine toy</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GTIN">5712345780121</cbc:ID>
</cac:SellersItemIdentification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">5000.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
<cbc:OrderableUnitFactorRate>1</cbc:OrderableUnitFactorRate>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,200 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-2" xmlns:sdt="urn:oasis:names:specification:ubl:schema:xsd:SpecializedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.0.xsd">
<!--
******************************************************************************************************************
OIOUBL Instance Documentation
title= ADVORD_02_02_00_Invoice_v2p1.xml
replaces= ADVORD_02_02_00_Invoice_v2p1.xml
publisher= "IT og Telestyrelsen"
Creator= "Finn Christensen"
created= 2006-09-08
modified= 2007-03-26
issued= 2007-03-26
conformsTo= OIOUBL_ScenarioPackage_ADVORD
description= "This document is produced as part of the OIOUBL Advanced Ordering procurement scenario package"
rights= "It can be used following the Common Creative Licence"
all terms derived from http://dublincore.org/documents/dcmi-terms/
For more information, see www.oioubl.dk or email oioubl@itst.dk
******************************************************************************************************************
-->
<!-- The following TestInstance process instruction is for customization usage. It indicates that the instance is for testing purposes -->
<?TestInstance
ResponseTo="smtp:test@company.dk"
description= "apply your comment here"
?>
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeAgencyID="320" schemeID="urn:oioubl:id:profileid-1.1">Procurement-OrdSel-BilSim-1.0</cbc:ProfileID>
<cbc:ID>A00095680</cbc:ID>
<cbc:CopyIndicator>false</cbc:CopyIndicator>
<cbc:UUID>6E09886B-DC6E-439F-82D1-7CCAC7F4E3B4</cbc:UUID>
<cbc:IssueDate>2006-04-10</cbc:IssueDate>
<cbc:InvoiceTypeCode listAgencyID="320" listID="urn:oioubl:codelist:invoicetypecode-1.1">380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cbc:AccountingCost>5250124502</cbc:AccountingCost>
<cac:OrderReference>
<cbc:ID>5002701</cbc:ID>
<cbc:UUID>6E09886B-DC6E-43EE-82D1-7CCAC7F4E3B1</cbc:UUID>
<cbc:IssueDate>2006-04-01</cbc:IssueDate>
</cac:OrderReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK16356706</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="DK:CVR">DK16356706</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Super Soft A/S</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Leverandørvej</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Dyssegård</cbc:CityName>
<cbc:PostalZone>2870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356706</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Super Soft A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356706</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>5567</cbc:ID>
<cbc:Name>Hugo Jensen</cbc:Name>
<cbc:Telephone>26532147</cbc:Telephone>
<cbc:ElectronicMail>Hugo@ss.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeAgencyID="9" schemeID="GLN">5798000416604</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GLN">5798000417777</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Myretuen</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Fredericiavej</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Helsingør</cbc:CityName>
<cbc:PostalZone>3000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356709</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Myretuen</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356709</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>1413</cbc:ID>
<cbc:Name>Lise Hansen</cbc:Name>
<cbc:Telephone>2653214</cbc:Telephone>
<cbc:ElectronicMail>Lise@mt.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2006-04-15</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2006-04-25</cbc:PaymentDueDate>
<cbc:PaymentChannelCode listAgencyID="320" listID="urn:oioubl:codelist:paymentchannelcode-1.1">DK:BANK</cbc:PaymentChannelCode>
<cac:PayeeFinancialAccount>
<cbc:ID>0005704966</cbc:ID>
<cbc:PaymentNote>A00095680</cbc:PaymentNote>
<cac:FinancialInstitutionBranch>
<cbc:ID>9544</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansID>1</cbc:PaymentMeansID>
<cbc:Amount currencyID="DKK">5000.00</cbc:Amount>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1000.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">4000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1000.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">4000.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">1000.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">5000.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">5000.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="EA">800.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">4000.00</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>1</cbc:LineID>
</cac:OrderLineReference>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1000.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">4000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1000.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>Superble</cbc:Description>
<cbc:Name>Superble</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GTIN">5712345780121</cbc:ID>
</cac:SellersItemIdentification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">5.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
<cbc:OrderableUnitFactorRate>1</cbc:OrderableUnitFactorRate>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,200 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-2" xmlns:sdt="urn:oasis:names:specification:ubl:schema:xsd:SpecializedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.0.xsd">
<!--
******************************************************************************************************************
OIOUBL Instance Documentation
title= ADVORD_03_03_00_Invoice_v2p1.xml
replaces= ADVORD_03_03_00_Invoice_v2p1.xml
publisher= "IT og Telestyrelsen"
Creator= "Finn Christensen"
created= 2006-09-08
modified= 2007-03-26
issued= 2007-03-26
conformsTo= OIOUBL_ScenarioPackage_ADVORD
description= "This document is produced as part of the OIOUBL Advanced Ordering procurement scenario package"
rights= "It can be used following the Common Creative Licence"
all terms derived from http://dublincore.org/documents/dcmi-terms/
For more information, see www.oioubl.dk or email oioubl@itst.dk
******************************************************************************************************************
-->
<!-- The following TestInstance process instruction is for customization usage. It indicates that the instance is for testing purposes -->
<?TestInstance
ResponseTo="smtp:test@company.dk"
description= "apply your comment here"
?>
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeAgencyID="320" schemeID="urn:oioubl:id:profileid-1.1">Procurement-OrdAdvR-BilSim-1.0</cbc:ProfileID>
<cbc:ID>A00095678</cbc:ID>
<cbc:CopyIndicator>false</cbc:CopyIndicator>
<cbc:UUID>6E09886B-DC6E-439F-82D1-7CCAC7F4E3B3</cbc:UUID>
<cbc:IssueDate>2006-04-10</cbc:IssueDate>
<cbc:InvoiceTypeCode listAgencyID="320" listID="urn:oioubl:codelist:invoicetypecode-1.1">380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cbc:AccountingCost>5250124502</cbc:AccountingCost>
<cac:OrderReference>
<cbc:ID>5002701</cbc:ID>
<cbc:UUID>6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1</cbc:UUID>
<cbc:IssueDate>2006-04-01</cbc:IssueDate>
</cac:OrderReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK16356706</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="DK:CVR">DK16356706</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>PricewaterhouseCoopers</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Strandvejen</cbc:StreetName>
<cbc:BuildingNumber>44</cbc:BuildingNumber>
<cbc:CityName>Hellerup</cbc:CityName>
<cbc:PostalZone>2900</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356706</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>PricewaterhouseCoopers</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356706</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>8149</cbc:ID>
<cbc:Name>Peter Skovborg</cbc:Name>
<cbc:Telephone>26532147</cbc:Telephone>
<cbc:ElectronicMail>Peter@pwc.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeAgencyID="9" schemeID="GLN">5798000416604</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GLN">5798000416642</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>IT- og Telestyrelsen</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Holsteinsgade</cbc:StreetName>
<cbc:BuildingNumber>300</cbc:BuildingNumber>
<cbc:CityName>København Ø</cbc:CityName>
<cbc:PostalZone>2100</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356709</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>IT- og Telestyrelsen</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356709</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>90015</cbc:ID>
<cbc:Name>Lasse Jensen</cbc:Name>
<cbc:Telephone>2653214</cbc:Telephone>
<cbc:ElectronicMail>Lasse@itst.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2006-04-15</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2006-04-25</cbc:PaymentDueDate>
<cbc:PaymentChannelCode listAgencyID="320" listID="urn:oioubl:codelist:paymentchannelcode-1.1">DK:BANK</cbc:PaymentChannelCode>
<cac:PayeeFinancialAccount>
<cbc:ID>0005704966</cbc:ID>
<cbc:PaymentNote>A00095678</cbc:PaymentNote>
<cac:FinancialInstitutionBranch>
<cbc:ID>9544</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansID>1</cbc:PaymentMeansID>
<cbc:Amount currencyID="DKK">6250.00</cbc:Amount>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">5000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">5000.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">1250.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">6250.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">6250.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="EA">1.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">5000.00</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>1</cbc:LineID>
</cac:OrderLineReference>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">5000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>Konsulentrapport</cbc:Description>
<cbc:Name>Konsulentrapport</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID schemeID="n/a">n/a</cbc:ID>
</cac:SellersItemIdentification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">5000.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
<cbc:OrderableUnitFactorRate>1</cbc:OrderableUnitFactorRate>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-2" xmlns:sdt="urn:oasis:names:specification:ubl:schema:xsd:SpecializedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.0.xsd">
<!--
******************************************************************************************************************
OIOUBL Instance Documentation
title= BASPRO_01_01_00_Invoice_v2p1.xml
replaces= BASPRO_01_01_00_Invoice_v2p1.xml
publisher= "IT og Telestyrelsen"
Creator= "Finn Christensen"
created= 2006-09-08
modified= 2007-03-26
issued= 2007-03-26
conformsTo= OIOUBL_ScenarioPackage_BASPRO
description= "This document is produced as part of the OIOUBL Basic procurement scenario package"
rights= "It can be used following the Common Creative Licence"
all terms derived from http://dublincore.org/documents/dcmi-terms/
For more information, see www.oioubl.dk or email oioubl@itst.dk
******************************************************************************************************************
-->
<!-- The following TestInstance process instruction is for customization usage. It indicates that the instance is for testing purposes -->
<?TestInstance
ResponseTo="smtp:test@company.dk"
description= "apply your comment here"
?>
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeAgencyID="320" schemeID="urn:oioubl:id:profileid-1.1">Procurement-OrdSimR-BilSim-1.0</cbc:ProfileID>
<cbc:ID>A00095678</cbc:ID>
<cbc:CopyIndicator>false</cbc:CopyIndicator>
<cbc:UUID>9756b4d0-8815-1029-857a-e388fe63f399</cbc:UUID>
<cbc:IssueDate>2005-11-20</cbc:IssueDate>
<cbc:InvoiceTypeCode listAgencyID="320" listID="urn:oioubl:codelist:invoicetypecode-1.1">380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cbc:AccountingCost>5250124502</cbc:AccountingCost>
<cac:OrderReference>
<cbc:ID>5002701</cbc:ID>
<cbc:UUID>9756b468-8815-1029-857a-e388fe63f399</cbc:UUID>
<cbc:IssueDate>2005-11-01</cbc:IssueDate>
</cac:OrderReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK16356706</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="DK:CVR">DK16356706</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Tavleverandøren</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Leverandørvej</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Dyssegård</cbc:CityName>
<cbc:PostalZone>2870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID schemeID="DK:SE">DK16356706</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Tavleleverandøren</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356706</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>23456</cbc:ID>
<cbc:Name>Hugo Jensen</cbc:Name>
<cbc:Telephone>15812337</cbc:Telephone>
<cbc:ElectronicMail>Hugo@tavl.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeAgencyID="9" schemeID="GLN">5798000416604</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GLN">5798000416604</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Den Lille Skole</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Fredericiavej</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Helsingør</cbc:CityName>
<cbc:PostalZone>3000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Den Lille Skole</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK16356709</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>7778</cbc:ID>
<cbc:Name>Hans Hansen</cbc:Name>
<cbc:Telephone>26532147</cbc:Telephone>
<cbc:ElectronicMail>Hans@dls.dk</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2005-11-15</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2005-11-25</cbc:PaymentDueDate>
<cbc:PaymentChannelCode listAgencyID="320" listID="urn:oioubl:codelist:paymentchannelcode-1.1">DK:BANK</cbc:PaymentChannelCode>
<cac:PayeeFinancialAccount>
<cbc:ID>1234567890</cbc:ID>
<cbc:PaymentNote>A00095678</cbc:PaymentNote>
<cac:FinancialInstitutionBranch>
<cbc:ID>1234</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>1</cbc:ID>
<cbc:PaymentMeansID>1</cbc:PaymentMeansID>
<cbc:Amount currencyID="DKK">6312.50</cbc:Amount>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1262.50</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">5050.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID ="DKK">1262.50</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID ="DKK">5050.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID ="DKK">1262.50</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID ="DKK">6312.50</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID ="DKK">6312.50</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="EA">1.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">5000.00</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>1</cbc:LineID>
</cac:OrderLineReference>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">5000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">1250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>Hejsetavle</cbc:Description>
<cbc:Name>Hejsetavle</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GTIN">5712345780121</cbc:ID>
</cac:SellersItemIdentification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">5000.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
<cbc:OrderableUnitFactorRate>1</cbc:OrderableUnitFactorRate>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="EA">2.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">50.00</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>2</cbc:LineID>
</cac:OrderLineReference>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">12.50</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">50.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">12.50</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxcategoryid-1.1">StandardRated</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="320" schemeID="urn:oioubl:id:taxschemeid-1.1">63</cbc:ID>
<cbc:Name>Moms</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>Beslag</cbc:Description>
<cbc:Name>Beslag</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID schemeAgencyID="9" schemeID="GTIN">5712345780111</cbc:ID>
</cac:SellersItemIdentification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">25.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
<cbc:OrderableUnitFactorRate>1</cbc:OrderableUnitFactorRate>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,288 @@
<?xml version='1.0' encoding='UTF-8'?>
<Invoice xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeID="urn:oioubl:id:profileid-1.6" schemeAgencyID="320">Procurement-BilSim-1.0</cbc:ProfileID>
<cbc:ID>INV/2017/00001</cbc:ID>
<cbc:IssueDate>2017-01-01</cbc:IssueDate>
<cbc:InvoiceTypeCode listID="urn:oioubl:codelist:invoicetypecode-1.2" listAgencyID="320">380</cbc:InvoiceTypeCode>
<cbc:Note>test narration</cbc:Note>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cac:OrderReference>
<cbc:ID>ref_move</cbc:ID>
</cac:OrderReference>
<cac:AdditionalDocumentReference>
<cbc:ID>INV_2017_00001.pdf</cbc:ID>
<cbc:DocumentTypeCode listAgencyID="6" listID="UN/ECE 1001">380</cbc:DocumentTypeCode>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="INV_2017_00001.pdf">___ignore___</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK0239843188</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>company_1_data</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>company_1_data</cbc:Name>
<cbc:Telephone>+45 32 12 34 56</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="BE:VAT">BE0897223670</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>SUPER BELGIAN PARTNER</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue du Paradis,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Eghezee</cbc:CityName>
<cbc:PostalZone>6870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>BE</cbc:IdentificationCode>
<cbc:Name>Belgium</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>SUPER BELGIAN PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="ZZZ">BE0897223670</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue du Paradis,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Eghezee</cbc:CityName>
<cbc:PostalZone>6870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>BE</cbc:IdentificationCode>
<cbc:Name>Belgium</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SUPER BELGIAN PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="ZZZ">BE0897223670</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue du Paradis,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Eghezee</cbc:CityName>
<cbc:PostalZone>6870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>BE</cbc:IdentificationCode>
<cbc:Name>Belgium</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>SUPER BELGIAN PARTNER</cbc:Name>
<cbc:Telephone>061928374</cbc:Telephone>
<cbc:ElectronicMail>partner_b@tsointsoin</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cac:DeliveryLocation>
<cac:Address>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue du Paradis,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Eghezee</cbc:CityName>
<cbc:PostalZone>6870</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>BE</cbc:IdentificationCode>
<cbc:Name>Belgium</cbc:Name>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode name="credit transfer">1</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2017-02-28</cbc:PaymentDueDate>
<cbc:InstructionID>INV/2017/00001</cbc:InstructionID>
<cbc:PaymentID>INV/2017/00001</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>DK5000400440116243</cbc:ID>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Amount currencyID="DKK">450.00</cbc:Amount>
<cac:SettlementPeriod>
<cbc:StartDate>2017-01-01</cbc:StartDate>
<cbc:EndDate>2017-01-01</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:PaymentTerms>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Amount currencyID="DKK">1050.00</cbc:Amount>
<cac:SettlementPeriod>
<cbc:StartDate>2017-01-01</cbc:StartDate>
<cbc:EndDate>2017-02-28</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">1500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">0.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">1500.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">1500.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">500.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_a</cbc:Description>
<cbc:Name>product_a</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">500.0</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:InvoicedQuantity unitCode="DZN">1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_b</cbc:Description>
<cbc:Name>product_b</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">1000.0</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,287 @@
<?xml version='1.0' encoding='UTF-8'?>
<Invoice xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeID="urn:oioubl:id:profileid-1.6" schemeAgencyID="320">Procurement-BilSim-1.0</cbc:ProfileID>
<cbc:ID>INV/2017/00001</cbc:ID>
<cbc:IssueDate>2017-01-01</cbc:IssueDate>
<cbc:InvoiceTypeCode listID="urn:oioubl:codelist:invoicetypecode-1.2" listAgencyID="320">380</cbc:InvoiceTypeCode>
<cbc:Note>test narration</cbc:Note>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cac:OrderReference>
<cbc:ID>ref_move</cbc:ID>
</cac:OrderReference>
<cac:AdditionalDocumentReference>
<cbc:ID>INV_2017_00001.pdf</cbc:ID>
<cbc:DocumentTypeCode listAgencyID="6" listID="UN/ECE 1001">380</cbc:DocumentTypeCode>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="INV_2017_00001.pdf">___ignore___</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK12345674</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>company_1_data</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>company_1_data</cbc:Name>
<cbc:Telephone>+45 32 12 34 56</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="FR:SIRET">12356894100056</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>SUPER FRENCH PARTNER</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>SUPER FRENCH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="ZZZ">FR23334175221</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SUPER FRENCH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="ZZZ">FR23334175221</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>SUPER FRENCH PARTNER</cbc:Name>
<cbc:Telephone>+33 1 23 45 67 89</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cac:DeliveryLocation>
<cac:Address>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode name="credit transfer">1</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2017-02-28</cbc:PaymentDueDate>
<cbc:InstructionID>INV/2017/00001</cbc:InstructionID>
<cbc:PaymentID>INV/2017/00001</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>DK5000400440116243</cbc:ID>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Amount currencyID="DKK">450.00</cbc:Amount>
<cac:SettlementPeriod>
<cbc:StartDate>2017-01-01</cbc:StartDate>
<cbc:EndDate>2017-01-01</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:PaymentTerms>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Amount currencyID="DKK">1050.00</cbc:Amount>
<cac:SettlementPeriod>
<cbc:StartDate>2017-01-01</cbc:StartDate>
<cbc:EndDate>2017-02-28</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">1500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">0.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">1500.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">1500.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">500.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_a</cbc:Description>
<cbc:Name>product_a</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">500.0</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:InvoicedQuantity unitCode="DZN">1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_b</cbc:Description>
<cbc:Name>product_b</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">1000.0</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,278 @@
<?xml version='1.0' encoding='UTF-8'?>
<Invoice xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeID="urn:oioubl:id:profileid-1.6" schemeAgencyID="320">Procurement-BilSim-1.0</cbc:ProfileID>
<cbc:ID>INV/2017/00001</cbc:ID>
<cbc:IssueDate>2017-01-01</cbc:IssueDate>
<cbc:InvoiceTypeCode listID="urn:oioubl:codelist:invoicetypecode-1.2" listAgencyID="320">380</cbc:InvoiceTypeCode>
<cbc:Note>test narration</cbc:Note>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cac:OrderReference>
<cbc:ID>ref_move</cbc:ID>
</cac:OrderReference>
<cac:AdditionalDocumentReference>
<cbc:ID>INV_2017_00001.pdf</cbc:ID>
<cbc:DocumentTypeCode listAgencyID="6" listID="UN/ECE 1001">380</cbc:DocumentTypeCode>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="INV_2017_00001.pdf">___ignore___</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK12345674</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>company_1_data</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>company_1_data</cbc:Name>
<cbc:Telephone>+45 32 12 34 56</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK12345674</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>SUPER DANISH PARTNER</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>SUPER DANISH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SUPER DANISH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>SUPER DANISH PARTNER</cbc:Name>
<cbc:Telephone>+45 32 12 35 56</cbc:Telephone>
<cbc:ElectronicMail>partner_a@tsointsoin</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cac:DeliveryLocation>
<cac:Address>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode name="unknown">1</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2017-02-28</cbc:PaymentDueDate>
<cbc:InstructionID>INV/2017/00001</cbc:InstructionID>
<cbc:PaymentID>INV/2017/00001</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>DK5000400440116243</cbc:ID>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Amount currencyID="DKK">562.50</cbc:Amount>
<cac:SettlementPeriod>
<cbc:StartDate>2017-01-01</cbc:StartDate>
<cbc:EndDate>2017-01-01</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:PaymentTerms>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Amount currencyID="DKK">1312.50</cbc:Amount>
<cac:SettlementPeriod>
<cbc:StartDate>2017-01-01</cbc:StartDate>
<cbc:EndDate>2017-02-28</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">375.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">375.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">1500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">375.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">1875.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">1875.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">500.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">125.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">125.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_a</cbc:Description>
<cbc:Name>product_a</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">500.0</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:InvoicedQuantity unitCode="DZN">1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_b</cbc:Description>
<cbc:Name>product_b</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">1000.0</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
@@ -0,0 +1,245 @@
<?xml version='1.0' encoding='UTF-8'?>
<CreditNote xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeID="urn:oioubl:id:profileid-1.6" schemeAgencyID="320">Procurement-BilSim-1.0</cbc:ProfileID>
<cbc:ID>RINV/2017/00001</cbc:ID>
<cbc:IssueDate>2017-01-01</cbc:IssueDate>
<cbc:Note>test narration</cbc:Note>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cac:OrderReference>
<cbc:ID>ref_move</cbc:ID>
</cac:OrderReference>
<cac:AdditionalDocumentReference xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:ID>RINV_2017_00001.pdf</cbc:ID>
<cbc:DocumentTypeCode listAgencyID="6" listID="UN/ECE 1001">381</cbc:DocumentTypeCode>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="RINV_2017_00001.pdf">___ignore___</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK12345674</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>company_1_data</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>company_1_data</cbc:Name>
<cbc:Telephone>+45 32 12 34 56</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="FR:SIRET">12356894100056</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>SUPER FRENCH PARTNER</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>SUPER FRENCH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="ZZZ">FR23334175221</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SUPER FRENCH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="ZZZ">FR23334175221</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Rue Fabricy,</cbc:StreetName>
<cbc:BuildingNumber>16</cbc:BuildingNumber>
<cbc:CityName>Lille</cbc:CityName>
<cbc:PostalZone>59000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
<cbc:Name>France</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>SUPER FRENCH PARTNER</cbc:Name>
<cbc:Telephone>+33 1 23 45 67 89</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">1500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">0.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">1500.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">1500.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:CreditNoteLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:CreditedQuantity unitCode="C62">1.0</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">500.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_a</cbc:Description>
<cbc:Name>product_a</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">500.0</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
<cac:CreditNoteLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:CreditedQuantity unitCode="DZN">1.0</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_b</cbc:Description>
<cbc:Name>product_b</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">ReverseCharge</cbc:ID>
<cbc:Percent>0.0</cbc:Percent>
<cbc:TaxExemptionReasonCode>VATEX-EU-IC</cbc:TaxExemptionReasonCode>
<cbc:TaxExemptionReason>Intra-Community supply</cbc:TaxExemptionReason>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">1000.0</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
</CreditNote>
@@ -0,0 +1,236 @@
<?xml version='1.0' encoding='UTF-8'?>
<CreditNote xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2">
<cbc:UBLVersionID>2.0</cbc:UBLVersionID>
<cbc:CustomizationID>OIOUBL-2.01</cbc:CustomizationID>
<cbc:ProfileID schemeID="urn:oioubl:id:profileid-1.6" schemeAgencyID="320">Procurement-BilSim-1.0</cbc:ProfileID>
<cbc:ID>RINV/2017/00001</cbc:ID>
<cbc:IssueDate>2017-01-01</cbc:IssueDate>
<cbc:Note>test narration</cbc:Note>
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
<cac:OrderReference>
<cbc:ID>ref_move</cbc:ID>
</cac:OrderReference>
<cac:AdditionalDocumentReference xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:ID>RINV_2017_00001.pdf</cbc:ID>
<cbc:DocumentTypeCode listAgencyID="6" listID="UN/ECE 1001">381</cbc:DocumentTypeCode>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="RINV_2017_00001.pdf">___ignore___</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK12345674</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>company_1_data</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>company_1_data</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>10</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>company_1_data</cbc:Name>
<cbc:Telephone>+45 32 12 34 56</cbc:Telephone>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="DK:CVR">DK12345674</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>SUPER DANISH PARTNER</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:AddressFormatCode listAgencyID="320" listID="urn:oioubl:codelist:addressformatcode-1.1">
StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:RegistrationName>SUPER DANISH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:SE">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SUPER DANISH PARTNER</cbc:RegistrationName>
<cbc:CompanyID schemeID="DK:CVR">DK12345674</cbc:CompanyID>
<cac:RegistrationAddress>
<cbc:AddressFormatCode listAgencyID="320"
listID="urn:oioubl:codelist:addressformatcode-1.1">StructuredDK</cbc:AddressFormatCode>
<cbc:StreetName>Paradisæblevej,</cbc:StreetName>
<cbc:BuildingNumber>11</cbc:BuildingNumber>
<cbc:CityName>Aalborg</cbc:CityName>
<cbc:PostalZone>9430</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
<cbc:Name>Denmark</cbc:Name>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:ID>___ignore___</cbc:ID>
<cbc:Name>SUPER DANISH PARTNER</cbc:Name>
<cbc:Telephone>+45 32 12 35 56</cbc:Telephone>
<cbc:ElectronicMail>partner_a@tsointsoin</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">375.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">375.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="DKK">1500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="DKK">375.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="DKK">1875.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="DKK">1875.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:CreditNoteLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:CreditedQuantity unitCode="C62">1.0</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">500.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">125.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">125.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_a</cbc:Description>
<cbc:Name>product_a</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">500.0</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
<cac:CreditNoteLine>
<cbc:ID>___ignore___</cbc:ID>
<cbc:CreditedQuantity unitCode="DZN">1.0</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID="DKK">1000.00</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="DKK">250.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="DKK">1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="DKK">250.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>product_b</cbc:Description>
<cbc:Name>product_b</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID schemeID="urn:oioubl:id:taxcategoryid-1.3" schemeAgencyID="320">StandardRated</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeID="urn:oioubl:id:taxschemeid-1.5">VAT</cbc:ID>
<cbc:Name>VAT</cbc:Name>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="DKK">1000.0</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
</CreditNote>
@@ -0,0 +1,297 @@
from freezegun import freeze_time
from odoo import Command, fields
from odoo.addons.l10n_account_edi_ubl_cii_tests.tests.common import TestUBLCommon
from odoo.addons.account.tests.test_account_move_send import TestAccountMoveSendCommon
from odoo.exceptions import UserError
from odoo.tests import tagged
from odoo.tools import file_open
@tagged('post_install_l10n', 'post_install', '-at_install')
class TestUBLDK(TestUBLCommon, TestAccountMoveSendCommon):
@classmethod
@TestUBLCommon.setup_country('dk')
def setUpClass(cls):
super().setUpClass()
cls.company_data['company'].write({
'city': 'Aalborg',
'zip': '9430',
'vat': 'DK12345674',
'phone': '+45 32 12 34 56',
'street': 'Paradisæblevej, 10',
})
cls.env['res.partner.bank'].create({
'acc_type': 'iban',
'partner_id': cls.company_data['company'].partner_id.id,
'acc_number': 'DK5000400440116243',
})
cls.company_data['company'].partner_id.update({
'peppol_endpoint': False,
})
cls.partner_a.write({
'name': 'SUPER DANISH PARTNER',
'city': 'Aalborg',
'zip': '9430',
'vat': 'DK12345674',
'phone': '+45 32 12 35 56',
'street': 'Paradisæblevej, 11',
'country_id': cls.env.ref('base.dk').id,
'invoice_edi_format': 'oioubl_201',
'peppol_endpoint': False,
})
cls.partner_b.write({
'name': 'SUPER BELGIAN PARTNER',
'street': 'Rue du Paradis, 10',
'zip': '6870',
'city': 'Eghezee',
'country_id': cls.env.ref('base.be').id,
'phone': '061928374',
'vat': 'BE0897223670',
'invoice_edi_format': 'oioubl_201',
'peppol_endpoint': False,
})
cls.partner_c = cls.env["res.partner"].create({
'name': 'SUPER FRENCH PARTNER',
'street': 'Rue Fabricy, 16',
'zip': '59000',
'city': 'Lille',
'country_id': cls.env.ref('base.fr').id,
'phone': '+33 1 23 45 67 89',
'vat': 'FR23334175221',
'company_registry': '123 568 941 00056',
'invoice_edi_format': 'oioubl_201',
'peppol_endpoint': False,
})
cls.dk_local_sale_tax_1 = cls.env["account.chart.template"].ref('tax_s1y')
cls.dk_local_sale_tax_2 = cls.env["account.chart.template"].ref('tax_s1')
cls.dk_foreign_sale_tax_1 = cls.env["account.chart.template"].ref('tax_s0')
cls.dk_foreign_sale_tax_2 = cls.env["account.chart.template"].ref('tax_s7')
cls.dk_local_purchase_tax_goods = cls.env["account.chart.template"].ref('tax_k1')
def create_post_and_send_invoice(self, partner=None, move_type='out_invoice'):
if not partner:
partner = self.partner_a
if partner == self.partner_a:
# local dk taxes
tax_1, tax_2 = self.dk_local_sale_tax_1, self.dk_local_sale_tax_2
else:
# dk taxes for foreigners
tax_1, tax_2 = self.dk_foreign_sale_tax_1, self.dk_foreign_sale_tax_2
invoice = self.env["account.move"].create({
'move_type': move_type,
'partner_id': partner.id,
'partner_bank_id': self.env.company.partner_id.bank_ids[:1].id,
'invoice_payment_term_id': self.pay_terms_b.id,
'invoice_date': '2017-01-01',
'date': '2017-01-01',
'narration': 'test narration',
'ref': 'ref_move',
'invoice_line_ids': [
Command.create({
'product_id': self.product_a.id,
'quantity': 1.0,
'price_unit': 500.0,
'tax_ids': [Command.set(tax_1.ids)],
}),
Command.create({
'product_id': self.product_b.id,
'quantity': 1.0,
'price_unit': 1000.0,
'tax_ids': [Command.set(tax_2.ids)],
}),
],
})
invoice.action_post()
wizard = self.env['account.move.send.wizard'] \
.with_context(active_model=invoice._name, active_ids=invoice.ids) \
.create({})
wizard.action_send_and_print()
return invoice
#########
# EXPORT
#########
@freeze_time('2017-01-01')
def test_export_invoice_two_line_partner_dk(self):
invoice = self.create_post_and_send_invoice()
self.assertTrue(invoice.ubl_cii_xml_id)
self._assert_invoice_attachment(invoice.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_invoice_partner_dk.xml")
@freeze_time('2017-01-01')
def test_export_invoice_two_line_foreign_partner_be(self):
# Set peppol endpoint to have schemeID of 'GLN'
self.company_data['company'].partner_id.peppol_endpoint = '0239843188'
invoice = self.create_post_and_send_invoice(partner=self.partner_b)
self.assertTrue(invoice.ubl_cii_xml_id)
self._assert_invoice_attachment(invoice.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_invoice_foreign_partner_be.xml")
@freeze_time('2017-01-01')
def test_export_invoice_two_line_foreign_partner_fr(self):
invoice = self.create_post_and_send_invoice(partner=self.partner_c)
self.assertTrue(invoice.ubl_cii_xml_id)
self._assert_invoice_attachment(invoice.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_invoice_foreign_partner_fr.xml")
@freeze_time('2017-01-01')
def test_export_credit_note_two_line_partner_dk(self):
refund = self.create_post_and_send_invoice(move_type='out_refund')
self.assertTrue(refund.ubl_cii_xml_id)
self._assert_invoice_attachment(refund.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_refund_partner_dk.xml")
@freeze_time('2017-01-01')
def test_export_credit_note_two_line_partner_fr(self):
refund = self.create_post_and_send_invoice(partner=self.partner_c, move_type='out_refund')
self.assertTrue(refund.ubl_cii_xml_id)
self._assert_invoice_attachment(refund.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_refund_foreign_partner_fr.xml")
@freeze_time('2017-01-01')
def test_oioubl_export_should_still_be_valid_when_currency_has_more_precision_digit(self):
self.company_data['company'].currency_id.rounding = 0.001
invoice = self.create_post_and_send_invoice()
self.assertTrue(invoice.ubl_cii_xml_id)
self._assert_invoice_attachment(invoice.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_invoice_partner_dk.xml")
@freeze_time('2017-01-01')
def test_oioubl_export_should_raise_an_error_when_partner_building_number_is_missing(self):
self.partner_a.street = 'Paradisæblevej' # remove the street number from the address
with self.assertRaisesRegex(UserError, "The following partner's street number is missing"):
self.create_post_and_send_invoice()
@freeze_time('2017-01-01')
def test_oioubl_export_should_raise_an_error_when_company_building_number_is_missing(self):
self.env.company.partner_id.street = 'Paradisæblevej'
with self.assertRaisesRegex(UserError, "The following partner's street number is missing"):
self.create_post_and_send_invoice()
@freeze_time('2017-01-01')
def test_export_invoice_company_and_partner_without_country_code_prefix_in_vat(self):
self.company_data['company'].vat = '12345674'
self.company_data['company'].partner_id.peppol_endpoint = False
self.partner_a.write({
'vat': 'DK12345674',
'peppol_endpoint': False,
'invoice_edi_format': 'oioubl_201',
})
invoice = self.create_post_and_send_invoice()
self.assertTrue(invoice.ubl_cii_xml_id)
self._assert_invoice_attachment(invoice.ubl_cii_xml_id, xpaths=None, expected_file_path="from_odoo/oioubl_out_invoice_partner_dk.xml")
@freeze_time('2017-01-01')
def test_export_partner_fr_without_siret_should_raise_an_error(self):
self.partner_c.company_registry = False
self.partner_c.invoice_edi_format = 'oioubl_201'
with self.assertRaisesRegex(UserError, "The company registry is required for french partner:"):
self.create_post_and_send_invoice(partner=self.partner_c)
@freeze_time('2017-01-01')
def test_oioubl_export_partner_without_vat_number(self):
""" This test verifies that we can't export an OIOUBL file for a partner
who doesn't have a tax ID. It verifies that we receive a UserError
telling to the user that this field is missing.
"""
self.partner_b.vat = None
self.partner_b.invoice_edi_format = 'oioubl_201' # default format recomputes when vat is changed
with self.assertRaises(UserError) as exception:
self.create_post_and_send_invoice(partner=self.partner_b)
self.assertIn(f"The field '{self.partner_b._fields['vat'].string}' is required", exception.exception.args[0])
#########
# IMPORT
#########
def import_bill_xml_file_in_purchase_journal(self, file_path):
file_path = f"{self.test_module}/tests/test_files/{file_path}"
with file_open(file_path, 'rb') as file:
xml_attachment = self.env['ir.attachment'].create({
'mimetype': 'application/xml',
'name': 'test_invoice.xml',
'raw': file.read(),
})
purchase_journal = self.company_data["default_journal_purchase"]
invoice = purchase_journal._create_document_from_attachment(xml_attachment.id)
return invoice
@freeze_time('2017-01-01')
def test_oioubl_import_exemple_file_1(self):
file_name = 'external/ADVORD_01_01_00_Invoice_v2p1.xml'
bill = self.import_bill_xml_file_in_purchase_journal(file_name)
self.assertRecordValues(bill, ({
'ref': 'A00095678',
'invoice_date': fields.Date.from_string('2006-04-10'),
'amount_total': 6_250.00,
},))
self.assertRecordValues(bill.invoice_line_ids, ({
'name': 'Fine toy',
'quantity': 1,
'price_unit': 5_000.00,
'price_subtotal': 5_000.00,
'price_total': 6_250.00,
'tax_ids': self.dk_local_purchase_tax_goods.ids,
},))
@freeze_time('2017-01-01')
def test_oioubl_import_exemple_file_2(self):
file_name = 'external/ADVORD_02_02_00_Invoice_v2p1.xml'
bill = self.import_bill_xml_file_in_purchase_journal(file_name)
self.assertRecordValues(bill, ({
'ref': 'A00095680',
'invoice_date': fields.Date.from_string('2006-04-10'),
'amount_total': 5_000.00,
},))
self.assertRecordValues(bill.invoice_line_ids, ({
'name': 'Superble',
'quantity': 800,
'price_unit': 5.00,
'price_subtotal': 4_000.00,
'price_total': 5_000.00,
'tax_ids': self.dk_local_purchase_tax_goods.ids,
},))
@freeze_time('2017-01-01')
def test_oioubl_import_exemple_file_3(self):
file_name = 'external/ADVORD_03_03_00_Invoice_v2p1.xml'
bill = self.import_bill_xml_file_in_purchase_journal(file_name)
self.assertRecordValues(bill, ({
'ref': 'A00095678',
'invoice_date': fields.Date.from_string('2006-04-10'),
'amount_total': 6_250.00,
},))
self.assertRecordValues(bill.invoice_line_ids, ({
'name': 'Konsulentrapport',
'quantity': 1,
'price_unit': 5_000.00,
'price_subtotal': 5_000.00,
'price_total': 6_250.00,
'tax_ids': self.dk_local_purchase_tax_goods.ids,
},))
@freeze_time('2017-01-01')
def test_oioubl_import_exemple_file_4(self):
file_name = 'external/BASPRO_01_01_00_Invoice_v2p1.xml'
bill = self.import_bill_xml_file_in_purchase_journal(file_name)
self.assertRecordValues(bill, ({
'ref': 'A00095678',
'invoice_date': fields.Date.from_string('2005-11-20'),
'amount_total': 6_312.50,
},))
self.assertRecordValues(bill.invoice_line_ids, ({
'name': 'Hejsetavle',
'quantity': 1,
'price_unit': 5_000.00,
'price_subtotal': 5_000.00,
'price_total': 6_250.00,
'tax_ids': self.dk_local_purchase_tax_goods.ids,
}, {
'name': 'Beslag',
'quantity': 2,
'price_unit': 25.00,
'price_subtotal': 50.00,
'price_total': 62.50,
'tax_ids': self.dk_local_purchase_tax_goods.ids,
}))