Search Posts

Views: 374

デジタルインボイスの標準仕様(仕入明細書)(案)

JP PINT Version 1.0 『わが国の「デジタルインボイス」の標準仕様(適格請求書)』とどこがどのように違っているのか調査しました。

わが国の「デジタルインボイス」の標準仕様(仕入明細書)(案)
Figure 1. Peppol Authority Japan
Release notes for JP BIS Self Billing Invoice
Figure 2. Release notes for JP BIS Self Billing Invoice

残念ながら、『JP PINT 1.0 変更点』で指摘した問題点がそのまま残っています。

比較方法

JP BIS Self Billing Invoice
Figure 3. JP BIS Self Billing Invoice

ページ左下の Download resources ボタンを押下してダウンロードしたzip ファイルを解凍してJP PINT Version 1.0 からダウンロードしたzipファイルと比較します。
使用するツールは、20世紀から使用されているLinuxのシェルコマンド diff です。BIS仕様のページについては、画面をコピーしてテキストファイルを作成し、bis.txtとしました。pint-jp-sb-resources-dev/common/docs/bis_.txtは、比較のために一部の章の番号をJP PINTに合わせて変更しました。

diff -ur pint-jp-resources-dev/trn-invoice/codelist pint-jp-sb-resources-dev/trn-invoice/codelist > codelist_diff.log

diff pint-jp-resources-dev/trn-invoice/semantic-model.yaml pint-jp-sb-resources-dev/trn-invoice/semantic-model.yaml > semantic-model_diff_log

diff pint-jp-resources-dev/trn-invoice/syntax-binding.yaml pint-jp-sb-resources-dev/trn-invoice/syntax-binding.yaml > syntax-binding_diff_log

diff pint-jp-resources-dev/trn-invoice/schematron/PINT-jurisdiction-aligned-rules.sch pint-jp-sb-resources-dev/trn-invoice/schematron/PINT-jurisdiction-aligned-rules.sch > PINT-jurisdiction-aligned-rules_diff.log

diff pint-jp-resources-dev/trn-invoice/schematron/PINT-UBL-validation-preprocessed.sch pint-jp-sb-resources-dev/trn-invoice/schematron/PINT-UBL-validation-preprocessed.sch > PINT-UBL-validation-preprocessed_diff.log

diff pint-jp-resources-dev/common/docs/bis.txt pint-jp-sb-resources-dev/common/docs/bis_.txt > bis_diff.log

見出し構成

次は、ホームページからテキストをコピー&ペーストして作成した表です。

BIS Billing 3.0 JP PINT V 1.0 JP BIS Self Billing Invoice V 0.9

Table of Contents
Link to main site of documentation
Introduction to openPeppol and BIS
Document Structure
Scope
Audience
1. Benefits
2. Parties and roles
– 2.1. Parties
– 2.2. Roles
3. Business processes
– 3.1. General invoicing process
4. Invoice functionality
– 4.1. Accounting
– 4.2. Invoice verification
– 4.3. Auditing
– 4.4. VAT Reporting
– 4.5. Payment
– 4.6. Negative invoices and credit notes
5. Invoice and credit note business requirements
6. Semantic datatypes
– 6.1. Primitive types
– 6.2. Semantic data types
7. Value added tax (VAT)
– 7.1. Line VAT Information
– 7.2. Document level allowance or charge
– 7.3. VAT Breakdown
– 7.4. Invoice total VAT amount
8. Rounding
9. Calculation
– 9.1. Calculation of totals
– 9.2. Calculation on line level
– 9.3. Calculation of allowance/charge amount
– 9.4. Calculation of VAT
10. Examples of selected parts of the transaction
– 10.1. Parties
– 10.2. Delivery Details (Date and Location)
– 10.3. References
– 10.4. Preceding invoice references
– 10.5. Allowances and Charges
– 10.6. VAT accounting currency
– 10.7. Payment means information
– 10.8. Intrastat
– 10.9. Item information
– 10.10. Price information
– 10.11. Unit of measure
11. Code lists
– 11.1. Code lists for coded elements
– 11.2. Code lists for identifier schemes
12. Peppol Identifiers
– 12.1. Profiles and messages
– 12.2. Profile 01 – Billing
13. UBL schemas and namespaces
14. Validation
– 14.1. Validation Principles
15. Transaction validation rules
– 15.1. Peppol transaction business rules
– 15.2. EN 16931 transaction business rules
Appendix A: Restrictions on EN16931
– A.1. Restrictions for profile 01 – Billing
– A.2. Restrictions on the invoice and credit note transaction
– A.3. Restrictions on the supported processes
– A.4. Known Issues for profile 01 – Billing
Appendix B: Cross Industry Invoice
Appendix C: National rules
Appendix D: Syntax rules
Appendix E: Example files

