Views: 5
UN/CEFACTにおけるCCBDAに基づくDocument Centricなメッセージ構築方式
2025-06-03
UN/CEFACTが策定した「Core Component Business Document Assembly (CCBDA)」に基づく文書組立て指針では、Document Centricなメッセージ構築方式において、*ASBIE に含まれる BBIE の取り扱い(制限・拡張)について明確なルールが定められています。
1. 用語整理
-
ABIE(Aggregate BIE): 複数のBBIEやASBIEを含む集約的情報エンティティ
-
BBIE(Basic BIE): 文字列や数値などの基本情報項目
-
ASBIE(Association BIE): 他のABIEとの関連付けを表す
-
MBIE/MBBIE/ASMBIE: 上記をDocument Centricメッセージ構築に特化したもの
2. 文書中心のメッセージ構築
The UN/CEFACT have published several Standard Messages in XML Schema those which are importing all the Reusable ABIEs of the published Core Component Library (CCL).
The Core Components Business Document Assembly (CCBDA) Technical Specification can be employed wherever business information is being shared or exchanged amongst and between enterprises, governmental agencies and/or other organizations in an open environment. This environment can be of a worldwide scope or restricted to a specific business context (such as an industry or region).
UN/CEFACTは、XMLスキーマでいくつかの標準メッセージを公開しており、それらは公開されたコアコンポーネントライブラリ(CCL)のすべての再利用可能なABIEをインポートしている。コア・コンポーネント・ビジネス・ドキュメント・アセンブリ(CCBDA)技術仕様は、オープンな環境で企業、政府機関、その他の組織の間でビジネス情報が共有、交換される場合に採用することができる。この環境は、世界的なものであっても、特定のビジネスコンテキスト(業界や地域など)に限定されたものであってもよい。The UN/CEFACT published message assemblies (MA) can be customized by user communities using the CCBDA methodology. This methodology can be applied on all message assemblies by the Document Centric (DC) or the Reference Data Model (RDM) approach.
UN/CEFACTの公開メッセージ・アセンブリ(MA)は、CCBDA手法を使用してユーザー・コミュニティによってカスタマイズすることができます。この手法は、ドキュメント・セントリック(DC)または参照データ・モデル(RDM)アプローチによって、すべてのメッセージ・アセンブリに適用することができます。Document Centric (DC) approach: A collection of information used within a specific business process, structured in such a way that it covers the business data exchange needs. DC message may be published for a specific document by a specific industry domain group, a specific local group or a specific user group using restricted BIEs according to the rules of CCBDA.
ドキュメントセントリック(DC)アプローチ: 特定のビジネスプロセス内で使用される情報の集まりで、ビジネスデータ交換のニーズをカバーするように構造化されている。DCメッセージは、CCBDAのルールに従って、特定の業界ドメイングループ、特定のローカルグループ、または制限されたBIEを使用する特定のユーザーグループによって、特定のドキュメントに対して発行される。Reference Data Model (RDM) approach: A collection of Reference Business Information Entities (Reference BIEs) structured in such a way that it covers the business data exchange needs within a specific domain which can be even further restricted by a particular industry group, a specific local group or a specific user group according to the rules of CCBDA. The main differences between the DC approach is that only Reference BIEs instead of Messages BIEs are in scope. The business needs are reflected by contextualizing Reference BIEs. This collection of Reference BIEs is also known as a “Context CCL” or “Contextualized subset of the CCL”. Regarding the message assembly the same CCBDA rules are being applied, but, as written, on the contextualized Reference BIEs instead of the Messages BIEs residing in the CCL.
参照データモデル(RDM)アプローチ: リファレンス・ビジネス・インフォメーション・エンティティ(リファレンスBIE)の集合で、特定のドメイン内のビジネスデータ交換ニーズをカバーするように構造化されており、CCBDAのルールに従って特定の業界グループ、特定のローカルグループ、特定のユーザーグループによってさらに制限することができる。DCアプローチとの主な違いは、メッセージBIEではなく参照BIEのみが対象であることです。ビジネスニーズは、参照BIEを文脈化することで反映されます。この参照BIEの集まりは、「コンテキストCCL」または「CCLのコンテキスト化されたサブセット」とも呼ばれる。メッセージのアセンブリに関しては、同じCCBDAルールが適用されますが、CCLに存在するメッセー ジBIEではなく、文脈化された参照BIEに適用されます。DeepLにて翻訳
4. Message Construction Approach
4.1.1 Document Centric Message construction step
(1) UN/CEFACT Standard Message can be used as a template for assembling a Document Centric Message.
(2) Select specific ABIEs in CCL used in the message accordance with the business process needs defined by the user group (a business domain or a local industry).
(3) Define MBIEs for the selected Aggregate Business Entities (ABIEs), Associated Business Information Entities (ASBIEs) and Basic Business Entities (BBIEs) according to the CCBDA rules.
(4) All the MBIE XML statements may be specified in Root schema module or Internal schema module according to the NDR rules.4.1.1 ドキュメントセントリック メッセージ構築ステップ
(1) UN/CEFACT 標準メッセージは、文書中心メッセージを構築するためのテンプレートとして使用できる。
(2)ユーザーグループ(ビジネスドメインまたはローカル産業)によって定義されたビジネスプロセスのニーズに従って、メッセージで使用されるCCLの特定のABIEを選択する。
(3) CCBDAルールに従って、選択されたビジネスエンティティ(ABIE)、関連ビジネス情報エンティティ(ASBIE)、基本ビジネスエンティティ(BBIE)のMBIEを定義する。
(4) すべての MBIE XML 記述は、NDR ルールに従って、ルートスキーマモジュールまたは内部スキーマモ ジュールに指定することができる。(DeepL翻訳)
section 4.1.1
3. ASBIEに含まれるBBIEの拡張・制限の可否
3.1. 制限(Restriction)は可能
以下のような制限(subsetting)は許可されています。
(1) Limitation rule for BBIEs and ASBIEs under the ABIE
CCBDA[R05]: An MBIE inherits its structure from the ABIE on which it is based. The set of properties of an MBIE may be a subset of the set of properties of the ABIE on which it is based.(1)ABIEにおけるBBIEとASBIEの制限規定
CCBDA[R05]: MBIE は、ベースとなる ABIE からその構造を継承する。MBIE のプロパティセットは、そのベースとなる ABIE のプロパティセットのサブセットであってもよい。(DeepL翻訳)
section 5.2.1
CCBDA[R11]: An MBIE property may be a restriction of its inherited ABIE property in any or all of the following ways:
a. A used optional property may be made mandatory.
b. An optional property may be not used.
c. A used optional or mandatory property may specify a lower number of maximum occurrences but not lower than the minimum occurrences.CCBDA[R11]: MBIE プロパティは、継承された ABIE プロパティの制限を、以下のいずれか、またはすべてで行うことができる:
a. 使用されている任意のプロパティを必須にすることができる。
b. 任意のプロパティを使用しない。
c. 使用された任意または必須のプロパティは、最大出現回数をより少なく指定することができるが、最小出現回数より少なく指定することはできない。(DeepL翻訳)
制限可能な例
– 任意項目(0..1)→ 必須項目(1..1):✓ 許可
– 任意項目の削除(非使用指定):✓ 許可
– 最大繰返し回数の削減(例:0..n → 0..1):✓ 許可(minOccurs 未満にはできない)
3.2. 拡張(Extension)は禁止
以下のような拡張行為は、Message Construction Guidelines for CCBDA v1.0 の規定により明確に禁止されています。
Following MBIEs are not allowed:
– Adding BBIEs and/or ASBIEs to the published ABIE.
– Expand occurrence for BBIE or ASBIE.
– Remove existing qDT specified for BBIE.
– Additional qDT for the BBIE.
– Change the order of ABIE properties.以下のMBIEは認められない。
– 公開された ABIE に BBIE および/または ASBIE を追加すること。
– BBIEまたはASBIEのオカレンスを拡張すること。
– BBIEに対して指定された既存のqDTを削除すること。
– BBIE に対するqDTの追加 。
– ABIE プロパティの順序を変更すること。(DeepL翻訳)
section 5.2.2
禁止される行為と理由
拡張内容 |
禁止理由 |
説明 |
既存ABIEにBBIEやASBIEを追加 |
標準定義の破壊 |
別ABIEとして新規作成する必要あり |
maxOccursの増加 |
相互運用性の崩壊 |
例:0..1 → 0..n は禁止 |
minOccursを1から0 |
相互運用性の崩壊 |
例:1..1 → 0..1 は禁止 |
Qualified Data Type (qDT) の変更・除去・追加 |
型の整合性喪失 |
qDTはCCLで定義されたまま使用すること |
ABIE内の要素順の変更 |
スキーマ互換性の破壊 |
定義順を維持すべきであり、順序の変更は禁止 |
3.3. 定義文の制限と継承
ABIE/BBIEの定義文(Definition)は、UN/CEFACT CCLで登録された内容をそのまま継承する必要があります。意味を拡張・変更することは許可されていません。
Users may restrict the definition as long as the original semantic meaning does not get lost. Respecting the original definition will enhance interoperability.
本来の意味が失われない限り、ユーザーは定義を制限することができる。元の定義を尊重することで、相互運用性が高まる。
(DeepL翻訳)
section 5.2
許容される変更
-
用語の注釈追加:✓可(例:日本の商習慣への補足など)
-
意味が変わる再定義:✗不可
-
定義文の置換:✗不可(CCTS原則違反)
4. XMLスキーマへの実装方針
Document Centric Approach では、構築されたMBIE(MABIE, MBBIE, ASMBIEなど)は、root schema module内に定義することが推奨されています。
Document Centric approach prefers those MBIEs, MBBIEs, ASMBIEs, MDTs are included in the root schema consisted depended MA and ASMAs instead of internal schema.
文書中心アプローチでは、MBIE、MBBIE、ASMBIE、MDTは、内部スキーマではなく、依存するMAとASMAで構成されるルートスキーマに含まれることが望ましい。
(DeepL翻訳)
section 5.3.2
5. Usage Rule による補足的制限
定義されたBBIEやASBIEに対して、Usage Rule(使用制約)を使って更なる意味づけや制限を行うことが可能です。
5.7 Facets for MBIEs
CCBDA[R26] If an MBIE contains any constraints then each constraint must contain one or more of the following:
• the text of the constraint
• a reference identifier to a constraint defined in an external list of constraints if applicable
• a code defining the type of the constraint condition
• in the case of structured constraints, a code indicating the constraint language in which the constraint is expressed
CCBDA[R27] An unstructured constraint shall have or refer to a free form text expression that fully details the business requirements that it is addressing.
CCBDA[R28] A structured constraint shall have or refer to a formal constraint language expression.5.7 MBIEのファセット
CCBDA[R26]MBIEに制約が含まれる場合、各制約は以下の1つ以上を含まなければならない:
– 制約のテキスト
– 外部の制約リストで定義された制約への参照識別子。
– 制約条件のタイプを定義するコード
– 構造化制約の場合、制約が表現される制約言語を示すコード。
CCBDA[R27]非構造化制約は、それが対処するビジネス要件を完全に詳述する自由形式のテキスト表現を持つか、またはそれを参照しなければならない。
CCBDA[R28]構造化制約は、正式な制約言語表現を持つか、またはそれを参照しなければならない。(DeepL翻訳)
注:構造化製薬とは、XPathによる条件指定やSchematronによる妥当性検証るpる定義
section 5.7
例1:返金や追加請求を指定するためにXPathの選択条件を使用する場合
追加請求金額は、次の条件指定を用いて定義する。
TradeAllowanceCharge[ChargeIndicator=true]/ActualAmount
例2:金額が「0以上であること」を制限したい場合
<sch:rule context="InvoiceLine/LineTotalAmount">
<sch:assert test=". >= 0">明細行の金額は正でなければならない。</sch:assert>
</sch:rule>
6. まとめ:拡張・制限可否一覧
拡張内容 |
可否 |
条件・備考 |
BBIEを削除(非使用) |
✅ 可 |
CCBDA[R05] に基づく |
BBIEを必須化 |
✅ 可 |
任意 → 必須(minOccurs 増加) |
BBIEの最大繰返し数を削減 |
✅ 可 |
maxOccurs 減少(min未満不可) |
BBIEの追加 |
❌ 不可 |
拡張禁止(別ABIEにする) |
BBIEの型(qDT)変更 |
❌ 不可 |
型の差し替え・追加も不可 |
項目順の変更 |
❌ 不可 |
ABIEの順序を変更してはならない |
定義文の置換 |
❌ 不可 |
意味の保持が必要 |
Usage Rule による制約追加 |
✅ 可 |
Schematronやテキスト可 |
ASBIE内のBBIEに対する変更は、「元の意味を保持した制限は許容されるが、構造の拡張は原則禁止」という明確なガイドラインのもとに運用されます。この原則に従うことで、業界や地域に適したカスタマイズを行いつつも、国際標準との互換性と相互運用性を確保できます。
7. 日本の消費税制度における CI_Trade_Tax の適用ルール
UN/CEFACTの CI_Trade_Tax モデルに基づき、日本のインボイス制度に適合する形での明細行および文書レベルでの税情報の使い分けを整理します。
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:33"
xmlns:ccts="urn:un:unece:uncefact:documentation:standard:CoreComponentsTechnicalSpecification:2"
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:33"
xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:33"
targetNamespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:33"
elementFormDefault="qualified" attributeFormDefault="unqualified" version="33.0">
<!-- ================================================================== -->
<!-- ===== Type Definition: CITradeTaxType ===== -->
<!-- ================================================================== -->
<xsd:complexType name="CITradeTaxType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005832</ccts:UniqueID>
<ccts:Acronym>ABIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Details</ccts:DictionaryEntryName>
<ccts:Definition>A Cross Industry (CI) trade related fiscal tax, duty or levy.</ccts:Definition>
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="CalculatedAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005833</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Calculated. Amount</ccts:DictionaryEntryName>
<ccts:Definition>A monetary value resulting from the calculation of this CI trade related tax, levy or duty.</ccts:Definition>
<ccts:Cardinality>0..n</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TypeCode" type="qdt:TaxTypeCodeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005834</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Type. Code</ccts:DictionaryEntryName>
<ccts:Definition>The code specifying the type of CI trade related tax, levy or duty, such as a code for a Value Added Tax (VAT).</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ExemptionReason" type="udt:TextType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005835</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Exemption Reason. Text</ccts:DictionaryEntryName>
<ccts:Definition>The reason, expressed as text, for exemption from this CI trade related tax, levy or duty.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CalculatedRate" type="udt:RateType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005836</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Calculated. Rate</ccts:DictionaryEntryName>
<ccts:Definition>The rate used to calculate the amount of this CI trade related tax, levy or duty.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="BasisAmount" type="udt:AmountType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005839</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Basis. Amount</ccts:DictionaryEntryName>
<ccts:Definition>A monetary value used as the basis on which this CI trade related tax, levy or duty is calculated.</ccts:Definition>
<ccts:Cardinality>0..n</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CategoryCode" type="qdt:TaxCategoryCodeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005841</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Category. Code</ccts:DictionaryEntryName>
<ccts:Definition>The code specifying the category to which this CI trade related tax, levy or duty applies, such as codes for "Exempt from Tax", "Standard Rate", "Free Export Item - Tax Not Charged" .</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CurrencyCode" type="qdt:CurrencyCodeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005842</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Currency. Code</ccts:DictionaryEntryName>
<ccts:Definition>The code specifying the currency for this CI trade related tax, levy or duty.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TaxPointDate" type="udt:DateType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005847</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Tax Point. Date</ccts:DictionaryEntryName>
<ccts:Definition>The date of the tax point when this CI trade related tax, levy or duty becomes applicable.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type" type="udt:TextType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005848</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Type. Text</ccts:DictionaryEntryName>
<ccts:Definition>The type, expressed as text, of this CI trade related tax, levy or duty.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CategoryName" type="udt:TextType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01005850</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Category Name. Text</ccts:DictionaryEntryName>
<ccts:Definition>A category name, expressed as text, of this CI trade related tax, levy or duty.</ccts:Definition>
<ccts:Cardinality>0..n</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DueDateTypeCode" type="qdt:TimeReferenceCodeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01006052</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Due Date Type. Code</ccts:DictionaryEntryName>
<ccts:Definition>The code specifying a type of due date for this CI trade tax.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="RateApplicablePercent" type="udt:PercentType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01007174</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Rate_ Applicable. Percent</ccts:DictionaryEntryName>
<ccts:Definition>The applicable rate of CI trade tax, expressed as a percentage.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GrandTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01013040</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Grand Total. Amount</ccts:DictionaryEntryName>
<ccts:Definition>The monetary value of the grand total of the basis plus tax for this CI trade tax.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="CalculationMethodCode" type="udt:CodeType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01013096</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Calculation Method. Code</ccts:DictionaryEntryName>
<ccts:Definition>The code specifying the method by which this CI trade related tax, levy or duty is calculated, such as codes for "tax calculated after line total summation", "tax calculated before line total summation", "tax back calculated based on grand total".</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
<ccts:IndustryContextValue>Cross Industry</ccts:IndustryContextValue>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="LocalTaxSystemID" type="udt:IDType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<ccts:UniqueID>UN01014650</ccts:UniqueID>
<ccts:Acronym>BBIE</ccts:Acronym>
<ccts:DictionaryEntryName>CI_ Trade_ Tax. Local Tax System. Identifier</ccts:DictionaryEntryName>
<ccts:Definition>The identifier of the local tax system for this CI trade tax.</ccts:Definition>
<ccts:Cardinality>0..1</ccts:Cardinality>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
element name |
UniqueID |
Acronym |
DictionaryEntryName |
Definition |
Cardinality |
CalculatedAmount |
UN01005833 |
BBIE |
CI_ Trade_ Tax. Calculated. Amount |
A monetary value resulting from the calculation of this CI trade related tax, levy or duty. |
0..n |
TypeCode |
UN01005834 |
BBIE |
CI_ Trade_ Tax. Type. Code |
The code specifying the type of CI trade related tax, levy or duty, such as a code for a Value Added Tax (VAT). |
0..1 |
CalculatedRate |
UN01005836 |
BBIE |
CI_ Trade_ Tax. Calculated. Rate |
The rate used to calculate the amount of this CI trade related tax, levy or duty. |
0..1 |
BasisAmount |
UN01005839 |
BBIE |
CI_ Trade_ Tax. Basis. Amount |
A monetary value used as the basis on which this CI trade related tax, levy or duty is calculated. |
0..n |
CategoryCode |
UN01005841 |
BBIE |
CI_ Trade_ Tax. Category. Code |
The code specifying the category to which this CI trade related tax, levy or duty applies, such as codes for “Exempt from Tax”, “Standard Rate”, “Free Export Item – Tax Not Charged” . |
0..1 |
CurrencyCode |
UN01005842 |
BBIE |
CI_ Trade_ Tax. Currency. Code |
The code specifying the currency for this CI trade related tax, levy or duty. |
0..1 |
ExemptionReasonCode |
UN01005845 |
BBIE |
CI_ Trade_ Tax. Exemption Reason. Code |
The code specifying a reason for exemption from this CI trade related tax, levy or duty. |
0..1 |
Type |
UN01005848 |
BBIE |
CI_ Trade_ Tax. Type. Text |
The type, expressed as text, of this CI trade related tax, levy or duty. |
0..1 |
CategoryName |
UN01005850 |
BBIE |
CI_ Trade_ Tax. Category Name. Text |
A category name, expressed as text, of this CI trade related tax, levy or duty. |
0..n |
DueDateTypeCode |
UN01006052 |
BBIE |
CI_ Trade_ Tax. Due Date Type. Code |
The code specifying a type of due date for this CI trade tax. |
0..1 |
RateApplicablePercent |
UN01007174 |
BBIE |
CI_ Trade_ Tax. Rate_ Applicable. Percent |
The applicable rate of CI trade tax, expressed as a percentage. |
0..1 |
GrandTotalAmount |
UN01013040 |
BBIE |
CI_ Trade_ Tax. Grand Total. Amount |
The monetary value of the grand total of the basis plus tax for this CI trade tax. |
0..1 |
CalculationMethodCode |
UN01013096 |
BBIE |
CI_ Trade_ Tax. Calculation Method. Code |
The code specifying the method by which this CI trade related tax, levy or duty is calculated, such as codes for “tax calculated after line total summation”, “tax calculated before line total summation”, “tax back calculated based on grand total”. |
0..1 |
LocalTaxSystemID |
UN01014650 |
BBIE |
CI_ Trade_ Tax. Local Tax System. Identifier |
The identifier of the local tax system for this CI trade tax. |
0..1 |
他省略 |
注1:Tax Type Codeは、qDTであり、その内容の変更は禁止されている。Qualified Data Typeは、公開されているライブラリから
<xsd:import namespace="urn:un:unece:uncefact:codelist:standard:UNECE:DutyTaxFeeTypeCode:D22B" schemaLocation="../../codelist/standard/UNECE_DutyTaxFeeTypeCode_D22B.xsd"/>
を指定して定義されるコード表のスキーマファイルを読み込むことが要請されます。
2023年版では、税タイプコードが定義されているのは、次のファイルでした。
15JUL23XMLSchemas-D23A\uncefact\codelist\standard\UNECE_DutyTaxFeeTypeCode_D22B.xsd
国連コード表のページは、
5153 Duty or tax or fee type name code
代表的なコードを次に示します。
VAT |
Value added tax |
A tax on domestic or imported goods applied to the value added at each stage in the production/distribution cycle. |
SWT |
Shifted wage tax |
Wage tax share of the invoice amount to be paid directly to the tax collector(s office). |
TAC |
Alcohol mark tax |
A tax levied based on the type of alcohol being obtained. |
GST |
Goods and services tax |
Tax levied on the final consumption of goods and services throughout the production and distribution chain. |
CAR |
Car tax |
A tax that is levied on the value of the automobile. |
OTH |
Other taxes |
Unspecified, miscellaneous tax charges. |
注2:Tax Category Codeは、qDTであり、その内容の変更は禁止されている。Qualified Data Typeは、公開されているライブラリから
<xsd:import namespace="urn:un:unece:uncefact:codelist:standard:UNECE:DutyTaxFeeTypeCode:D22B" schemaLocation="../../codelist/standard/UNECE_DutyorTaxorFeeCategoryCode_D22B.xsd"/>
を指定して定義されるコード表のスキーマファイルを読み込むことが要請されます。
2023年版では、税タイプコードが定義されているのは、次のファイルでした。
15JUL23XMLSchemas-D23A\uncefact\codelist\standard\UNECE_DutyorTaxorFeeCategoryCode_D22B.xsd
国連コード表のページは、
5305 Duty or tax or fee category code
次のコードはJP PINTでも使用されています。
S |
Standard rate |
Code specifying the standard rate. |
AA |
Lower rate |
Tax rate is lower than standard rate. |
E |
Exempt from tax |
Code specifying that taxes are not applicable. |
Z |
Zero rated goods |
Code specifying that the goods are at a zero rate. |
O |
Services outside scope of tax |
Code specifying that taxes are not applicable to the services. |
7.1. 適格請求書制度(インボイス制度)の基本原則
日本の消費税インボイス制度では、以下のような原則が定められている。
-
税額(計算結果)は文書レベルで記載し、明細行では禁止
-
税率は明細行での表示が必須
-
税率表示はパーセント(例:10%)とし、Rate型は文書レベルに限定
-
税区分(課税・非課税・免税等)は明細・文書両方で指定可能
7.2. 明細行レベルでの CI_Trade_Tax
明細行では、下記の属性のみ使用可能:
-
Category Code (税区分)(必須)
-
Type Code (税の種類)
-
Rate Applicable Percent(人が読む用の税率)
下記は使用禁止:
-
Calculated Amount (税額)
-
Rate (計算用税率)
-
Basis Amount(課税対象額)
-
Grand Total Amount
<!-- 文書レベルの税情報 -->
<CI_Trade_Tax>
<CalculatedAmount>200</CalculatedAmount>
<TypeCode>VAT</TypeCode>
<CalculatedRate>0.1</CalculatedRate>
<BasisAmount>2000</BasisAmount>
<CategoryCode>S</CategoryCode>
<GrandTotalAmount>2200</GrandTotalAmount>
</CI_Trade_Tax>
<!-- 明細行レベルの税情報(税込み) -->
<CI_Trade_Tax>
<TypeCode>VAT</TypeCode>
<CategoryCode>S</CategoryCode>
<RateApplicablePercent>10</RateApplicablePercent>
<GrandTotalAmount>2200</GrandTotalAmount>
</CI_Trade_Tax>
7.3. 文書レベルでの CI_Trade_Tax
文書レベルでは、課税区分ごとの合算情報を記載する。以下の属性が使用される:
-
Category Code(必須)
-
Rate(計算用の税率、Rate型)
-
Calculated Amount(税額)
-
Basis Amount(課税対象額)
-
Grand Total Amount(合計額)
-
Type Code
-
Calculation Method Code(任意)
-
Local Tax System Code(任意)
<CI_Trade_Tax>
<Category>Standard</Category>
<Rate>0.1</Rate> <!-- 計算用:10%を 0.1 として表示 -->
<Calculated>10000</Calculated> <!-- 税額 -->
<Basis>100000</Basis> <!-- 課税対象額 -->
<Type>VAT</Type>
</CI_Trade_Tax>
7.4. 使用制限ルール(バリデーション)
Schematron等による制約例:
<sch:rule context="Invoice/InvoiceLine/CI_Trade_Tax">
<sch:assert test="not(Calculated)">税額は明細行では使用できません。</sch:assert>
<sch:assert test="not(Rate)">計算用税率(Rate)は文書レベルに限ります。</sch:assert>
</sch:rule>
7.5. まとめ:使用可否一覧
属性名 |
明細行 |
文書レベル |
備考 |
Category Code |
✅ |
✅ |
税区分(必須) |
Type Code |
✅ |
✅ |
税種別(VAT:消費税、SWT:源泉徴収税) |
Rate_Applicable Percent |
✅ |
❌ |
表示用税率(明細) |
Rate |
❌ |
✅ |
計算用税率(文書) |
Calculated Amount |
❌ |
✅ |
税額(文書)注1 |
Basis Amount |
✅ |
✅ |
課税対象金額 注2 |
Grand Total Amount |
✅ |
✅ |
課税対象+税額 注2 |
Calculation Method Code |
❌ |
✅ |
補足用 |
Local Tax System Code |
❌ |
✅ |
補足用 |
注1:税額は明細行に記載されない。
注2:明細行には、税抜きと税込みの2種類のうちどちらかの金額が使用される。
日本の適格請求書制度の要件に沿って、CI_Trade_Tax は明細行では表示中心(区分・税率)に限定し、税額計算は文書レベルに集約する形で実装する必要があります。これにより、標準定義との整合性を維持しつつ、国内要件にも適合することが可能となります。
コメントを残す