ehf.2018-11.EHF-UBL-T14.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 Credit Note
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:DocumentCurrencyCode' MUST be provided.
Element 'cac:AccountingSupplierParty' MUST be provided.
Element 'cac:AccountingCustomerParty' MUST be provided.
Element 'cac:TaxTotal' MUST be provided.
Element 'cac:LegalMonetaryTotal' MUST be provided.
Element 'cac:CreditNoteLine' MUST be provided.
Element 'cbc:UBLVersionID' MUST contain value '2.1'.
Attribute 'listID' MUST be present.
Attribute 'listID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' 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:PostalAddress' MUST be provided.
Element 'cac:PartyLegalEntity' 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.
Element 'cbc:ID' MUST be provided.
Element 'cbc:RegistrationName' MUST be provided.
Element 'cbc:CompanyID' MUST be provided.
Attribute 'schemeID' 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 '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:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:Name' MUST be provided.
Element 'cbc:CompanyID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cac:PartyName' MUST be provided.
Element 'cac:PartyTaxScheme' MUST be provided.
Element 'cbc:Name' 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.
Attribute 'listID' MUST be present.
Element 'cbc:ID' MUST be provided.
Attribute 'schemeID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:Note' MUST be provided.
Element 'cbc:SourceCurrencyCode' MUST be provided.
Element 'cbc:TargetCurrencyCode' MUST be provided.
Element 'cbc:CalculationRate' MUST be provided.
Attribute 'listID' MUST be present.
Attribute 'listID' MUST be present.
Element 'cbc:ChargeIndicator' MUST be provided.
Element 'cbc:Amount' MUST be provided.
Element 'cac:TaxCategory' MUST be provided.
Attribute 'currencyID' MUST be present.
Element 'cbc:ID' MUST be provided.
Element 'cac:TaxScheme' MUST be provided.
Element 'cbc:ID' MUST be provided.
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:CreditedQuantity' 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 'currencyID' MUST be present.
Element 'cbc:LineID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:ID' MUST be provided.
Element 'cbc:IdentificationCode' MUST be provided.
Attribute 'listID' MUST be present.
Element 'cbc:TaxAmount' MUST be provided.
Attribute 'currencyID' MUST be present.
Element 'cbc:ChargeIndicator' 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: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 'cbc:Name' MUST be provided.
Element 'cbc:CompanyID' MUST be provided.
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-T14-R001]-A credit note transaction T14 must only be used with profiles 5, xx or xy.
[NOGOV-T14-R003]-If the VAT total amount in a credit note exists it MUST contain the suppliers VAT number.
[NOGOV-T14-R021]-If charge is present on document level, total charge must be stated.
[NOGOV-T14-R022]-If allowance is present on document level, total allowance must be stated.
[EHFPROFILE-T14-R002]-A creditnote transaction T14 in Profile other than xx MUST have an invoice or creditnote reference identifier.
[NOGOV-T14-R001]-A contact reference identifier SHOULD be provided for AccountingSupplierParty according to EHF.
[NOGOV-T14-R005]-The attribute currencyID must have the same value as DocumentCurrencyCode, except the attribute for TransactionCurrencyTaxAmount.
[NOGOV-T14-R024]-Document level amounts cannot have more than 2 decimals
[NOGOV-T14-R002]-The sellers ID for the item SHOULD be provided according to EHF.
[NOGOV-T14-R004]-PartyLegalEntity for AccountingCustomerParty MUST be provided according to EHF.
[NOGOV-T14-R008]-Registration name for AccountingCustomerParty MUST be provided according to EHF.
[NOGOV-T14-R006]-A customer number for AccountingCustomerParty SHOULD be provided according to EHF.
[NOGOV-T14-R007]-A contact reference identifier MUST be provided for AccountingCustomerParty according to EHF.
[NOGOV-T14-R018]-A credit note MUST have Tax Subtotal specifications.
[NOGOV-T14-R025]-Total tax amount cannot have more than 2 decimals
[NOGOV-T14-R041]-Multiple tax subtotals per tax category code is not allowed.
[NOGOV-T14-R017]-Company identifier MUST be specified when describing a Tax Representative
[NOGOV-T14-R015]-Only numbers are allowed as bank account number if scheme is BBAN.
[NOGOV-T14-R016]-IBAN number is not for a Norwegain bank account
[NOGOV-T14-R019]-Item classification code MUST be specified when describing commodity classification.
[NOGOV-T14-R026]-Tax subtotal amounts cannot have more than 2 decimals
[NOGOV-T14-R026]-Tax subtotal amounts cannot have more than 2 decimals
[NOGOV-T14-R027]-Allowance or charge amounts on document level cannot have more than 2 decimals
[NONAT-T14-R009]-If payee information is provided then the payee name MUST be specified.
[NONAT-T14-R021]-A creditnote transaction T14 in Profile other than xx MUST have an invoice or creditnote reference identifier.
[NONAT-T14-R018]-A Credit Note MUST contain tax information
[NONAT-T14-R005]-Issue date of a creditnote should be today or earlier.
[NONAT-T14-R016]-UBL version must be 2.1
[NONAT-T14-R001]-PartyLegalEntity for AccountingSupplierParty MUST be provided according to "FOR 2004-12-01 nr 1558 - § 5-1-1. Point 2"
[NONAT-T14-R006]-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-T14-R003]-A supplier postal address in a credit note MUST contain at least city name, zip code and country code.
[NONAT-T14-R004]-A customer postal address in a credit note MUST contain at least, city name, zip code and country code.
[NONAT-T14-R014]-Company identifier MUST be specified when describing a company legal entity.
[NONAT-T14-R007]-Location identifiers SHOULD be GLN or GSRN
[NONAT-T14-R022]-A payee account identifier scheme MUST be either IBAN, BBAN or LOCAL
[NONAT-T14-R020]-Tax inclusive amount in a credit note SHOULD NOT be negative
[NONAT-T14-R019]-Total payable amount in a credit note SHOULD NOT be negative
[NONAT-T14-R008]-AllowanceChargeReason text SHOULD be specified for all allowances and charges
[NONAT-T14-R031]-Tax category for allowance and charge MUST match provided tax categories on document level.
[NONAT-T14-R012]-Each credit note line MUST contain the product/service name
[NONAT-T14-R011]-Credit Note line MUST contain the item price
[NONAT-T14-R024]-Credit note line amount MUST be equal to the price amount multiplied by the quantity, plus charges minus allowances at the line level.
[NONAT-T14-R030]-Tax category on line level MUST match provided tax categories on document level.
[NONAT-T10-R033]-Base quantity must be a positive value higher than zero.
[NONAT-T14-R029]-Taxable amount in a tax subtotal MUST be the sum of line extension amount of all credit note lines and allowances and charges on document level with the same tax category.
[NONAT-T14-R010]-Credit Note tax schemes MUST be 'VAT'
[NONAT-T14-R013]-Every tax scheme MUST be defined through an identifier.