VRBL-INV-SE-1p0-5
Basic Info
|
Rule
|
If the Seller Group is Swedish, and the Seller Legal Registration ID is used, then Seller Tax ID not used for VAT ID is only allowed to be 'Godkänd för F-skatt'. |
|
Context
|
/ubl:Invoice/cac:AccountingSupplierParty
|
|
Pattern
|
vrbl-invoice-se-1p0 |
|
Severity
|
fatal |
Implementation
not(
cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE'
and
boolean(cac:Party/cac:PartyLegalEntity/cbc:CompanyID)
and
boolean(cac:Party/cac:PartyTaxScheme[not(cac:TaxScheme/cbc:ID = 'VAT')]/cbc:CompanyID)
)
or
normalize-space(translate(cac:Party/cac:PartyTaxScheme[not(cac:TaxScheme/cbc:ID = 'VAT')]/cbc:CompanyID, 'godkänd för f-skatt', 'GODKÄND FÖR F-SKATT')) = 'GODKÄND FÖR F-SKATT'