Views: 202
JP PINT 解体新書2 適格請求書最小構成
Nobuyuki SAMBUICHI
ISO/TC295 Audit data services/SG1 Semantic model Convener
Peppol BIS Standard Invoice JP PINT 画面の左下にある Download resources ボタンに気をとめられる方は少ないかもしれませんが、このボタンでダウンロードされる resources.zip ファイルには、パッケージやサービスのJP PINT対応開発に役立ついくつかのファイルが含まれています。
今回の『解体新書』シリーズでは、いくつかのファイルの内容を確認しながらUBL 2.1に基づくJP PINTのXMLインスタンス文書がどのように定義されているのか紹介します。
-
Japan PINT Invoice UBL Example.xml JP PINT 解体新書1.a 文書レベル JP PINT 解体新書1.b 明細行レベル
-
Japan PINT Invoice UBL Example1-minimum.xml JP PINT 解体新書2 適格請求書最小構成
-
Japan PINT Invoice UBL Example2-TaxAcctCur.xml
-
Japan PINT Invoice UBL Example3-SumInv1.xml
-
Japan PINT Invoice UBL Example4-SumInv2.xml
-
Japan PINT Invoice UBL Example5-AllowanceCharge.xml JP PINT 解体新書3 返金及び追加請求 (Allowance & Charge)
-
Japan PINT Invoice UBL Example6-CorrInv.xml
-
Japan PINT Invoice UBL Example7-Return.Quan.ItPr.xml
-
Japan PINT Invoice UBL Example9-SumInv1 and O.xml
-
全般
JP PINT 解体新書4 デジタル自動処理と金額の検算ルール
JP PINT V1.0 正誤表
CEF eInvoicingに基づいたJP PINT1.0ルール検証環境とテスト
Japan PINT Invoice UBL Example.xmlをHTML変換表示
『EN 16931-1 Annnex A 電子インボイスの例』 には、欧州規格で紹介されているデジタルインボイスの記載例について紹介していますので併せてご覧ください。
ご参考:
当事務所提供 JP PINT実証研究ページ
(翻訳したセマンティックモデルやUBL2.1からの構文バインディングも含んでいます)
本シリーズは、システム開発者(プログラマー / システムエンジニア)を対象としており、読者がXMLスキーマを理解していることを前提として記述しています。また、XPathについても基本的な事項を理解されていると想定しています。
第2回目は、Japan PINT Invoice UBL Example1-minimum.xmlです。この文書は、適格請求書で要請されている記載事項を含む最小構成のデジタルインボイスです。
ご参考:
当事務所提供 JP PINT実証研究ページ
(翻訳したセマンティックモデルやUBL2.1からの構文バインディングも含んでいます)
1. 適格請求書の記載事項
適格請求書には、次の事項が記載されていることが必要です。
1. 適格請求書発行事業者の氏名又は名称及び登録番号
2. 課税資産の譲渡等を行った年月日
3. 課税資産の譲渡等に係る資産又は役務の内容(課税資産の譲渡等が軽減対象資産の譲渡等である場合には、資産の内容及び軽減対象資産の譲渡等である旨)
4. 課税資産の譲渡等の税抜価額又は税込価額を税率ごとに区分して合計した金額及び適用税率
5. 税率ごとに区分した消費税額等
6. 書類の交付を受ける事業者の氏名又は名称
消費税の仕入税額控除制度における適格請求書等保存方式に関するQ&A4 適格請求書の記載事項
2. JP PINT セマンティックモデル
適格請求書の記載事項1~6をJP PINT最小構成と対応させた表を次に示します。JP PINT V1.0は、適格請求書の記載事項を完備しています。
ID |
Business Term |
Card. |
Definition |
記載事項 |
IBT-001 |
Invoice number |
1..1 |
A unique identification of the Invoice. |
|
IBT-002 |
Invoice issue date |
1..1 |
The date when the Invoice was issued. |
|
IBT-003 |
Invoice type code |
1..1 |
A code specifying the functional type of the Invoice. |
380 |
IBT-005 |
Invoice currency code |
1..1 |
The currency in which all Invoice amounts are given, except for the Total TAX amount in accounting currency. |
JPY |
IBG-02 |
PROCESS CONTROL |
1..1 |
A group of business terms providing information on the business process and rules applicable to the Invoice document. |
|
IBT-023 |
• Business process type |
1..1 |
Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way. |
urn:fdc:peppol.eu:2017: poacc:billing:01:1.0 |
IBT-024 |
• Specification identifier |
1..1 |
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. |
urn:fdc:peppol:jp:billing:3.0 |
IBG-04 |
SELLER |
1..1 |
A group of business terms providing information about the Seller. |
|
IBT-027 |
• Seller name |
1..1 |
The full formal name by which the Seller is registered in the national registry of legal entities or as a Taxable person or otherwise trades as a person or persons. |
記載事項1 発行事業者の氏名又は名称 |
IBT-031 |
• Seller TAX identifier |
0..1 |
The Seller’s TAX identifier (also known as Seller TAX identification number). |
記載事項1 発行事業者の登録番号 |
IBT-034 |
• Seller electronic address |
1..1 |
Identifies the Seller’s electronic address to which the application level response to the invoice may be delivered. |
|
IBT-034-1 |
• • Scheme identifier |
1..1 |
The scheme identifier shall be chosen from a list to be maintained by the Connecting Europe Facility. |
|
IBG-05 |
• SELLER POSTAL ADDRESS |
1..1 |
A group of business terms providing information about the address of the Seller. |
|
IBT-040 |
• • Seller country code |
1..1 |
A code that identifies the country. |
|
IBG-07 |
BUYER |
1..1 |
A group of business terms providing information about the Buyer. |
|
IBT-044 |
• Buyer name |
1..1 |
The full name of the Buyer. |
記載事項6 書類の交付を受ける事業者の氏名又は名称 |
IBT-049 |
• Buyer electronic address |
1..1 |
Identifies the Buyer’s electronic address to which the invoice is delivered. |
|
IBT-049-1 |
• • Scheme identifier |
1..1 |
The scheme identifier shall be chosen from a list to be maintained by the Connecting Europe Facility. |
|
IBG-08 |
• BUYER POSTAL ADDRESS |
1..1 |
A group of business terms providing information about the postal address for the Buyer. |
|
IBT-055 |
• • Buyer country code |
1..1 |
A code that identifies the country. |
|
IBG-14 |
• INVOICING PERIOD |
0..1 |
A group of business terms providing information on the invoice period. |
|
IBT-073 |
• • Invoicing period start date |
0..1 |
The date when the Invoice period starts. |
|
IBT-074 |
• • Invoicing period end date |
0..1 |
The date when the Invoice period ends. |
|
IBG-22 |
DOCUMENT TOTALS |
1..1 |
A group of business terms providing the monetary totals for the Invoice. |
|
IBT-106 |
• Sum of Invoice line net amount |
1..1 |
Sum of all Invoice line net amounts in the Invoice. |
|
IBT-109 |
• Invoice total amount without TAX |
1..1 |
The total amount of the Invoice without TAX. |
|
IBT-110 |
• Invoice total TAX amount |
1..1 |
The total TAX amount for the Invoice. |
|
IBT-112 |
• Invoice total amount with TAX |
1..1 |
The total amount of the Invoice with tax. |
|
IBT-115 |
• Amount due for payment |
1..1 |
The outstanding amount that is requested to be paid. |
|
IBG-23 |
TAX BREAKDOWN |
1..n |
A group of business terms providing information about TAX breakdown by different categories, rates and exemption reason. |
|
IBT-116 |
• TAX category taxable amount |
1..1 |
Sum of all taxable amounts subject to a specific TAX category code and TAX category rate (if the TAX category rate is applicable). |
記載事項4 税率ごとに区分して合計した金額 |
IBT-117 |
• TAX category tax amount |
1..1 |
The total TAX amount for a given TAX category. |
記載事項5 税率ごとに区分した消費税額 |
IBT-118 |
• TAX category code |
1..1 |
Coded identification of a TAX category. |
|
IBT-119 |
• TAX category rate |
0..1 |
The TAX rate, represented as percentage that applies for the relevant TAX category. |
記載事項4,5 適用税率 |
IBG-25 |
INVOICE LINE |
1..n |
A group of business terms providing information on individual Invoice lines. |
|
IBT-126 |
• Invoice line identifier |
1..1 |
A unique identifier for the individual line within the Invoice. |
|
IBT-129 |
• Invoiced quantity |
1..1 |
The quantity of items (goods or services) that is charged in the Invoice line. |
|
IBT-130 |
• Invoiced quantity unit of measure code |
1..1 |
The unit of measure that applies to the invoiced quantity. |
|
IBT-131 |
• Invoice line net amount |
1..1 |
The total amount of the Invoice line (before tax). |
記載事項4 税抜価額 |
IBG-26 |
• INVOICE LINE PERIOD |
0..1 |
A group of business terms providing information about the period relevant for the Invoice line. |
|
IBT-134 |
• • Invoice line period start date |
0..1 |
The date when the Invoice period for this Invoice line starts. |
記載事項2 譲渡等を行った年月日 |
IBT-135 |
• • Invoice line period end date |
0..1 |
The date when the Invoice period for this Invoice line ends. |
記載事項2 譲渡等を行った年月日 |
IBG-29 |
• PRICE DETAILS |
1..1 |
A group of business terms providing information about the price applied for the goods and services invoiced on the Invoice line. |
|
IBT-146 |
• • Item net price |
1..1 |
The price of an item, exclusive of TAX, after subtracting item price discount. |
記載事項4 税抜価額 |
IBT-149 |
• • Item price base quantity |
0..1 |
The number of item units to which the price applies. |
|
IBT-150 |
• • Item price base quantity unit of measure code |
0..1 |
The unit of measure that applies to the Item price base quantity. |
|
IBG-30 |
• LINE TAX INFORMATION |
1..n |
A group of business terms providing information about the TAX applicable for the goods and services invoiced on the Invoice line. |
|
IBT-151 |
• • Invoiced item TAX category code |
1..1 |
The TAX category code for the invoiced item. |
記載事項3 軽減対象資産の譲渡等である旨 |
IBT-152 |
• • Invoiced item TAX rate |
0..1 |
The TAX rate, represented as percentage that applies to the invoiced item. |
記載事項4 税率 |
IBT-167 |
• • Tax Scheme |
0..1 |
A code indicating the type of tax |
|
IBG-31 |
• ITEM INFORMATION |
1..1 |
A group of business terms providing information about the goods and services invoiced. |
|
IBT-153 |
• • Item name |
1..1 |
A name for an item. |
記載事項3 資産又は役務の内容 |
3. UBL2.1での最小構成デジタルインボイスの例
<?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:un:unece:uncefact:documentation: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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- Japan common commercial invoice, example1-minimum --> <cbc:UBLVersionID>2.1</cbc:UBLVersionID> <cbc:CustomizationID>urn:fdc:peppol:jp:billing:3.0</cbc:CustomizationID> <!-- IBT-024 Specification identifier --> <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> <!-- IBT-023 Business process type --> <cbc:ID>156</cbc:ID> <!-- IBT-001 Invoice number --> <cbc:IssueDate>2023-10-24</cbc:IssueDate> <!-- IBT-002 Invoice issue date --> <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> <!-- IBT-003 Invoice type code --> <cbc:DocumentCurrencyCode>JPY</cbc:DocumentCurrencyCode> <!-- IBT-005 Invoice currency code --> <cac:InvoicePeriod> <!-- IBG-14 INVOICING PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-073 Invoicing period start date --> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-074 Invoicing period end date --> </cac:InvoicePeriod> <cac:AccountingSupplierParty> <!-- IBG-04 SELLER --> <cac:Party> <cbc:EndpointID schemeID="0188">1234567890123</cbc:EndpointID> <!-- IBT-034 Seller electronic address, IBT-034-1 Scheme identifier --> <cac:PostalAddress> <!-- IBG-05 SELLER POSTAL ADDRESS --> <cac:Country> <cbc:IdentificationCode>JP</cbc:IdentificationCode> <!-- IBT-040 Seller country code --> </cac:Country> </cac:PostalAddress> <cac:PartyTaxScheme> <cbc:CompanyID>T1234567890123</cbc:CompanyID> <!-- IBT-031 Seller TAX identifier 記載事項1 発行事業者の登録番号--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-031, qualifier --> </cac:TaxScheme> </cac:PartyTaxScheme> <cac:PartyLegalEntity> <cbc:RegistrationName>株式会社 〇〇商事</cbc:RegistrationName> <!-- IBT-027 Seller name 記載事項1 発行事業者の氏名又は名称--> </cac:PartyLegalEntity> </cac:Party> </cac:AccountingSupplierParty> <cac:AccountingCustomerParty> <!-- IBG-07 BUYER --> <cac:Party> <cbc:EndpointID schemeID="0188">3210987654321</cbc:EndpointID> <!-- IBT-049 Buyer electronic address, IBT-049-1 Scheme identifier --> <cac:PostalAddress> <!-- IBG-08 BUYER POSTAL ADDRESS --> <cac:Country> <cbc:IdentificationCode>JP</cbc:IdentificationCode> <!-- IBT-055 Buyer country code --> </cac:Country> </cac:PostalAddress> <cac:PartyLegalEntity> <cbc:RegistrationName>株式会社 〇〇物産</cbc:RegistrationName> <!-- IBT-044 Buyer name 記載事項6 書類の交付を受ける事業者の氏名又は名称--> </cac:PartyLegalEntity> </cac:Party> </cac:AccountingCustomerParty> <cac:TaxTotal> <cbc:TaxAmount currencyID="JPY">25250</cbc:TaxAmount> <!-- IBT-110 Invoice total TAX amount --> <cac:TaxSubtotal> <!-- IBG-23 TAX BREAKDOWN --> <cbc:TaxableAmount currencyID="JPY">252500</cbc:TaxableAmount> <!-- IBT-116 TAX category taxable amount 記載事項4 税率ごとに区分して合計した金額--> <cbc:TaxAmount currencyID="JPY">25250</cbc:TaxAmount> <!-- IBT-117 TAX category tax amount 記載事項5 税率ごとに区分した消費税額--> <cac:TaxCategory> <cbc:ID>S</cbc:ID> <!-- IBT-118 TAX category code --> <cbc:Percent>10</cbc:Percent> <!-- IBT-119 TAX category rate 記載事項4,5 適用税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-118, qualifier --> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> <cac:TaxSubtotal> <!-- IBG-23 TAX BREAKDOWN --> <cbc:TaxableAmount currencyID="JPY">3490</cbc:TaxableAmount> <!-- IBT-116 TAX category taxable amount 記載事項4 税率ごとに区分して合計した金額--> <cbc:TaxAmount currencyID="JPY">0</cbc:TaxAmount> <!-- IBT-117 TAX category tax amount 記載事項5 税率ごとに区分した消費税額--> <cac:TaxCategory> <cbc:ID>E</cbc:ID> <!-- IBT-118 TAX category code --> <cbc:Percent>0</cbc:Percent> <!-- IBT-119 TAX category rate 記載事項4,5 適用税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-118, qualifier --> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> <cac:LegalMonetaryTotal> <!-- IBG-22 DOCUMENT TOTALS --> <cbc:LineExtensionAmount currencyID="JPY">255990</cbc:LineExtensionAmount> <!-- IBT-106 Sum of Invoice line net amount --> <cbc:TaxExclusiveAmount currencyID="JPY">255990</cbc:TaxExclusiveAmount> <!-- IBT-109 Invoice total amount without TAX --> <cbc:TaxInclusiveAmount currencyID="JPY">281240</cbc:TaxInclusiveAmount> <!-- IBT-112 Invoice total amount with TAX --> <cbc:AllowanceTotalAmount currencyID="JPY">0</cbc:AllowanceTotalAmount> <!-- IBT-107 Sum of allowances on document level --> <cbc:ChargeTotalAmount currencyID="JPY">0</cbc:ChargeTotalAmount> <!-- IBT-108 Sum of charges on document level --> <cbc:PrepaidAmount currencyID="JPY">0</cbc:PrepaidAmount> <!-- IBT-113 Paid amount --> <cbc:PayableRoundingAmount currencyID="JPY">0</cbc:PayableRoundingAmount> <!-- IBT-114 Rounding amount --> <cbc:PayableAmount currencyID="JPY">281240</cbc:PayableAmount> <!-- IBT-115 Amount due for payment --> </cac:LegalMonetaryTotal> <cac:InvoiceLine> <!-- IBG-25 INVOICE LINE --> <cbc:ID>1</cbc:ID> <!-- IBT-126 Invoice line identifier --> <cbc:InvoicedQuantity unitCode="H87">5</cbc:InvoicedQuantity> <!-- IBT-129 Invoiced quantity, IBT-130 Invoiced quantity unit of measure code --> <cbc:LineExtensionAmount currencyID="JPY">250000</cbc:LineExtensionAmount> <!-- IBT-131 Invoice line net amount 記載事項4 税抜価額--> <cac:InvoicePeriod> <!-- IBG-26 INVOICE LINE PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-134 Invoice line period start date 記載事項2 譲渡等を行った年月日--> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-135 Invoice line period end date 記載事項2 譲渡等を行った年月日--> </cac:InvoicePeriod> <cac:Item> <!-- IBG-31 ITEM INFORMATION --> <cbc:Name>デスクチェア</cbc:Name> <!-- IBT-153 Item name 記載事項3 資産又は役務の内容--> <cac:ClassifiedTaxCategory> <!-- IBG-30 LINE TAX INFORMATION --> <cbc:ID>S</cbc:ID> <!-- IBT-151 Invoiced item TAX category code 記載事項3 軽減対象資産の譲渡等である旨--> <cbc:Percent>10</cbc:Percent> <!-- IBT-152 Invoiced item TAX rate 記載事項4 税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-167 Tax Scheme --> </cac:TaxScheme> </cac:ClassifiedTaxCategory> </cac:Item> <cac:Price> <!-- IBG-29 PRICE DETAILS --> <cbc:PriceAmount currencyID="JPY">50000</cbc:PriceAmount> <!-- IBT-146 Item net price 記載事項4 税抜価額--> <cbc:BaseQuantity unitCode="H87">1</cbc:BaseQuantity> <!-- IBT-149 Item price base quantity, IBT-150 Item price base quantity unit of measure code --> </cac:Price> </cac:InvoiceLine> <cac:InvoiceLine> <!-- IBG-25 INVOICE LINE --> <cbc:ID>2</cbc:ID> <!-- IBT-126 Invoice line identifier --> <cbc:InvoicedQuantity unitCode="H87">5</cbc:InvoicedQuantity> <!-- IBT-130 Invoiced quantity unit of measure code, IBT-129 Invoiced quantity --> <cbc:LineExtensionAmount currencyID="JPY">2500</cbc:LineExtensionAmount> <!-- IBT-131 Invoice line net amount 記載事項4 税抜価額--> <cac:InvoicePeriod> <!-- IBG-26 INVOICE LINE PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-134 Invoice line period start date 記載事項2 譲渡等を行った年月日--> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-135 Invoice line period end date 記載事項2 譲渡等を行った年月日--> </cac:InvoicePeriod> <cac:Item> <!-- IBG-31 ITEM INFORMATION --> <cbc:Name>コピー用紙(A4)</cbc:Name> <!-- IBT-153 Item name 記載事項3 資産又は役務の内容--> <cac:ClassifiedTaxCategory> <!-- IBG-30 LINE TAX INFORMATION --> <cbc:ID>S</cbc:ID> <!-- IBT-151 Invoiced item TAX category code 記載事項3 軽減対象資産の譲渡等である旨--> <cbc:Percent>10</cbc:Percent> <!-- IBT-152 Invoiced item TAX rate 記載事項4 税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-167 Tax Scheme --> </cac:TaxScheme> </cac:ClassifiedTaxCategory> <!-- IBG-32 ITEM ATTRIBUTES --> </cac:Item> <cac:Price> <!-- IBG-29 PRICE DETAILS --> <cbc:PriceAmount currencyID="JPY">500</cbc:PriceAmount> <!-- IBT-146 Item net price 記載事項4 税抜価額--> <cbc:BaseQuantity unitCode="H87">1</cbc:BaseQuantity> <!-- IBT-149 Item price base quantity, IBT-150 Item price base quantity unit of measure code --> </cac:Price> </cac:InvoiceLine> <cac:InvoiceLine> <!-- IBG-25 INVOICE LINE --> <cbc:ID>3</cbc:ID> <!-- IBT-126 Invoice line identifier --> <cbc:InvoicedQuantity unitCode="H87">10</cbc:InvoicedQuantity> <!-- IBT-130 Invoiced quantity unit of measure code, IBT-129 Invoiced quantity --> <cbc:LineExtensionAmount currencyID="JPY">3490</cbc:LineExtensionAmount> <!-- IBT-131 Invoice line net amount 記載事項4 税抜価額--> <cac:InvoicePeriod> <!-- IBG-26 INVOICE LINE PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-134 Invoice line period start date 記載事項2 譲渡等を行った年月日--> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-135 Invoice line period end date 記載事項2 譲渡等を行った年月日--> </cac:InvoicePeriod> <cac:Item> <!-- IBG-31 ITEM INFORMATION --> <cbc:Name>検定済教科書(算数)</cbc:Name> <!-- IBT-153 Item name 記載事項3 資産又は役務の内容--> <cac:ClassifiedTaxCategory> <!-- IBG-30 LINE TAX INFORMATION --> <cbc:ID>E</cbc:ID> <!-- IBT-151 Invoiced item TAX category code 記載事項3 軽減対象資産の譲渡等である旨--> <cbc:Percent>0</cbc:Percent> <!-- IBT-152 Invoiced item TAX rate 記載事項4 税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-167 Tax Scheme --> </cac:TaxScheme> </cac:ClassifiedTaxCategory> </cac:Item> <cac:Price> <!-- IBG-29 PRICE DETAILS --> <cbc:PriceAmount currencyID="JPY">349</cbc:PriceAmount> <!-- IBT-146 Item net price 記載事項4 税抜価額--> <cbc:BaseQuantity unitCode="H87">1</cbc:BaseQuantity> <!-- IBT-149 Item price base quantity, IBT-150 Item price base quantity unit of measure code --> </cac:Price> </cac:InvoiceLine> </Invoice>
a. cac:TaxScheme
次の箇所の cac:TaxScheme には、cbc:IDの値に’VAT’を指定します。
<cac:PartyTaxScheme> <cbc:CompanyID>T1234567890123</cbc:CompanyID> <!-- IBT-031 Seller TAX identifier 記載事項1 発行事業者の登録番号--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-031, qualifier --> </cac:TaxScheme> </cac:PartyTaxScheme>
<cac:TaxCategory> <cbc:ID>S</cbc:ID> <!-- IBT-118 TAX category code --> <cbc:Percent>10</cbc:Percent> <!-- IBT-119 TAX category rate 記載事項4,5 適用税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-118, qualifier --> </cac:TaxScheme> </cac:TaxCategory>
<cac:TaxCategory> <cbc:ID>E</cbc:ID> <!-- IBT-118 TAX category code --> <cbc:Percent>0</cbc:Percent> <!-- IBT-119 TAX category rate 記載事項4,5 適用税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-118, qualifier --> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal>
<cac:ClassifiedTaxCategory> <!-- IBG-30 LINE TAX INFORMATION --> <cbc:ID>S</cbc:ID> <!-- IBT-151 Invoiced item TAX category code 記載事項3 軽減対象資産の譲渡等である旨--> <cbc:Percent>10</cbc:Percent> <!-- IBT-152 Invoiced item TAX rate 記載事項4 税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-167 Tax Scheme --> </cac:TaxScheme> </cac:ClassifiedTaxCategory>
<cac:ClassifiedTaxCategory> <!-- IBG-30 LINE TAX INFORMATION --> <cbc:ID>S</cbc:ID> <!-- IBT-151 Invoiced item TAX category code 記載事項3 軽減対象資産の譲渡等である旨--> <cbc:Percent>10</cbc:Percent> <!-- IBT-152 Invoiced item TAX rate 記載事項4 税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-167 Tax Scheme --> </cac:TaxScheme> </cac:ClassifiedTaxCategory> <!-- IBG-32 ITEM ATTRIBUTES -->
<cac:ClassifiedTaxCategory> <!-- IBG-30 LINE TAX INFORMATION --> <cbc:ID>E</cbc:ID> <!-- IBT-151 Invoiced item TAX category code 記載事項3 軽減対象資産の譲渡等である旨--> <cbc:Percent>0</cbc:Percent> <!-- IBT-152 Invoiced item TAX rate 記載事項4 税率--> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <!-- IBT-167 Tax Scheme --> </cac:TaxScheme> </cac:ClassifiedTaxCategory>
b. 記載事項2 譲渡等を行った年月日
明細行レベルで記載します。セマンティックモデルでは任意項目の定義ですが、記載事項2 譲渡等を行った年月日の記載が必要です。単独の日付で日付の期間がない場合でもcbc:StartDate及びcbc:EndDateの2つの項目とも記載します。文書レベルの請求期間と明細行レベルの譲渡等を行った年月日の関係に留意してください。
<cac:InvoicePeriod> <!-- IBG-26 INVOICE LINE PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-134 Invoice line period start date 記載事項2 譲渡等を行った年月日--> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-135 Invoice line period end date 記載事項2 譲渡等を行った年月日--> </cac:InvoicePeriod>
<cac:InvoicePeriod> <!-- IBG-26 INVOICE LINE PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-134 Invoice line period start date 記載事項2 譲渡等を行った年月日--> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-135 Invoice line period end date 記載事項2 譲渡等を行った年月日--> </cac:InvoicePeriod>
<cac:InvoicePeriod> <!-- IBG-26 INVOICE LINE PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-134 Invoice line period start date 記載事項2 譲渡等を行った年月日--> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-135 Invoice line period end date 記載事項2 譲渡等を行った年月日--> </cac:InvoicePeriod>
<cac:InvoicePeriod> <!-- IBG-14 INVOICING PERIOD --> <cbc:StartDate>2023-10-18</cbc:StartDate> <!-- IBT-073 Invoicing period start date --> <cbc:EndDate>2023-10-18</cbc:EndDate> <!-- IBT-074 Invoicing period end date --> </cac:InvoicePeriod>
注意事項
JP PINT v1.0の構文バインディングで現れない要素 <cbc:UBLVersionID>2.1</cbc:UBLVersionID> が定義されています。
<cbc:UBLVersionID>2.1</cbc:UBLVersionID>
この要素は、BIS Billing 3.0でもSyntax bindingで定義されていない要素ですが、実際には BIS Billing 3.0 のスキーマトロンの構文ルールでは、次の UBL-CR-002 (warning) が定義されており、cbc:UBLVersionID を含めるときには、2.1を指定することとされています。
Appendix D: Syntax rules
UBL-CR-002 (warning)
A UBL invoice should not include the UBLVersionID or it should be 2.1
UBL 請求書に UBLVersionID を含めないか、含めるのであればその値を2.1としなければならない。
Appendix D Syntax rules
JP PINT v1.0ではこのルールがありませんので、定義されていない要素は含めてはいけないと思います。
詳細は、『JP PINT 解体新書 1a』をご確認ください。