Table of Contents
Link to main site of documentation
Introduction
Document Structure
Scope
Audience
Benefits
1. Business processes
– 1.1. Parties and roles
– 1.2. PINT Billing process
– 1.3. Invoice functionality
– 1.4. Credit notes and negative invoices
2. Local business process
– 2.1. Summarised invoice process
– 2.2. Negative invoices and credit notes
3. Business information
– 3.1. Parties
– 3.2. Delivery Details (Date and Location)
– 3.3. References and attachments
– 3.4. Allowances and Charges
– 3.5. Payment means information
– 3.6. Item information
– 3.7. Price information
– 3.8. Unit of measure
4. Tax information
– 4.1. Tax in accounting currency
– 4.2. Consumption Tax in Japan
5. Rules
– 5.1. Calculations
– 5.2. Rounding
– 5.3. Aligned calculations
6. Technical details
– 6.1. BIS Identifiers
– 6.2. Datatypes
– 6.3. UBL schemas and namespaces
– 6.4. Glossary

Table of Contents
Link to main site of documentation
Introduction
Document Structure
Scope
Audience
Benefits
1. Business processes
– 1.1. Parties and roles
– 1.2. PINT Billing process
– 1.3. Invoice functionality
– 1.4. Credit notes and negative invoices
– 1.5. Local business process

                      
2. Business information
– 2.1. Parties
– 2.2. Delivery Details (Date and Location)
– 2.3. References and attachments
– 2.4. Allowances and Charges
– 2.5. Payment means information
– 2.6. Item information
– 2.7. Price information
– 2.8. Unit of measure
3. Tax information
– 3.1. Tax in accounting currency
– 3.2. Consumption Tax in Japan
4. Rules
– 4.1. Calculations
– 4.2. Rounding
– 4.3. Aligned calculations
5. Technical details
– 5.1. BIS Identifiers
– 5.2. Datatypes
– 5.3. UBL schemas and namespaces
– 5.4. Glossary

BIS Billing 3.0 からJP PINTへの改定で仕様文書の大きな違いは、次のようなものです。

下記の BIS Billing 3.0 で提供されていた説明が、JP PINTでは削除されています。
* 11. Code list
* 14. Validation
* 15. Transaction validation rules
BIS Billing 3.0 Appendix で説明されていた技術的な内容がなくなり、XMLスキーマ検証やスキーマトロンの検証がどのような位置づけか分からなくなりました。PINTで導入されたShared, Aligned, Distinctの位置づけや技術的にどう処理すべきかなども記述されていません。
Code list や Validationについては、JP BIS Self Billing Invoice ページにCode list 及び Rulesのリンクがあると指摘されるかもしれませんが、BIS Billing 3.0 で記述されていたそれらがどういったものなのかという説明がなくなっており、結果の一覧だけとなっています。
参考:BIS Billing 3.0
11. Code lists
15. Transaction validation rules

JP PINT以降では、Examples of selected parts of the transaction で記述されていた説明が、Business information に再編されたことなど、かなり簡略な記述になりました。

