E-Invoice Implementation Details
JustOn Billing & Invoice Management acts as the "user interface" for managing e-invoices and controls the data management. However, significant parts of the business logic to produce e-invoices, including the validation, run on the Heroku-based platform.
To support the Peppol BIS Billing and the XRechnung formats and the distribution via the Peppol Network, JustOn Billing & Invoice Management adds a number of fields to the relevant objects Invoice and Invoice Line Item as well as to the custom settings Business Entity, Quantity Units and Tax Rules.
Data Model Extension
- New fields on Invoice
-
Field Description Buyer Reference A unique identification of the invoice recipient.
When doing business with German public authorities (B2G scenarios), the buyer reference usually holds the Leitweg-ID (see ZFB | eRechnung).Contract No. Reference to the contract on which the invoice is based (see Purchase-Related Information).
Is usually given by the buyer to track the contract in their system; retrieved from a source record ( contract) and set on the invoice on invoice creation.E-Invoice Distribution Channel The distribution channel for the e-invoice.
Must be one ofEmail,PeppolorAvalara.E-Invoice Error Holds details regarding errors during e-invoice generation. E-Invoice Format The target format for electronic invoices.
Currently,Peppol BIS Billing UBL,XRechnung UBL, configured Avalara ELR country mandates andZUGFeRDare supported.E-Invoice Provider Status Tracks the lifecycle of the e-invoice with the distribution provider, see E-Invoice Provider Status. E-Invoice Provider Messages Holds details regarding the status in the provider queue, a JSON string including timestampandmessageset by the provider.E-Invoice Recipient Address The recipient address for an issued electronic invoice.
Addresses are subject to the Electronic Address Scheme.
When creating e-invoices in the Peppol BIS Billing format or when distributing e-invoices via the Peppol network, only a limited set of address schemes is allowed.E-Invoice Recipient Scheme Id The identifier that indicates the type of the used e-invoice recipient address. E-Invoice Recipient Legal Identifier An identifier issued by an official registration authority that uniquely identifies the e-invoice recipient or buyer as a legal entity. Required in some jurisdictions, like France (SIREN, SIRET) or Norway (Organisasjonsnummer). E-Invoice Recipient Legal ID Scheme The codified scheme identifier that indicates the type of the used e-invoice recipient legal identifier, must correspond to the ISO/IEC 6523 identifier scheme code list, like 0002for SIREN or0192for Organisasjonsnummer.E-Invoice Status Indicates the result of the e-invoice creation, see E-Invoice Status. Purchase Order No. Reference to the purchase order on which the invoice is based (see Purchase-Related Information).
Is usually given by the buyer to track the purchase in their system; retrieved from a source record ( contract) and set on the invoice on invoice creation.Seller ID An identifier of the seller (see Purchase-Related Information).
Is usually given by the buyer to track the vendor in their system; retrieved from a source record ( contract) and set on the invoice on invoice creation.Supporting Document Types Defines which file types will be embedded in the e-invoice XML (see Supporting Documents) VAT Breakdown The serialized contents (JSON) of the tax breakdown table (grouped by tax rule). Specifically for e-invoices, the tax data is grouped by VAT category code and tax rate, see E-Invoice VAT Breakdown.
Is updated when invoice line items are modified. - New fields on Invoice Line Item
-
Field Description Unit Code A code for the measurement unit applicable to the invoiced quantity, is copied from Codeon the Quantity Units custom setting.
The code is expected to be one of the codes listed in UNECE Recommendation No. 20 "Codes for Units of Measure Used in International Trade" or UNECE Recommendation No 21 "Codes for Passengers, Types of Cargo, Packages and Packaging Materials", see UNECE Code List Recommendations.VAT Category Code A code for categorizing VAT regulations, is copied from VAT Category Codeon the Tax Rules custom setting.
The code is expected to be one of the codes listed in the code list 5305 of the United Trade Data Interchange Directory (UNTDID), see UNTDID 5305 Duty or tax or fee category code. - New Fields on Business Entity
-
Field Description E-Invoice Format The target format for electronic invoices.
Currently,Peppol BIS Billing UBLandXRechnung UBLare supported.E-Invoice Sender Address The return address for replies to an issued electronic invoice.
Addresses are subject to the Electronic Address Scheme.
When creating e-invoices in the Peppol BIS Billing format or when distributing e-invoices via the Peppol network, only a limited set of address schemes is allowed.E-Invoice Sender Scheme Id The identifier that indicates the type of the used e-invoice sender address. Supporting Document Types Defines which file types will be embedded in the e-invoice XML (see Supporting Documents) - New field on Quantity Units
-
Field Description Code A code for the measurement unit applicable to the invoiced quantity, is copied to Unit Codeon the invoice line item.
The code is expected to be one of the codes listed in UNECE Recommendation No. 20 "Codes for Units of Measure Used in International Trade" or UNECE Recommendation No 21 "Codes for Passengers, Types of Cargo, Packages and Packaging Materials", see UNECE Code List Recommendations. - New field on Tax Rules
-
Field Description VAT Category Code A code for categorizing VAT regulations, is copied to VAT Category Codeon the invoice line item.
The code is expected to be one of the codes listed in the code list 5305 of the United Trade Data Interchange Directory (UNTDID), see UNTDID 5305 Duty or tax or fee category code.
E-Invoice Statuses
E-Invoice Status
The field E-Invoice Status on the invoice indicates the result of the e-invoice creation. Depending on the creation and distribution methods, the applicable statuses differ:
| Status | Description |
|---|---|
| Not created | Indicates invoices that have not been processed to create an e-invoice file. |
| Validation Error | The e-invoice validation has failed. The validation report is attached to the invoice record. |
| Created | The e-invoice has been successfully created and validated. The e-invoice XML file is attached to the invoice record. |
| Created With Warnings | The e-invoice has been successfully created, but the validation has produced warnings. The e-invoice XML file and the validation report are attached to the invoice record. |
| Status | Description |
|---|---|
| Not created | Indicates invoices that have not been processed to create an e-invoice file. |
| Validation Error | The e-invoice validation has failed. The validation report is attached to the invoice record. |
| Created | The e-invoice has been successfully created and validated. The e-invoice XML file is attached to the invoice record. |
| Created With Warnings | The e-invoice has been successfully created, but the validation has produced warnings. The e-invoice XML file and the validation report are attached to the invoice record. |
| Distribution Error | The e-invoice processing with the distribution provider has failed. Details are saved to the E-Invoice Error field on the invoice. |
| In Peppol Queue | The e-invoice has been successfully transferred to Peppol and is waiting for being processed. |
| Status | Description |
|---|---|
| Not created | Indicates invoices that have not been processed to create an e-invoice file. |
| Validation Error | The e-invoice validation has failed. The validation report is attached to the invoice record. |
| Created | The Avalara UBL XML has been successfully created and validated. The Avalara UBL XML file is attached to the invoice record. |
| Created With Warnings | The Avalara UBL XML has been successfully created, but the validation has produced warnings. The Avalara UBL XML file and the validation report are attached to the invoice record. |
| Distribution Error | The e-invoice processing with the distribution provider has failed. Details are saved to the E-Invoice Error field on the invoice. |
| In Avalara Queue | The Avalara UBL XML file has been successfully transferred to Avalara ELR and is waiting for being processed. |
| Avalara Processing Complete | Avalara ELR has successfully processed the e-invoice data, and the produced e-invoice XML file has been downloaded and attached to the invoice record. |
Info
Using the global settings option Ignore EInvoice Validation Warnings, JustOn Billing & Invoice Management will ignore validation warnings and set E-Invoice Status to Created, even if the validation has produced warnings. Consequently, no validation report will be attached to the invoice record.
E-Invoice Status Transitions
The e-invoice actions are subject to status preconditions. Before executing an action, JustOn Billing & Invoice Management checks the invoice status and the E-Invoice Status. An invoice whose status does not allow the action is skipped in a mass operation, while an individual action fails with an error.
| Action | Invoice Status | E-Invoice Status |
|---|---|---|
| Create E-Invoice | Open, Paid, Settled, Canceled, Closed |
any |
| Send E-Invoice Send E-Invoices |
Open, Paid, Settled, Canceled, Closed |
Created, Created With Warnings, Distribution Error |
| Send E-Invoices with Create Missing E-Invoices | Open, Paid, Settled, Canceled, Closed |
Not Created, Validation Error for the creation step |
Invoices of the type Proforma are excluded from the e-invoice creation and distribution. Draft invoices are excluded as well – the e-invoice creation requires a finalized invoice.
Two consequences are relevant in daily work:
Distribution Erroris not a dead end. You can send the e-invoice again without recreating it. This is the appropriate path if the cause was a problem at the distribution provider or in its configuration rather than in the invoice data, see Recovering From Distribution Errors.- The check evaluates the
E-Invoice Statusfield, not the attached file. An invoice in the statusNot Createdis therefore offered the e-invoice creation even if an e-invoice file is already attached to the invoice record.
If the current status does not allow the action, the error message names the blocking status:
E-Invoice status Not Created not allowed for E-Invoice sending
Invoice status Draft not allowed for E-Invoice sending
E-Invoice Provider Status
The field E-Invoice Provider Status on the invoice tracks the lifecycle of the e-invoice with the distribution provider. Depending on the distribution provider, the applicable statuses differ:
| Status | Description |
|---|---|
| Queued | The e-invoice is ready to be sent to the recipient. |
| Validation Error | The e-invoice validation has failed. |
| Conversion Error | The e-invoice conversion (to a specific recipient format) has failed. |
| Send Error | Sending the e-invoice to the recipient has failed. |
| Sent | The e-invoice has been sent to the recipient. |
| Receiver Error | Receiving the e-invoice by the recipient has failed. |
| Received | The e-invoice has been received by the recipient. |
| Status | Description |
|---|---|
| Queued | The Avalara UBL XML file has been successfully transferred to Avalara ELR and is waiting for being processed. |
| Send Error | The e-invoice processing in Avalara ELR has failed. |
| Completed | The e-invoice has been successfully processed in Avalara ELR but has not been sent to the recipient. The relevant e-invoice requires additional processing in JustOn Billing & Invoice Management. |
| Sent | The e-invoice has been successfully processed in Avalara ELR and sent to the recipient via the Avalara network. |
Avalara ELR Post-Processing
For some country mandates, Avalara ELR cannot send the produced e-invoice XML files to the recipient. This includes mandates where e-invoicing flow is set to Pre-Clearance or Compliance e-Invoicing. (Find this information in the Data field of the country mandate configuration.)
In this case, JustOn Billing & Invoice Management handles the final distribution of the downloaded e-invoice XML files. There are two options:
- automatically sending the downloaded e-invoice XML files via email
- manually distributing the downloaded e-invoice XML files
Additionally, once Avalara ELR reports the document status Complete, the notification may include data returned by the tax authority – such as a clearance ID, a registration number, or a QR code. JustOn Billing & Invoice Management can automatically
- write these returned values to fields on the invoice (response mapping), and
- rebuild the invoice PDF so that the new values appear on the customer-facing document before it is distributed (PDF rebuild).
Both steps are optional and configured per country mandate.
For details, see Configuring Post-Processing.
E-Invoice Provider Notifications
As Avalara ELR or Peppol transfer the e-invoices to the recipients, the sender will receive notifications about the distribution status. JustOn Billing & Invoice Management stores this information in dedicated notification records, which are related to the original invoice.
These provider messages include the following information:
| Field | Description |
|---|---|
| Invoice | Links to the related invoice |
| Timestamp | Shows the notification time |
| Type | Shows the type of the notification as provided by Peppol. Possible values includeStage-Update: new processing step has startedStage-Success: processing step has successfully completedError: error on processing |
| Stage | Indicates the processing step of the invoice in the Peppol processing pipeline as provided by Peppol. Possible values include Validation, Conversion, Transmission, Reception |
| Is final | Indicates whether the Peppol processing pipeline is completed and no more notifications are expected |
| Message | Shows the key message of the notification as provided by Peppol, for example Transmission of your document was successful |
| Raw Notification | Contains the raw response (JSON string map) from Peppol |
| Field | Description |
|---|---|
| Invoice | Links to the related invoice |
| Timestamp | Shows the notification time |
| Type | Shows the type of the notification. For Avalara ELR, the type is statusChange. |
| Stage | Indicates the processing status of the invoice in Avalara ELR. Possible values includePending: e-invoice is being processedComplete: e-invoice is sentError: e-invoice processing has failed |
| Raw Notification | Contains the raw response (JSON string map) from Avalara ELR |
Supporting Document Embedding
In addition to the actual invoice data, e-invoices allow for embedding supporting documents.
JustOn Billing & Invoice Management can embed the files that are attached to invoice records, such as the produced invoice PDF, files linked from source records or files uploaded manually by users. Any type of files that is possibly to be embedded in the e-invoice XML must be defined as a content version type.
To embed attached files, you specify their content version type in the Invoice field Supporting Document Types. This field can be populated on invoice creation from other records using the following fallback mechanism:
ON_SupportingDocumentTypes from the account or invoice source record
↳ Supporting Document Types from the template
↳ Supporting Document Types from the business entity
Users can change the content version types in Supporting Document Types as long as the invoice is not finalized, that is, has the status Draft.
On e-invoice generation (during the invoice finalization or manually after finalization), JustOn Billing & Invoice Management
- retrieves all eligible files (including those attached after invoice finalization),
- converts them to plain text using Base64 encoding, and
- incorporates the encoded content in the e-invoice XML.
For details on enabling the support for embedding additional documents, see Enabling Supporting Document Embedding.
Info
Be aware of the following specifics (imposed by the e-invoice specification):
- The number of supporting documents must not exceed 200.
- The allowed file types for supporting documents include PDF, PNG, JPG, JPEG, CSV, XLSX, ODS.
- Base64 encoding causes an overhead of about one third compared to the size of the original binary data (see Base64).
- The cumulated size (Base64 encoded) must not exceed 11 MB. That is, the original attachment size must not exceed 8 MB approx.
- The overall XML size must not exceed 15 MB.
For more details, see Technische Informationen zu den Nutzungsbedingungen DE.
If you use supporting documents for both embedding in e-invoices and attaching to accounting documents, the maximum size of the produced XML file must not exceed 3,76 MB.
Separate Texts for E-Invoices
The invoice includes a number of text fields that can hold explanatory information related to certain invoice data. For PDF output, the text can contain HTML markup. For e-invoice XML files, however, HTML is not allowed. This is why these fields exist in two versions: one for the PDF and one for the e-invoice.
| PDF Field | E-Invoice Field | Standard E-Invoice Mapping |
|---|---|---|
| Payment Info | Payment Info (E-Invoice) | BT-20 Payment Terms |
| Text 1 | Text 1 (E-Invoice) | BT-22 Invoice Note |
| Text 2 | Text 2 (E-Invoice) | – |
| Text 3 | Text 3 (E-Invoice) | – |
| Discount Message | Discount Message (E-Invoice) | – |
| Installments Text | Installments Text (E-Invoice) | – |
| Outstanding Invoices Text | Outstanding Invoices Text (E-Invoice) | – |
| Reverse Charge Text | Reverse Charge Text (E-Invoice) | – |
JustOn Billing & Invoice Management uses
- the values in the PDF fields for rendering the PDF files,
-
the values in the e-invoice fields for creating the e-invoice XML files.
The standard mapping takes the payment terms (BT-20) from
Payment Info (E-Invoice)and the invoice note (BT-22) fromText 1 (E-Invoice). If the e-invoice field is empty, it falls back to the PDF fieldPayment InfoorText 1, respectively.The other e-invoice fields are not part of the standard mapping. To include their values in the e-invoice, set up a custom mapping.
Text Retrieval From Template
The invoice text fields are filled from the template:
- on invoice finalization,
- when users click Copy Text on a draft invoice,
- for the payment information: again when the invoice becomes paid.
On finalization and with Copy Text, JustOn Billing & Invoice Management fills only invoice fields that are still empty. Changing a template field later on does not change existing invoices.
By default, one template field serves as the source for both versions of an invoice text. For the payment information, for example, the payment method of the invoice determines the template field – like Payment Info Bank Transfer for the payment method Bank Transfer (see Configuring Payment Information Texts). JustOn Billing & Invoice Management then fills
- the PDF field with the text as rendered for the PDF, including HTML markup,
- the e-invoice field with the same text, with the placeholders rendered as plain values.
Be aware that HTML markup that is entered in the template field itself is not removed. It is copied to the e-invoice field, too. Likewise, content that only makes sense on the PDF, like a QR code table with a "Scan to pay" note, reaches the e-invoice. E-invoice recipients may reject such files.
To prevent this, you can define a separate e-invoice text for a template field. The e-invoice text is held in an optional template field whose API name is that of the original field followed by EInvoice – for example, PaymentInfoBankTransferEInvoice__c for PaymentInfoBankTransfer__c. If this field is filled, JustOn Billing & Invoice Management uses it as the source for the e-invoice field on the invoice, while the PDF field is still filled from the original template field.
Assume the following example: The template field Payment Info Bank Transfer holds an HTML table with the bank details and a QR code for the PDF. The template field E-Invoice Payment Info Bank Transfer holds the plain text Please transfer the amount within [PaymentDue] days, quoting the invoice number. On finalization of a bank transfer invoice with a payment due of 30 days, JustOn Billing & Invoice Management fills the invoice fields like this:
| Invoice Field | Value | Used for |
|---|---|---|
| Payment Info | HTML table with the bank details and the QR code | |
| Payment Info (E-Invoice) | Please transfer the amount within 30 days, quoting the invoice number. |
E-invoice, BT-20 Payment Terms |
E-Invoice Template Fields
The optional e-invoice template fields are not part of the JustOn Billing & Invoice Management package. The JustOn Configurator package E-Invoice Template Fields provides the following fields:
| Template Field | E-Invoice Template Field | Fills Invoice Field |
|---|---|---|
| Payment Info Bank Transfer | E-Invoice Payment Info Bank Transfer | Payment Info (E-Invoice) |
| Payment Info Credit Card | E-Invoice Payment Info Credit Card | Payment Info (E-Invoice) |
| Payment Info Credit Transfer | E-Invoice Payment Info Credit Transfer | Payment Info (E-Invoice) |
| Payment Info Direct Debit | E-Invoice Payment Info Direct Debit | Payment Info (E-Invoice) |
| Payment Info PayPal | E-Invoice Payment Info PayPal | Payment Info (E-Invoice) |
| Payment Info Online Payment | E-Invoice Payment Info Online Payment | Payment Info (E-Invoice) |
| Payment Info Future Payment | E-Invoice Payment Info Future Payment | Payment Info (E-Invoice) |
| Payment Info Paid | E-Invoice Payment Info Paid | Payment Info (E-Invoice) |
| Text 1 | E-Invoice Text 1 | Text 1 (E-Invoice) |
| Text 2 | E-Invoice Text 2 | Text 2 (E-Invoice) |
| Text 3 | E-Invoice Text 3 | Text 3 (E-Invoice) |
The mechanism applies to the other invoice texts as well. Administrators can create the corresponding e-invoice template fields themselves, using the same naming pattern. Once they exist, JustOn Billing & Invoice Management uses them without further configuration:
| Template Field (API Name) | E-Invoice Template Field (API Name) | Fills Invoice Field |
|---|---|---|
| DiscountMessage__c | DiscountMessageEInvoice__c | Discount Message (E-Invoice) |
| InstallmentsText__c | InstallmentsTextEInvoice__c | Installments Text (E-Invoice) |
| OutstandingInvoicesText__c | OutstandingInvoicesTextEInvoice__c | Outstanding Invoices Text (E-Invoice) |
| ReverseChargeText__c ReverseChargeTextEU__c ReverseChargeTextNonEU__c |
ReverseChargeTextEInvoice__c ReverseChargeTextEUEInvoice__c ReverseChargeTextNonEUEInvoice__c |
Reverse Charge Text (E-Invoice) |
Administrators can also create e-invoice fields on template details, like Text1EInvoice__c on the Template Detail object, to define separate e-invoice texts for a specific invoice type, like credit notes.
For details, see Defining Separate E-Invoice Texts.
Implementation Specifics
Be aware of the following specifics regarding separate e-invoice texts:
-
Empty values
An e-invoice template field that is empty, contains only spaces or contains
n/acounts as empty. In this case, JustOn Billing & Invoice Management uses the original template field. -
Template details
Template details keep their precedence. JustOn Billing & Invoice Management checks the template detail first (its e-invoice field, then its original field), then the template (its e-invoice field, then its original field). A
Text 1defined on a template detail therefore takes precedence overE-Invoice Text 1on the template. -
ON_ fields
ON_fields work for the e-invoice template fields like for all other template fields, for exampleON_Text1EInvoice__c. -
Payment information selection
The payment method, the invoice class and the invoice status determine which payment information applies, exactly as before. The e-invoice field only replaces the text of the selected payment information. Consequently,
E-Invoice Payment Info Paidtakes effect only ifPayment Info Paidis filled, too. The PDF and the e-invoice of an invoice always use the same payment information. -
Paid invoices
When an invoice becomes paid, JustOn Billing & Invoice Management writes
Payment InfoandPayment Info (E-Invoice)again, without resolving placeholders. Use static text inPayment Info PaidandE-Invoice Payment Info Paid. -
Placeholders
Placeholders like
[PaymentDue]are resolved on invoice finalization. A text copied to a draft invoice using Copy Text keeps the placeholders until the invoice is finalized. -
No HTML removal
The e-invoice template fields must contain plain text. JustOn Billing & Invoice Management does not remove HTML markup from them.
-
No empty e-invoice text
You cannot leave BT-20 or BT-22 empty while the PDF shows a text: if the e-invoice field on the invoice is empty, the e-invoice falls back to the PDF field, including its HTML markup. Specify a suitable plain text instead.
-
Access and naming
Users who create or finalize invoices need read access to the e-invoice template fields, and the fields must exist with the exact API names, without namespace prefix. Otherwise, JustOn Billing & Invoice Management silently uses the original template fields – there is no error message.
-
Existing invoices
Existing invoices keep their texts. Draft invoices that already hold a copied text keep it as well.
Cash Discount Support
JustOn Billing & Invoice Management supports the XRechnung SKONTO notation for early payment discounts out of the box. If the invoice specifies a cash discount, the software automatically appends the corresponding SKONTO entry to the payment terms (BT-20) element of the produced XRechnung file, like #SKONTO#TAGE=..#PROZENT=..#.
Note
This behavior applies to the e-invoice format XRechnung UBL for Germany only.
E-invoices produced for Peppol BIS Billing UBL, ZUGFeRD or an Avalara ELR country mandate do not include cash discount information.
To have JustOn Billing & Invoice Management produce a SKONTO entry in the XRechnung file, the invoice must set the Discount Rate field, which produces the PROZENT segment, and the Discount Payment Due field, which produces the TAGE segment. If Discount Payment Due is empty, the software falls back to the Payment Due field of the invoice. If Discount Rate is empty, no SKONTO entry is produced at all.
For an invoice that grants a 2 % discount for a payment within 14 days, the produced SKONTO entry would look like:
#SKONTO#TAGE=14#PROZENT=2.00#
If the payment terms already hold information text – taken from the Payment Info (E-Invoice) or Payment Info field of the invoice, see Separate Texts for E-Invoices – JustOn Billing & Invoice Management keeps this text and appends the SKONTO entry, separated by two empty lines.
XRechnung specification: SKONTO notation rules
The XRechnung specification defines the SKONTO notation in the business rule BR-DE-18. JustOn Billing & Invoice Management validates every produced XRechnung file against the official KoSIT validation rules before sending it. Files that do not comply with the SKONTO rules fail this validation with a BR-DE-18 error and are not sent.
| Rule | Specification |
|---|---|
| Segments | SKONTO, TAGE=n, PROZENT=n – in this order, separated by #, beginning and closing with # |
| Percentage | Without sign, separated by a period, with exactly two decimal places – a discount rate of 2 % must read 2.00, not 2 or 2.0 |
| Days | Without decimal places, like 14 |
| Line break | Every complete SKONTO entry must be followed by an XML-compliant line break |
| Character case | Upper case only |
| Whitespace | No additional whitespace – neither spaces, tabs nor line breaks – is allowed |
| Other content | No characters or texts other than specified above are allowed within a SKONTO entry |
The specification defines an optional fourth segment BASISBETRAG, which states the base value for calculating the discount if this value is not the amount due (BT-115) but only a part of it. JustOn Billing & Invoice Management does not produce this segment.
Warning
A custom field mapping for BT-20 replaces the complete payment terms, including the automatically produced SKONTO entry. If you override BT-20, you must reproduce the SKONTO entry yourself, observing the notation rules. In particular, mapping BT-20 to a formula field is known to drop the required trailing line break, which makes the file fail the validation with a BR-DE-18 error. As long as cash discount is the only reason for the override, JustOn recommends to not set up a custom mapping for BT-20 – the standard mapping already produces a compliant entry.
For details about the discount fields and their effects, see Cash Discount.
VAT Breakdown
An e-invoice summarizes its VAT amounts in the VAT breakdown (BG-23). JustOn Billing & Invoice Management produces the VAT breakdown from the invoice line items, grouped by the combination of VAT category code and tax rate. Information line items, sub invoice line items and rounding differences are excluded. That is, the e-invoice holds one VAT breakdown per combination of VAT Category Code and Tax Rate found on its invoice line items – an invoice whose line items use, for example, the standard rate and the reduced rate produces two VAT breakdowns.
The tax rule of the invoice line items does not affect this grouping. Invoice line items with different tax rules but the same VAT category code and tax rate end up in the same VAT breakdown.
For each VAT breakdown, JustOn Billing & Invoice Management fills the following fields:
| BT ID | Business Term | Value |
|---|---|---|
| BT-116 | VAT Category Taxable Amount | Sum of Pos. Total (net) over the invoice line items of the group |
| BT-117 | VAT Category Tax Amount | Sum of Pos. Total (tax) over the invoice line items of the group |
| BT-118 | VAT Category Code | VAT Category Code of the group |
| BT-119 | VAT Category Rate | Tax Rate of the group |
| BT-120 | VAT Exemption Reason Text | For the VAT category codes AE, G, K and O, a fixed text in the template language; for E, the VAT Exemption Reason Text of the invoice line items; empty for L, M, S and Z |
| BT-121 | VAT Exemption Reason Code | For the VAT category codes AE, G, K and O, the corresponding VATEX code; for E, the VAT Exemption Reason Code of the invoice line items; empty for L, M, S and Z |
For the fixed VAT exemption reason values per VAT category code, see Tax Rate.
Info
For the VAT category code E, JustOn Billing & Invoice Management does not provide fixed values. Instead, you provide the VAT exemption reason using the ON fields ON_VATExemptionReasonCode and ON_VATExemptionReasonText on the invoice line item source. The following conditions apply:
- Every invoice line item with the VAT category code
Emust specify bothVAT Exemption Reason CodeandVAT Exemption Reason Text. - All invoice line items with the VAT category code
Eon an invoice must specify the sameVAT Exemption Reason CodeandVAT Exemption Reason Text.
If an invoice violates one of these conditions, the invoice calculation fails.