ehf.2019-06.EHF-UBL-T10.sch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ph-bdve-ehf Show documentation
Show all versions of ph-bdve-ehf Show documentation
Norwegian EHF validation engine
Norwegian rules for EHF Invoice
Element 'cbc:UBLVersionID' MUST be provided.
Element 'cbc:CustomizationID' MUST be provided.
Element 'cbc:ProfileID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:IssueDate' MUST be provided.
Element 'cbc:InvoiceTypeCode' MUST be provided.
Element 'cbc:DocumentCurrencyCode' MUST be provided.
Element 'cac:AccountingSupplierParty' MUST be provided.
Element 'cac:AccountingCustomerParty' MUST be provided.
Element 'cac:PaymentMeans ' MUST be provided.
Element 'cac:TaxTotal' MUST be provided.
Element 'cac:LegalMonetaryTotal' MUST be provided.
Element 'cac:InvoiceLine' MUST be provided.
Element 'cbc:UBLVersionID' MUST contain value '2.1'.
Attribute 'listID' MUST be present.
Attribute 'listID' MUST be present.
Attribute 'listID' MUST be present.
Element 'cbc:StartDate' MUST be provided.
Element 'cbc:EndDate' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:ID' MUST be provided.
Attribute 'mimeCode' MUST be present.
Element 'cbc:URI' MUST be provided.
Element 'cac:Party' MUST be provided.
Element 'cac:PartyName' MUST be provided.
Element 'cac:PostalAddress' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:Name' MUST be provided.
Element 'cbc:CityName' MUST be provided.
Element 'cbc:PostalZone' MUST be provided.
Element 'cac:Country' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:CompanyID' MUST be provided.
Element 'cac:TaxScheme' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:RegistrationName' MUST be provided.
Element 'cbc:CompanyID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cac:Party' MUST be provided.
Element 'cac:PartyName' MUST be provided.
Element 'cac:PostalAddress' MUST be provided.
Element 'cac:Contact' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:Name' MUST be provided.
Element 'cbc:CityName' MUST be provided.
Element 'cbc:PostalZone' MUST be provided.
Element 'cac:Country' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cac:TaxScheme' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:RegistrationName' MUST be provided.
Element 'cbc:CompanyID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:IdentificationCode' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:Name' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cac:PartyName' MUST be provided.
Element 'cbc:Name' MUST be provided.
Element 'cac:Country' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Element 'cbc:CompanyID' MUST be provided.
Element 'cac:TaxScheme' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:PaymentMeansCode' MUST be provided.
Element 'cbc:PaymentDueDate' MUST be provided.
Element 'cac:PayeeFinancialAccount' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST contain value 'ISO3166-1:Alpha2'
Element 'cbc:Note' MUST be provided.
Element 'cbc:ChargeIndicator' MUST be provided.
Element 'cbc:Amount' MUST be provided.
Element 'cac:TaxCategory' MUST be provided.
Attribute 'listID' MUST be present.
Attribute 'currencyID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cac:TaxScheme' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:SourceCurrencyCode' MUST be provided.
Element 'cbc:TargetCurrencyCode' MUST be provided.
Element 'cbc:CalculationRate' MUST be provided.
Element 'cbc:MathematicOperatorCode' MUST be provided.
Attribute 'listID' MUST be present.
Attribute 'listID' MUST be present.
Element 'cbc:MathematicOperatorCode' MUST contain value 'Multiply'.
Element 'cbc:TaxAmount' MUST be provided.
Element 'cac:TaxSubtotal' MUST be provided.
Attribute 'currencyID' MUST be present.
Element 'cbc:TaxableAmount' MUST be provided.
Element 'cbc:TaxAmount' MUST be provided.
Element 'cac:TaxCategory' MUST be provided.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:Percent' MUST be provided.
Element 'cac:TaxScheme' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:LineExtensionAmount' MUST be provided.
Element 'cbc:TaxExclusiveAmount' MUST be provided.
Element 'cbc:TaxInclusiveAmount' MUST be provided.
Element 'cbc:PayableAmount' MUST be provided.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:InvoicedQuantity' MUST be provided.
Element 'cbc:LineExtensionAmount' MUST be provided.
Element 'cac:Item' MUST be provided.
Element 'cac:Price' MUST be provided.
Attribute 'unitCode' MUST be present.
Attribute 'unitCodeListID' MUST be present.
Attribute 'currencyID' MUST be present.
Element 'cbc:LineID' MUST be provided.
Element 'cbc:ActualDeliveryDate' MUST be provided.
Element 'cac:Country' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:ChargeIndicator' MUST be provided.
Element 'cbc:Amount' MUST be provided.
Attribute 'currencyID' MUST be present.
Element 'cbc:TaxAmount' MUST be provided.
Attribute 'currencyID' MUST be present.
Element 'cbc:Name' MUST be provided.
Element 'cac:ClassifiedTaxCategory' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST contain value 'ISO3166-1:Alpha2'
Element 'cbc:ItemClassificationCode' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cac:TaxScheme' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:Name' MUST be provided.
Element 'cbc:Value' MUST be provided.
Element 'cac:PartyName' MUST be provided.
Element 'cbc:Name' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:PriceAmount' MUST be provided.
Attribute 'currencyID' MUST be present.
Element 'cbc:ChargeIndicator' MUST be provided.
Element 'cbc:Amount' MUST be provided.
Attribute 'currencyID' MUST be present.
Attribute 'currencyID' MUST be present.
[EHFPROFILE-T10-R001]-An invoice transaction T10 must only be used in Profiles 4, 5 or xy.
[NOGOV-T10-R042]-An Invoice MUST be coded with the InvoiceTypeCode code list UNCL D1001 BII2 subset
[NOGOV-T10-R001]-A contact reference identifier SHOULD be provided for AccountingSupplierParty according to EHF.
[NOGOV-T10-R011]-PayeeFinancialAccount MUST be provided according EHF.
[NOGOV-T10-R012]-Payment Identifier (KID number) SHOULD be used according to EHF.
[NOGOV-T10-R032]-Only numbers are allowed as bank account number if scheme is BBAN.
[NOGOV-T10-R033]-IBAN number is not for a Norwegain bank account
[NOGOV-T10-R013]-An association to Order Reference SHOULD be provided according to EHF.
[NOGOV-T10-R003]-The buyer's accounting code applied to the Invoice Line SHOULD be provided according to EHF.
[NOGOV-T10-R004]-An association to Order Line Reference SHOULD be provided according to EHF.
[NOGOV-T10-R002]-The sellers ID for the item SHOULD be provided according to EHF.
[NOGOV-T10-R022]-Identification code MUST be specified when describing origin country.
[NOGOV-T10-R024]-Name MUST be specified when describing a manufacturer party.
[NOGOV-T10-R023]-Item classification code MUST be specified when describing commodity classification.
[NOGOV-T10-R014]-If the VAT total amount in an invoice exists it MUST contain the suppliers VAT number.
[NOGOV-T10-R034]-If charge is present on document level, total charge must be stated.
[NOGOV-T10-R035]-If allowance is present on document level, total allowance must be stated.
[NOGOV-T10-R005]-ContractDocumentReference SHOULD be provided according to EHF.
[NOGOV-T10-R016]-An EHF invoice MUST have an invoice type code.
[NOGOV-T10-R019]-An invoice MUST have payment means information.
[NOGOV-T10-R020]-Note MUST be specified when describing Payment terms.
[NOGOV-T10-R017]-Name MUST be specified when describing a Tax Representative
[NOGOV-T10-R018]-Company identifier MUST be specified when describing a Tax Representative
[NOGOV-T10-R021]-An invoice MUST have Tax Subtotal specifications.
[NOGOV-T10-R038]-Total tax amount cannot have more than 2 decimals
[NOGOV-T10-R041]-Multiple tax subtotals per tax category code is not allowed.
[NOGOV-T10-R025]-The attribute currencyID must have the same value as DocumentCurrencyCode, except the attribute for TransactionCurrencyTaxAmount.
[NOGOV-T10-R037]-Document level amounts cannot have more than 2 decimals
[NOGOV-T10-R006]-A customer number for AccountingCustomerParty SHOULD be provided according to EHF.
[NOGOV-T10-R007]-A contact reference identifier MUST be provided for AccountingCustomerParty according to EHF.
[NOGOV-T10-R009]-PartyLegalEntity for AccountingCustomerParty MUST be provided according to EHF.
[NOGOV-T10-R015]-Registration name for AccountingCustomerParty MUST be provided according to EHF.
[NOGOV-T10-R039]-Tax subtotal amounts cannot have more than 2 decimals
[NOGOV-T10-R039]-Tax subtotal amounts cannot have more than 2 decimals
[NOGOV-T10-R040]-Allowance or charge amounts on document level cannot have more than 2 decimals
[NOGOV-T10-R043]-Payable rounding amount should be no more than 10% of payable amount.
[NONAT-T10-R012]-An invoice MUST contain tax information
[NONAT-T10-R002]-Payment due date MUST be provided in the invoice according to "FOR 2004-12-01 nr 1558 - § 5-1-1. Point 5"
[NONAT-T10-R013]-If payee information is provided then the payee name MUST be specified.
[NONAT-T10-R009]-Issue date of an invoice should be today or earlier.
[NONAT-T10-R003]-The actual delivery date SHOULD be provided in the invoice according to "FOR 2004-12-01 nr 1558 - § 5-1-1. Point 4 and § 5-1-4", see also “NOU 2002:20, point 9.4.1.4”"
[NONAT-T10-R004]-A Delivery address in an invoice SHOULD contain at least, city, zip code and country code according to "FOR 2004-12-01 nr 1558 - § 5-1-1. Point 4 and § 5-1-4", see also “NOU 2002:20, point 9.4.1.4”
[NONAT-T10-R020]-UBL version must be 2.1
[NONAT-T10-R001]-The Norwegian legal registration ID for the supplier MUST be provided according to "FOR 2004-12-01 nr 1558 - § 5-1-1. Point 2"
[NONAT-T10-R008]-The Norwegian legal registration name for the supplier MUST be provided according to "FOR 2004-12-01 nr 1558 - § 5-1-1. Point 2"
[NONAT-T10-R006]-A supplier postal address in an invoice MUST contain at least city name, zip code and country code.
[NONAT-T10-R007]-A customer postal address in an invoice MUST contain at least city name, zip code and country code.
[NONAT-T10-R010]-Location identifiers SHOULD be GLN or GSRN
[NONAT-T10-R018]-Company identifier MUST be specified when describing a company legal entity.
[NONAT-T10-R024]-A payee account identifier scheme MUST be either IBAN, BBAN or LOCAL
[NONAT-T10-R023]-Tax inclusive amount in an invoice SHOULD NOT be negative
[NONAT-T10-R022]-Total payable amount in an invoice SHOULD NOT be negative
[NONAT-T10-R011]-AllowanceChargeReason text SHOULD be specified for all allowances and charges
[NONAT-T10-R016]-Each invoice line MUST contain the product/service name
[NONAT-T10-R015]-Invoice lines MUST contain the item price
[NONAT-T10-R026]-Invoice line amount MUST be equal to the price amount multiplied by the quantity plus charges minus allowances at line level.
[NONAT-T10-R033]-Base quantity must be a positive value higher than zero.
[NONAT-T10-R029]-Taxable amount in a tax subtotal MUST be the sum of line extension amount of all invoice lines and allowances and charges on document level with the same tax category.
[NONAT-T10-R031]-Tax categories MUST match provided tax categories on document level.
[NONAT-T10-R032]-Tax categories MUST match provided tax categories on document level.
[NONAT-T10-R017]-Every tax scheme MUST be defined through an identifier.
[NONAT-T10-R014]-Invoice tax schemes MUST be 'VAT'