JP PINT と JP BIS Self Billing Invoice では、次の違いがあります。
* 2. Local business process で説明されていた 2.1. Summarised invoice process および 2.2. Negative invoices and credit notes の説明が削除されたため、以降の章番号が繰り上げられています。
* 1.5. Local business process で『仕入明細書』が説明されています。記述内容が少なくても2. Local business process を残していたほうが比較が容易だったと思います。記述する内容がなければ「なし」でも良いので、比較可能な章の構成を維持していただきたかったと思います。

また、ValidationについてもBIS Billing 3.0では、次の図で明確に定義されていました。

validation

これらのルールが提供されているので、Conformant要件の規定も明確でした。

compliance BIS Billing
BIS Billing 3.0:

A message is considered compliant to this BIS if no fatal errors are detected when validating with the current validation artefacts.

A message is also considered compliant to this BIS if only warnings (and no fatal errors) are detected when validating with the current validation artefacts.

— Compliance to BIS

ところが、PINTでは、Syntax bindingの規定に従っていないXML要素が定義されていても warning メッセージが検出されませんので、つぎのような精神論になっています。このため、JP PINT 及び JP BIS Self Billing Invoice でも同様の精神論です。標準仕様であれば、客観的に判定できる基準を規定すべきだと思います。

compliance JP SB
JP BIS Self Billing Invoice:

Buyer (C1)
A buyer shall not send messages that are not compliant to the specification identified by the invoice specification identifier (ibt-024).

Sending Access Point (C2)
A sending access point (C2) shall upload the self-billing invoice to the network according to the Peppol service provider agreement.

Seller (C4)
A compliant receiver of a self-billing invoice shall handle the content of the self-billing invoice depending on their registered receiving capability.

If the invoice specification identifier (ibt-024) equals a registered receiving capabilty the seller shall handle the self-billing invoice according to the identified specification.

If the invoice specification identifier (ibt-024) is within a more general registered receiving capability the seller shall handle the self-billing invoice according to the stated receiving capability.

Receiving access point (C3)
A receiving access point shall transfer the self-billing invoice to the seller according to the Peppol service provider agreement.

— PINT compliance

客観的に complient かどうかが BIS Billing 3.0 では、validation artefacts (スキーマトロン)で検証することで判定できていましたが、PINTでは客観的に判定する術がありません。
C1 C2 が complientだと主張するメッセージを第3者が客観的に判定できる術がないのは問題ではないでしょうか。

こちらの記事『デジタルインボイスはBIS Billing 3.0拡張で』も併せてご確認ください。

POen PeppolでのPINTレビュー着手時に提供されていた次の文書を完成させていただきたいものです。

Peppol International Invoice model review – PINT
Created by Georg Birgisson
Last updated: Jul 19, 2020

PEPPOL International Invoicing Model wd06.docx

Documentationの違い

表題がPeppol International (PINT) model for Billing のまま変更されていませんが、JP BIS Self Billing Invoice model for Billingでしょうか。
なお、従来のJP PINTと同じ文章なのですが、表題の下に書かれている次の文章がどんなことを意図しているかお判りでしょうか。

Documentation:

The Peppol PINT Billing has been developed by the OpenPEPPOL AISBL Post Award Coordinating Community as a template for creating globally interoperable invoice specifications.

— JP PINT
Documentation (翻訳):

Peppol PINT Billing は、グローバルに相互運用可能な請求書仕様を作成するためのテンプレートとして、OpenPEPPOL AISBL Post Award Coordinating Community によって開発されました。

— JP PINT (翻訳)

仕様文書がテンプレートとはどういうことなのか、何所にも説明がないので意味不明ですが、Shared, Aligned, Distinct と関係づけた説明が必要と思います。

Introduction

次の記述が追加されています。

Introduction:

