A code specifying the functional type of the Invoice.
この文書のタイプを識別するコード。請求書の機能を特定するためのコード。


About

Syntax binding
ubl:Invoice / cbc:InvoiceTypeCode
Restricted Syntax Cardinality
1..1
Example
380
UBL 2.1
XPath
/ Invoice / cbc:InvoiceTypeCode
Occurrence
0..1
Datatype
cbc:CodeType
UBL Definition
A code signifying the type of the Invoice.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Invoice type code

請求書タイプコード
ID
ibt-003
Description
A code specifying the functional type of the Invoice.
この文書のタイプを識別するコード。請求書の機能を特定するためのコード。
Cardinality
Semantic datatype
Code

Code list(s)

UNCL1001-inv
Invoice type code (UNCL1001 subset)

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-004(fatal)
Unchanged
Same as 0.9.2
ibr-cl-01(fatal)
Changed Message
[ibr-cl-01]-The document type code (ibt-003) MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
context
cbc:InvoiceTypeCode |
cbc:CreditNoteTypeCode
test
(self::cbc:InvoiceTypeCode and
  (
    (
      not(contains(normalize-space(.), ' ')) and
      contains(' 80 82 84 380 383 386 393 395 575 623 780 ',
        concat(' ', normalize-space(.), ' '))))) or
(self::cbc:CreditNoteTypeCode and
  (
    (
      not(contains(normalize-space(.), ' ')) and
      contains(' 81 83 381 396 532 ',
        concat(' ', normalize-space(.), ' '))
    )
  )
)

VERSION 0.9.2 RULE
JP PINT 0.9.2 Shared rule
ibr-004(fatal)
Still valid
[ibr-004]-An Invoice MUST have an Invoice type code (ibt-003).
context
/ubl:Invoice |
/cn:CreditNote
test
(cbc:InvoiceTypeCode) !='' or
(cbc:CreditNoteTypeCode) !=''
Code list rule (Shared rule)
ibr-cl-01 (fatal)
[ibr-cl-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
Context
cbc:InvoiceTypeCode
Test
(self::cbc:InvoiceTypeCode and
  (
    (
      not(contains(normalize-space(.), ' ')) and
      contains(' 80 82 84 380 383 386 393 395 575 623 780 ',
        concat(' ', normalize-space(.), ' '))))) or
(self::cbc:CreditNoteTypeCode and
  (
    (
      not(contains(normalize-space(.), ' ')) and
      contains(' 81 83 381 396 532 ',
        concat(' ', normalize-space(.), ' '))
    )
  )
)

JP PINT 0.9 RULES (Obsoleted)
Shared Rule (0.9)
ibr-04(fatal)
[ibr-04]-An Invoice shall have an Invoice type code (ibt-003).
Context
/ubl:Invoice | /cn:CreditNote
Test
(cbc:InvoiceTypeCode) !='' or
(cbc:CreditNoteTypeCode) !=''
Rules for Peppol BIS 3.0 Billing rule
IS-R-001 (warning)
If seller is icelandic then invoice type should be 380 or 381 — Ef seljandi er íslenskur þá ætti gerð reiknings (BT-3) að vera sölureikningur (380) eða kreditreikningur (381).
context
ubl-creditnote:CreditNote[$SupplierCountry = 'IS'] |
ubl-invoice:Invoice[$SupplierCountry = 'IS']
test
(
  (
    not(contains(normalize-space(cbc:InvoiceTypeCode),' ')) and
    contains(' 380 381 ',
      oncat(' ',normalize-space(cbc:InvoiceTypeCode),' ')))) or
(
  (
    not(contains(normalize-space(cbc:CreditNoteTypeCode),' ')) and
    contains(' 380 381 ',
      oncat(' ',normalize-space(cbc:CreditNoteTypeCode),' ')
    )
  )
)
EN16931 model bound to UBL rule
BR-04 (fatal)
An Invoice shall have an Invoice type code (BT-3).
context
/ubl:Invoice |
/cn:CreditNote
test
(cbc:InvoiceTypeCode) !='' or
(cbc:CreditNoteTypeCode) !=''