A group of business terms providing information on the invoice period.
請求期間に関わる情報を提供するビジネス用語のグループ。


About

Syntax binding
ubl:Invoice / cac:InvoicePeriod
Restricted Syntax Cardinality
0..1
UBL 2.1
XPath
/ Invoice / cac:InvoicePeriod
Occurrence
0..n
Datatype
cac:PeriodType
UBL Definition
A period to which the Invoice applies.
Namespace
cac urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2

Semantic

Business Term

INVOICING PERIOD

請求期間
ID
ibg-14
Description
A group of business terms providing information on the invoice period.
請求期間に関わる情報を提供するビジネス用語のグループ。
Aligned Cardinality
0..1

Child elements

  ID Business term Sem. Card. Syntax Card. XPath
 ibt-073 0..1 0..1 / Invoice / cac:InvoicePeriod / cbc:StartDate
 ibt-074 0..1 0..1 / Invoice / cac:InvoicePeriod / cbc:EndDate
 ibt-008 0..1 0..1 / Invoice / cac:InvoicePeriod / cbc:DescriptionCode

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Aligned rules
aligned-ibr-jp-01(fatal)
Added
[aligned-ibr-jp-01]-If a date of an invoice period (ibg-14) or an invoice line period (ibg-26) is on and after October 1st 2023, Seller Tax Identifier (ibt-031) shall be coded by using a Registration Number for Qualified Invoice purpose in Japan, which consists of 14 digits that start with T.
context
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
test
(
  ((//cbc:StartDate >= '2023-10-01') or
    (//cbc:EndDate >= '2023-10-01')) and
  matches(normalize-space(cbc:CompanyID),'^T[0-9]{13}$')) or
not((//cbc:StartDate >= '2023-10-01') or
  (//cbc:EndDate >= '2023-10-01')
)
aligned-ibrp-052(fatal)
Unchanged
Same as 0.9.2
JP PINT 0.9.3 Shared rules
ibr-085(fatal)
Changed Message
[ibr-085]-Start date (ibt-134) of invoice line period (ibg-26) MUST be within invoice period (ibg-14).
context
ubl:Invoice[cac:InvoicePeriod/cbc:StartDate]/cac:InvoiceLine/cac:InvoicePeriod/cbc:StartDate |
cn:CreditNote[cac:InvoicePeriod/cbc:StartDate]/cac:CreditNoteLine/cac:InvoicePeriod/cbc:StartDate
test
xs:date(text()) >= xs:date(../../../cac:InvoicePeriod/cbc:StartDate)
ibr-086(fatal)
Changed Message
[ibr-086]-End date (ibt-135) of invoice line period (ibg-26) MUST be within invoice period (ibg-14).
context
ubl:Invoice[cac:InvoicePeriod/cbc:EndDate]/cac:InvoiceLine/cac:InvoicePeriod/cbc:EndDate |
cn:CreditNote[cac:InvoicePeriod/cbc:EndDate]/cac:CreditNoteLine/cac:InvoicePeriod/cbc:EndDate
test
xs:date(text()) >= xs:date(../../../cac:InvoicePeriod/cbc:EndDate)
ibr-097(fatal)
Unchanged
Same as 0.9.2
ibr-co-19(fatal)
Unchanged
Same as 0.9.2

VERSION 0.9.2 RULES
JP PINT 0.9.2 Aligned rules
aligned-ibrp-052(fatal)
Still valid
[aligned-ibrp-052]-An Invoice MUST have an invoice period (ibg-14) or an Invoice line period (ibg-26).
context
/ubl:Invoice |
/cn:CreditNote
test
exists(//cac:InvoicePeriod)
aligned-ibrp-ic-11(fatal)
Obsoleted
[aligned-ibrp-ic-11]-In an Invoice with a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Intra-community supply" the Actual delivery date (ibt-72) or the Invoicing period (ibg-14) MUST not be blank.
context
/ubl:Invoice |
/cn:CreditNote
test
(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) =
    'K']) and
  (string-length(cac:Delivery/cbc:ActualDeliveryDate) > 1 or
    (cac:InvoicePeriod/*))) or
(
  not(
    cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) =
    'K']
  )
)
JP PINT 0.9.2 Shared rules
ibr-085(fatal)
Obsoleted
[ibr-085]-Start date of line period (ibt-134) MUST be within invoice period (ibg-14).
context
ubl:Invoice[cac:InvoicePeriod/cbc:StartDate]/cac:InvoiceLine/cac:InvoicePeriod/cbc:StartDate |
cn:CreditNote[cac:InvoicePeriod/cbc:StartDate]/cac:CreditNoteLine/cac:InvoicePeriod/cbc:StartDate
test
xs:date(text()) >= xs:date(../../../cac:InvoicePeriod/cbc:StartDate)
ibr-086(fatal)
Obsoleted
[ibr-086]-End date of line period (ibt-135) MUST be within invoice period (ibg-14).
context
ubl:Invoice[cac:InvoicePeriod/cbc:EndDate]/cac:InvoiceLine/cac:InvoicePeriod/cbc:EndDate |
cn:CreditNote[cac:InvoicePeriod/cbc:EndDate]/cac:CreditNoteLine/cac:InvoicePeriod/cbc:EndDate
test
xs:date(text()) >= xs:date(../../../cac:InvoicePeriod/cbc:EndDate)
ibr-097(fatal)
Still valid
[ibr-097]-Invoicing period (ibg-14) MUST occur maximum once.
context
/ubl:Invoice |
/cn:CreditNote
test
(count(cac:InvoicePeriod) <= 1)
ibr-co-19(fatal)
Still valid
[ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) MUST be filled, or both.
context
cac:InvoicePeriod
test
exists(cbc:StartDate) or
exists(cbc:EndDate) or
(exists(cbc:DescriptionCode) and
  not(exists(cbc:StartDate)) and
  not(exists(cbc:EndDate))
)

VERSION 0.9.1 RULES
Obsoleted
Aligned rules (0.9.1)
aligned-ibr-jp-01 (fatal)
[aligned-ibr-jp-01]-If a date of an invoice period (ibg-14) or an invoice line period (ibg-26) is on and after October 1st 2023, Seller Tax Identifier shall be coded by using a Registration Number for Qualified Invoice purpose in Japan, which consists of 14 digits that start with T.
context
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
test
(
  ((//cbc:StartDate >= '2023-10-01') or
    (//cbc:EndDate >= '2023-10-01')) and
  matches(normalize-space(cbc:CompanyID),'^T[0-9]{13}$')) or
not((//cbc:StartDate >= '2023-10-01') or
  (//cbc:EndDate >= '2023-10-01')
)
aligned-ibrp-052 (fatal)
[aligned-ibrp-052]-An Invoice MUST have an invoice period (ibg-14) or an Invoice line period (ibg-26).
context
/ubl:Invoice |
/cn:CreditNote
test
exists(//cac:InvoicePeriod)
Shared rules (0.9.1)
ibr-085 (fatal)
[ibr-085]-Start date of line period (ibt-134) MUST be within invoice period (ibg-14).
context
ubl:Invoice[cac:InvoicePeriod/cbc:StartDate]/cac:InvoiceLine/cac:InvoicePeriod/cbc:StartDate |
cn:CreditNote[cac:InvoicePeriod/cbc:StartDate]/cac:CreditNoteLine/cac:InvoicePeriod/cbc:StartDate
test
xs:date(text()) >= xs:date(../../../cac:InvoicePeriod/cbc:StartDate)
ibr-086 (fatal)
[ibr-086]-End date of line period (ibt-135) MUST be within invoice period (ibg-14).
context
ubl:Invoice[cac:InvoicePeriod/cbc:EndDate]/cac:InvoiceLine/cac:InvoicePeriod/cbc:EndDate |
cn:CreditNote[cac:InvoicePeriod/cbc:EndDate]/cac:CreditNoteLine/cac:InvoicePeriod/cbc:EndDate
test
xs:date(text()) >= xs:date(../../../cac:InvoicePeriod/cbc:EndDate)
ibr-097 (fatal)
[ibr-097]-Invoicing period (ibg-14) MUST occur maximum once.
context
/ubl:Invoice |
/cn:CreditNote
test
(count(cac:InvoicePeriod) <= 1)
ibr-co-19 (fatal)
[ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) MUST be filled, or both.
context
cac:InvoicePeriod
test
exists(cbc:StartDate) or
exists(cbc:EndDate) or
(exists(cbc:DescriptionCode) and
  not(exists(cbc:StartDate)) and
  not(exists(cbc:EndDate))
)

JP PINT 0.9 RULES
Obsoleted
Aligned Rules (0.9)
jp-br-05(fatal)
[jp-br-05]-An Invoice shall have an Invoice period (ibg-14) or an Invoice line period (ibg-26).
context
/ubl:Invoice[cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'JP' ]
test
exists(cac:InvoicePeriod) or
exists(cac:InvoiceLine/cac:InvoicePeriod)
Shared Rules (0.9)
ibr-co-19(fatal)
[ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) shall be filled, or both.
context
cac:InvoicePeriod
test
exists(cbc:StartDate) or
exists(cbc:EndDate) or
(exists(cbc:DescriptionCode) and
  not(exists(cbc:StartDate)) and
  not(exists(cbc:EndDate))
)

PEPPOL BIS BILLING 3.0 RULES
EN16931 model bound to UBL rules
BR-CO-19 (fatal)
If Invoicing period (BG-14) is used, the Invoicing period start date (BT-73) or the Invoicing period end date (BT-74) shall be filled, or both.
context
cac:InvoicePeriod
test
exists(cbc:StartDate) or
exists(cbc:EndDate) or
(exists(cbc:DescriptionCode) and
  not(exists(cbc:StartDate)) and
  not(exists(cbc:EndDate))
)
BR-IC-11 (fatal)
In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing period (BG-14) shall not be blank.
context
/ubl:Invoice |
/cn:CreditNote
test
(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) =
    'K']) and
  (string-length(cac:Delivery/cbc:ActualDeliveryDate) > 1 or
    (cac:InvoicePeriod/*))) or
(
  not(
    cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) =
    'K']
  )
)