This document is mainly focusing on a self-billing invoice. However, it should be noted that some contents are not always necessary to understand the self-billing invoice.
To understand the contents appropriately, in this document, in principle, the word “invoice” or “invoicing” may be replaced with or read as the word “self-billing invoice” or “self-billing invoicing” respectively.
Furthermore, the word, for instance, “invoice receiver” or “invoice sender” may means “self-billing invoice sender” or “self-billing invoice receiver” respectively. In addition, “Supplier” or “Creditor” may be understood as a “self-billing invoice receiver” and “Customer” or “Debtor” may be understood as a “self-billing invoice sender”.
Moreover, regarding to PINT Billing process (1.2), the profile would be replaced with Self-billing(P12).

— JP BIS Self Billing Invoice
Introduction(翻訳):

この文書は、主に仕入明細書に焦点を当てています。 ただし、一部の内容は仕入明細書を理解するために必ずしも必要ではないことに注意してください。
内容を適切に理解するために、本書では、原則として、「請求書」または「請求書発行」という用語を、それぞれ「仕入明細書」または「仕入明細書発行」と読み替えたり、読み替えたりすることがあります。
さらに、例えば、「請求書受領者」または「請求書送付者」という用語は、それぞれ「仕入明細書送付者」または「仕入明細書受領者」を意味する場合がある。 さらに、「供給者」または「債権者」は「仕入明細書受領者」と理解される場合があり、「顧客」または「債務者」は「仕入明細書送付者」と理解される場合があります。
さらに、PINT Billing プロセス (1.2) に関しては、プロファイルは Self-billing (P12) に置き換えられます。

— JP BIS Self Billing Invoice(翻訳)

最後の文章のプロファイル(Profile)が、初見では意味不明です。 Self-billing (P12) は何所に記述されている何を参照しているのでしょうか。

1.2の内容を具体的に読み込むと、ここで言及されているプロファイル(Profile)とは、EN 16931-1 で規定されているBusiness processを意味しようとしていると思われます。
Terms and Definitions を明確に規定したうえで誤解されないように要求事項を記述することが標準仕様の記述ルールなのですが。P12のPは、Profileではなく、Business processの略です。きちんとEN 16931-1を読んだ上で記述しているのか心許ないところです。
お気づきの方は少ないと思いますが、最後の 5.4. Glossary で重要な用語についての定義が記載されています。
標準仕様書とするのであれば、ビジネス上の契約書と同様に文書の先頭で以降の文章で使用する用語を明確に定義しておいてそれを使用して、準拠すべき事項と推奨事項、許容事項を意識してかき分けるというのが標準仕様の書き方の基本です。 また、準拠している他の標準仕様があるのであればそれを参照文献として記載しなければいけません。

EN 16931-1 Electronic invoicing – Part 1: Semantic data model of the core elements of an electronic invoice

The core invoice model shall include elements that allow the trading parties to represent any invoice transaction according to the EU VAT directives and should support the following types of
business processes:
— P1: Invoicing of deliveries of goods and services against purchase orders, based on a
contract;
— P2: Invoicing deliveries of goods and services based on a contract;
— P3: Invoicing the delivery of an incidental purchase order;
— P4: Pre-payment;
— P5: Spot payment;
— P6: Payment in advance of delivery;
— P7: Invoices with references to a despatch advice;
— P8: Invoices with references to a despatch advice and a receiving advice;
— P9: Credit notes or invoices with negative amounts, issued for a variety of reasons including the return of empty packaging;
— P10: Corrective invoicing (cancellation/correction of an invoice);
— P11: Partial and final invoicing;
— P12: Self billing.
Other processes are not explicitly supported, but the core invoice model may still be applicable. In more complex or advanced processes, however, extensions to the information content of the core invoice model may be needed (see CEN/TR 16931-5).

— 5.2 Business process requirements supported

1.2. PINT Billing process の記述は、JP PINTから変更されていませんが、記載を『仕入明細書』に合わせて変更しないと誤解を招きかねません。この文書で規定する請求プロセスは、EN 16931-1 5.2 Business process requirements supported で規定されているビジネスプロセスのうちP12 Self billing『仕入明細書』だけなので、ここには、P12だけが記載されていないといけません。
また、冒頭の記述は、P12 Self billing『仕入明細書』では、請求書を作成し送付するのは買い手なので、”from the supplier to the customer”ではなく”from the customer to the supplier”ですから、この文章のまま訂正しないで理解しなさいというのは無理だと思います。

