HR-BR-56

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:TaxTotal/cac:TaxSubtotal
Test
u:check3010(cac:TaxCategory/cbc:Percent)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
/ubl-invoice:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /ubl-creditnote:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
Test
u:check3010(cac:TaxCategory/cbc:Percent)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
/ubl-invoice:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /ubl-creditnote:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
Test
u:check3010(cac:TaxCategory/cbc:Percent)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:InvoiceLine | cac:CreditNoteLine
Test
u:check3010($quantity)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:InvoiceLine | cac:CreditNoteLine
Test
u:check3010(cac:Item/cac:ClassifiedTaxCategory/cbc:Percent)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:Price
Test
u:check3010(cbc:PriceAmount)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:Price
Test
u:check3010(cac:AllowanceCharge/cbc:Amount)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:Price
Test
u:check3010(cac:AllowanceCharge/cbc:BaseAmount)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
cac:Price
Test
u:check3010(cbc:BaseQuantity)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

Cijene artikla (BT-146, BT-147, BT-148), stope PDV (BT-119, BT-96, BT-103, BT-152, HR-BT-19), količine (BT-129, BT-149) ne smiju imati više od 10 decimala i 30 znamenki

Context
ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/hrextac:HRFISK20Data/hrextac:HRTaxTotal/hrextac:HRTaxSubtotal
Test
u:check3010(hrextac:HRTaxCategory/cbc:Percent)

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)