Search Posts

Visits: 549

[2021-09-10追記]この他に、Credit Noteで適格返還請求書を表現する方法もある。
ーーーーーー
値引きは、UBL 2.1のcac:Allowance要素で記載する。
文書レベルの項目に記載する方法と明細行で記載する方法の2パターンがある。

明細行に記載する方式

明細行の正味金額(BT-131)

明細行の正味金額は、値引き後の税抜き金額であり、追加料金および割引金額を反映した金額である。
正味金額は、次の式で計算する。
明細行の正味金額(BT-131) =
 ((品目単価(割引後)(税抜)(BT-146)÷品目単価基準数量(BT-149))×(明細行数量(BT-129))
 + 明細行の追加請求(BT-141) −明細行の返還請求(BT-136)
値引きの記載箇所は、品目単価割引(税抜)(BT-147)または、明細行の返還請求(BT-136)。
ここで 品目単価(割引後)(BT-146) =
 品目単標準価(割引前)(BT-148) – 品目単価割引(BT-147) 注:金額は全て税抜き

ID L BUSINESS TERM 項目名
BG-25 1 INVOICE LINE 明細行
BT-126 2    Invoice line identifier    明細行番号
BT-127 2    Invoice line note    明細行注釈
BT-129 2    Invoiced quantity    明細行数量
BT-130 2    Invoiced quantity unit of measure code    数量単位コード
BT-131 2    Invoice line net amount    明細行金額(税抜)
BG-27 2    INVOICE LINE ALLOWANCES    明細行の返還請求
BT-140 3       Invoice line allowance reason code       明細行の返還請求理由コード
BT-139 3       Invoice line allowance reason       明細行の返還請求理由
BT-138 3       Invoice line allowance percentage       明細行の返還請求の率
BT-136 3       Invoice line allowance amount       明細行の返還請求金額(税抜)
BT-137 3       Invoice line allowance base amount       明細行の返還請求の基準金額
BG-28 2    INVOICE LINE CHARGES    明細行の追加請求
BT-145 3       Invoice line charge reason code       明細行の追加請求理由コード
BT-144 3       Invoice line charge reason       明細行の追加請求理由
BT-143 3       Invoice line charge percentage       明細行の追加請求の率
BT-141 3       Invoice line charge amount       明細行の追加請求金額(税抜)
BT-142 3       Invoice line charge base amount       明細行の追加請求の基準金額
BG-31 2    ITEM INFORMATION    品目情報
BT-154 3       Item description       品目摘要
BT-153 3       Item name       品名
BG-29 2    PRICE DETAILS    取引価格詳細
BT-146 3       Item net price       品目単価(割引後)
BT-149 3       Item price base quantity       品目単価基準数量
BT-150 3       Item price base quantity unit of measure code       品目単価基準数量の数量単位コード
BT-147 3       Item price discount       品目単価割引
BT-148 3       Item gross price       品目単標準価(割引前)

品目単価割引(税抜)(BT-147)

明細行の定義を次に示す。
値引きは、<Invoice><cac:InvoiceLine><cac:Price><cac:AllowanceCharge>に定義される。

<cac:InvoiceLine>
  <cbc:ID>30</cbc:ID>
  <cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity>
  <cbc:LineExtensionAmount currencyID="JPY">40000</cbc:LineExtensionAmount>
  <cac:Item>
    <cbc:Name>回転椅子 K</cbc:Name>
    <cac:ClassifiedTaxCategory>
      <cbc:ID>S</cbc:ID>
      <cbc:Percent>10</cbc:Percent>
      <cac:TaxScheme>
        <cbc:ID>VAT</cbc:ID>
      </cac:TaxScheme>
    </cac:ClassifiedTaxCategory>
  </cac:Item>
  <cac:Price>
    <cbc:PriceAmount currencyID="JPY">40000</cbc:PriceAmount>
    <cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
    <cac:AllowanceCharge>
      <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
      <cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
      <cbc:Amount currencyID="JPY">10000</cbc:Amount>
      <cbc:BaseAmount currencyID="JPY">50000</cbc:BaseAmount>
    </cac:AllowanceCharge>
  </cac:Price>
</cac:InvoiceLine>

明細行の返還請求(BT-136)

明細行の定義を次に示す。
値引きは、<Invoice><cac:InvoiceLine><cac:AllowanceCharge>に定義される。

<cac:InvoiceLine>
  <cbc:ID>30</cbc:ID>
  <cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity>
  <cbc:LineExtensionAmount currencyID="JPY">40000</cbc:LineExtensionAmount>
  <cac:AllowanceCharge>
    <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
    <cbc:AllowanceChargeReason>値引き</cbc:AllowanceChargeReason>
    <!-- line level allowance percentage (BT-138) -->
    <cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
    <!-- line level allowance amount (BT-136) = 
          line level base amount (BT-137) x (line level allowance percentage (BT-138) / 100) -->
    <cbc:Amount currencyID="JPY">10000</cbc:Amount>
    <!-- line level base amount (BT-137) sum of invoice line net amount -->
    <cbc:BaseAmount currencyID="JPY">50000</cbc:BaseAmount>
    <cac:TaxCategory>
      <cbc:ID>S</cbc:ID>
      <cbc:Percent>10</cbc:Percent>
      <cac:TaxScheme>
        <cbc:ID>VAT</cbc:ID>
      </cac:TaxScheme>
    </cac:TaxCategory>
  </cac:AllowanceCharge>
  <cac:Item>
    <cbc:Name>回転椅子 K</cbc:Name>
    <cac:ClassifiedTaxCategory>
      <cbc:ID>S</cbc:ID>
      <cbc:Percent>10</cbc:Percent>
      <cac:TaxScheme>
        <cbc:ID>VAT</cbc:ID>
      </cac:TaxScheme>
    </cac:ClassifiedTaxCategory>
  </cac:Item>
  <cac:Price>
    <cbc:PriceAmount currencyID="JPY">50000</cbc:PriceAmount>
    <cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
  </cac:Price>
</cac:InvoiceLine>

文書全体の返還請求

文書全体の返還請求に記載する例を次に示す。
値引きは、<Invoice><cac:AllowanceCharge>に定義される。

<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:AllowanceChargeReason>値引き</cbc:AllowanceChargeReason>
  <!--document level allowance percentage (BT-94) -->
  <cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
  <!-- document level allowance amount (BT-92) = 
        document level base amount (BT-93) x (document level allowance percentage (BT-94) / 100) -->
  <cbc:Amount currencyID="JPY">10000</cbc:Amount> 
  <!-- document level base amount (BT-93) sum of invoice line net amount -->
  <cbc:BaseAmount currencyID="JPY">50000</cbc:BaseAmount> 
  <cac:TaxCategory>
    <cbc:ID>S</cbc:ID>
    <cbc:Percent>10</cbc:Percent>
    <cac:TaxScheme>
      <cbc:ID>VAT</cbc:ID>
    </cac:TaxScheme>
  </cac:TaxCategory>
</cac:AllowanceCharge>

電子インボイスのサンプル(github.com/pontsoleil/EIPA)

明細行に記載する方式

品目単価割引(税抜)(BT-147)

discount.xml

明細行の返還請求(BT-136)

allowance1.xml

文書全体の返還請求

allowance2.xml