The invoicing process includes issuing and sending the invoice and the credit note from the supplier to the customer and the reception and handling of the same at the customer’s site.

— 1.2. PINT Billing process

1.5. Local business processにおけるSelf billing『仕入明細書』

JP PINT V1.0では一般的な請求について、そのビジネスプロセス図を 1.2. PINT Billing process のなかで記述したうえで、日本固有の 2.1. Summarised invoice process について 2. Local business process で記述していました。
JP BIS Self Billing Invoice では、1.2. PINT Billing process からビジネスプロセス図だけを削除し、1.5 Local business process で『仕入明細書』のビジネスプロセス図を説明しています。ここで記述しているので、2. Local business process の章が落とされたようです。

en sb
Figure 4. EN 16931-1 P12
jp sb
Figure 5. JP BIS Self Billing Invoice P12

EN 16931-1 の Figure 13 をそのまま引用しており、日本の仕入明細書では次の国税庁Q&A 問76 答で例示された確認が必要とされていますが、上記のビジネスプロセス図には含まれていません。
国税庁Q&A 問76 答 ② の手続きをOpen Peppolで提供するには、メッセージレベルの応答の利用が考えられます。
次の記事『 Peppol メッセージレベルの応答 』をご確認ください。

問76 仕入明細書の相手方への確認

Peppol PINT Billing がグローバルに相互運用可能な請求書仕様を作成するためのテンプレートとして定義しているものの中には、章の構成は含まれていないのでしょうか。
The Core Invoice Usage Specification (CIUS) and its use in PEPPOL で規定されている1EN 16931-1のCIUSとの関連が、PINTではどう変わったのか?
“extensions to the information content of the core invoice model may be needed (see CEN/TR 16931-5)”で規定されているCIUSの拡張方法の規定がPINTではどう変更されたのか?
欧州規格 EN 16931-1シリーズでは、
CEN/TR 16931-5 Electronic invoicing – Part 5: Guidelines on the use of sector or country extensions in conjunction with EN 16931-1, methodology to be applied in the real environment
CEN/TS 16931-7 Electronic invoicing – Part 7: Methodology for the development and use of EN 16931-1 compliant structured Core Invoice Usage Specifications
の標準仕様に従ってCIUSを拡張することとされています。
BIS Billing 3.0 は、こうした欧州規格に準拠して規定されていました。

BIS Billing 3 intro

標準仕様としての枠組みがPINTでは提供されていません。 こちらの記事 『Open PeppolのPINTは、国際標準ですか』をご確認願います。

3.2 Consumption Tax in Japan

Under the current system, “Self-billing” is also allowed. It is a billing arrangement between a supplier and a buyer, where the buyer, instead of the supplier, prepares the supplier’s Document (the information required are same as Document issued by a supplier) and sends it to the supplier to get confirmation. After getting the confirmation, the buyer can claim input tax credit by retaining the Document and an accounting book.

— JP PINT V1.0
4.2.4. Current Input Tax credit system

A buyer can claim input tax credit by retaining “self-billing invoice” instead of Document issued by a supplier. The information required for “self-billing invoice” are same as the Document issued by a supplier.

— JP BIS Self Billing Invoice V0.9
3.2.4. Current Input Tax credit system

“After getting the confirmation, the buyer can claim input tax credit by retaining the Document and an accounting book.” の箇所の記載が削除されています。『仕入明細書』では、仕入れ先からの内容確認を前提としていたと理解していましたが、JP BIS Self Billing Invoice V0.9 には 売り手からの confirmation のプロセスが含まれていません。仕事をデジタル化する上で必要なことを Open Peppolで完結できないのはいかがなものでしょうか。

Under the new method, “Self-billing” is allowed continuously. It may be used only if the seller is registered taxable businesses. The information required are same as a Qualified Invoice.

— JP PINT V1.0
4.2.5. New Input Tax credit system (Qualified Invoice Base method)

Under the new method, “Self-billing invoice” is allowed continuously. It may be used only if the seller is registered taxable businesses. The information required are same as a Qualified Invoice.

— JP BIS Self Billing Invoice V0.9
3.2.5. New Input Tax credit system (Qualified Invoice Base method)

なお、JP PINT 4.2.9. Qualified Invoice for return に対応する記述は、JP BIS Self Billing Invoice V0.9にはありません。仕入明細での適格返還請求書は対象としないようです。

4. Rules

文章上の変更はありません。
但し、後述するようにスキーマトロンで記述したルールのスクリプトに変更があります。

5.1.1. Profiles and messages

この箇所は、Semantic modelでは PROCESS CONTROL
A group of business terms providing information on the business process and rules applicable to the Invoice document.
の解説です。 表題をなぜ Profiles and messages としているのか理解に苦しむところです。
仕入明細に対応した値が新たに定義されました。

IBT-023 Business process type
Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way.
XPathで指定する対応先は、/ubl:Invoice / cbc:ProfileID です。

IBT-024 Specification identifier
An identification of the specification containing the total set of rules regarding semantic content, cardinalities and business rules to which the data contained in the instance document conforms.
XPathで指定する対応先は、/ubl:Invoice / cbc:CustomizationID です。

いきなりUBLの要素を記載する前に、Business termとの対応を説明していただきたいですね。

JP PINT Profile
Figure 6. JP PINT V1.0
UBL example of profile identifier

<cbc:CustomizationID>urn:fdc:peppol:jp:billing:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>

JP BIS Self Billing Invoice profile
Figure 7. JP BIS Self Billing Invoice
UBL example of profile identifier

<cbc:CustomizationID>urn:fdc:peppol:jp:selfbilling:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:selfbilling:01:1.0</cbc:ProfileID>

文字列中の billing が selfbilling に変更されました。

更新日時

JP PINT V1.0

Last updated 2022-10-25 00:35:54 UTC

JP BIS Self Billing Invoice

Last updated 2022-11-30 09:14:51 UTC

Semantic model 変更箇所

Download resourcesに含まれるyamlファイルに基づいてページが生成されています。yamlファイルを diff コマンドで比較しました。
下の表に変更箇所を示します。

JP PINT V 1.0

JP BIS Self Billing Invoice V 0.9

id: IBT-008
name: TAX point date code
definition: The code of the date when the TAX becomes accountable for the Seller and for the Buyer.

id: IBT-008
name: TAX point date code
definition: The code of the date when the VAT becomes accountable for the Seller and for the Buyer.

何故かこの箇所だけ VAT と記述されています。
その他変更箇所はありません。

Syntax binding 変更箇所

Download resourcesに含まれるyamlファイルに基づいてページが生成されていますので、yamlファイルを diff コマンドで比較しました。
下の表に変更箇所を示します。

Table 1. syntax-binding.yaml

JP PINT V 1.0

JP BIS Self Billing Invoice V 0.9

id: IBT-192
name: TAX category code for tax category tax amount in accounting currency
definition: Coded identification of a TAX category in the invoice accounting currency.
section: Aligned
cardinality: 1..1

id: IBT-192
name: TAX category code for tax category tax amount in accounting currency
definition: Coded identification of a TAX category in the invoice accounting currency.
section: Aligned
cardinality: 0..1

『仕入明細書』の TAX BREAKDOWN IN ACCOUNTING CURRENCY の下に定義されている IBT-192 TAX category code for tax category tax amount in accounting currency 会計通貨での課税分類コード が必須項目から任意項目に変更されています。

tax category code

また、下記でお分かりのように外貨建てのときには、課税対象の合計金額が記載されておらず、円建てでの税額の丸め計算金額が切り上げ切り捨ての範囲内かどうかの検証ができないのですが、いかがなものでしょうか。
こちらの記事『JP PINT Invoiceでの外貨建取引』をご確認ください。

taxbreakdown

Code list

Download resourcesに含まれる yaml ファイルに基づいてページが生成されていますので、ファイルを diff コマンドで比較しました。
下に diff で報告された変更箇所を示します。

  • Aligned Tax Category Codes

Identificationとnameが変更されていますが、コードの変更はありません。
diff の出力では、JP PINT から削除された行が – 『仕入明細』で追加された行が + でマークされています。

Aligned-TaxCategoryCodes.gcAligned-TaxCategoryCodes.yaml
diff -ur pint-jp-resources-dev/trn-invoice/codelist/Aligned-TaxCategoryCodes.yaml pint-jp-sb-resources-dev/trn-invoice/codelist/Aligned-TaxCategoryCodes.yaml
--- pint-jp-resources-dev/trn-invoice/codelist/Aligned-TaxCategoryCodes.yaml	2022-10-25 00:36:24
+++ pint-jp-sb-resources-dev/trn-invoice/codelist/Aligned-TaxCategoryCodes.yaml	2022-11-30 09:16:04
@@ -1,9 +1,9 @@
 metadata:
   title:
-    en: Aligned tax category codes
+    en: Tax category codes
   description:
     en: Codes specifying tax categories in jurisdictions.
-  identifier: AlignedTaxCat
+  identifier: TaxCat
   agency: UN/CEFACT
   language: en
   version:
  • Aligned Tax Exemption Codes

日本ではコードは使用しないので、その値は NA を記載します。
diff の出力では、JP PINT から削除された行が – 『仕入明細』で追加された行が + でマークされています。

Aligned-TaxExemptionCodes.yaml
diff -ur pint-jp-resources-dev/trn-invoice/codelist/Aligned-TaxExemptionCodes.yaml pint-jp-sb-resources-dev/trn-invoice/codelist/Aligned-TaxExemptionCodes.yaml
--- pint-jp-resources-dev/trn-invoice/codelist/Aligned-TaxExemptionCodes.yaml	2022-10-25 00:36:24
+++ pint-jp-sb-resources-dev/trn-invoice/codelist/Aligned-TaxExemptionCodes.yaml	2022-11-30 09:16:04
@@ -1,11 +1,11 @@
 metadata:
   title:
-    en: PINT tax exemption reason codes
-  identifier: PINTtaxEx
+    en: Tax exemption reason code list
+  identifier: TaxEx
   agency: CEF
   language: en
   version:
-    identifier: 2017
+    identifier: 2022
     status: published
 content:
 - id: NA
  • UNCL1001

389 Self-billed invoice が追加され、その他は削除されています
diff の出力では、JP PINT から削除された行が – 『仕入明細』で追加された行が + でマークされています。

UNCL1001-inv.yaml
diff -ur pint-jp-resources-dev/trn-invoice/codelist/UNCL1001-inv.yaml pint-jp-sb-resources-dev/trn-invoice/codelist/UNCL1001-sbinv.yaml
--- pint-jp-resources-dev/trn-invoice/codelist/UNCL1001-inv.yaml	2022-10-25 00:36:24
+++ pint-jp-sb-resources-dev/trn-invoice/codelist/UNCL1001-sbinv.yaml	2022-12-09 20:49:58
@@ -12,62 +12,11 @@
     agency: OpenPeppol AISBL
   version:
     identifier: D.17A
-    date: '2017-06-22'
+    date: 2017-06-22
     status: published
 content:
-- id: '80'
+- id: '389'
   name:
-    en: Debit note related to goods or services
+    en: Self-billed invoice
   description:
-    en: Debit information related to a transaction for goods or services to the relevant party.
-- id: '82'
-  name:
-    en: Metered services invoice
-  description:
-    en: Document/message claiming payment for the supply of metered services (e.g., gas, electricity, etc.) supplied to a fixed meter whose consumption is measured over a period of time.
-- id: '84'
-  name:
-    en: Debit note related to financial adjustments
-  description:
-    en: Document/message for providing debit information related to financial adjustments to the relevant party.
-- id: '380'
-  name:
-    en: Commercial invoice
-    nb: Kommersiell faktura
-  description:
-    en: "(1334) Document/message claiming payment for goods or services supplied under conditions agreed between seller and buyer."
-- id: '383'
-  name:
-    en: Debit note
-  description:
-    en: Document/message for providing debit information to the relevant party.
-- id: '386'
-  name:
-    en: Prepayment invoice
-  description:
-    en: An invoice to pay amounts for goods and services in advance; these amounts will be subtracted from the final invoice.
-- id: '393'
-  name:
-    en: Factored invoice
-  description:
-    en: Invoice assigned to a third party for collection.
-- id: '395'
-  name:
-    en: Consignment invoice
-  description:
-    en: Commercial invoice that covers a transaction other than one involving a sale.
-- id: '575'
-  name:
-    en: Insurer's invoice
-  description:
-    en: Document/message issued by an insurer specifying the cost of an insurance which has been effected and claiming payment therefore.
-- id: '623'
-  name:
-    en: Forwarder's invoice
-  description:
-    en: Invoice issued by a freight forwarder specifying services rendered and costs incurred and claiming payment therefore.
-- id: '780'
-  name:
-    en: Freight invoice
-  description:
-    en: Document/message issued by a transport operation specifying freight costs and charges incurred for a transport operation and stating conditions of payment.
+    en: An invoice the invoicee is producing instead of the seller.

Aligned rule

Download resourcesに含まれるスキーマトロンファイルを diff コマンドで比較しました。
下に diff で報告された変更箇所を示します。
diff の出力では、JP PINT から削除された行が < 『仕入明細』で追加された行が > でマークされています。

  • diff pint-jp-resources-dev/trn-invoice/schematron/PINT-jurisdiction-aligned-rules.sch pint-jp-sb-resources-dev/trn-invoice/schematron/PINT-jurisdiction-aligned-rules.sch > PINT-jurisdiction-aligned-rules_diff.log

<cbc:CustomizationID>及び<cbc:ProfileID>の値のなかの billing が selfbilling に変更されました。

PINT-jurisdiction-aligned-rules_diff.log
34,35c34,35
<       [aligned-ibrp-001-jp]-Specification identifier MUST start with the value 'urn:fdc:peppol:jp:billing:3.0'.
<       [aligned-ibrp-002-jp]-Business process MUST be in the format 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0'.
---
>       [aligned-ibrp-001-jp-sb]-Specification identifier MUST start with the value 'urn:fdc:peppol:jp:selfbilling:3.0'.
>       [aligned-ibrp-002-jp-sb]-Business process MUST be in the format 'urn:fdc:peppol.eu:2017:poacc:selfbilling:01:1.0'.

Shared rule

Download resourcesに含まれるスキーマトロンファイルを diff コマンドで比較しました。
下に diff で報告された変更箇所を示します。
diff の出力では、JP PINT から削除された行が < 『仕入明細』で追加された行が > でマークされています。
『仕入明細』では document type code に 389 以外の、380 などを指定するとエラーとなります。

  • diff pint-jp-resources-dev/trn-invoice/schematron/PINT-UBL-validation-preprocessed.sch pint-jp-sb-resources-dev/trn-invoice/schematron/PINT-UBL-validation-preprocessed.sch > PINT-UBL-validation-preprocessed_diff.log

PINT-UBL-validation-preprocessed_diff.log
1a2
>
337,339c338,341
<     
<       [ibr-cl-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
<     
---
>
>     
>       [ibr-cl-01-jp-sb]-The document type code MUST be coded by the self-billed invoice related code lists of UNTDID 1001.
>     

Example XML ファイル

JP PINT V1.0で提供されていた UBLファイルが JP BIS Self Billing Invoice V 0.9 では提供されていません。
仕入明細の例があるとより具体的な検討が可能なのですが。

ISO/TC 295/SG 1 Convener SAMBUICHI, Nobuyuki