Completing Optional E-Invoice Configuration
DE E-Rechnung
FR e-facture
← Configuring E-Invoice Creation
Enabling the e-invoice support in JustOn Billing & Invoice Management may include additional – optional or potentially required – tasks. They may be necessary for specific business use cases or if you have upgraded JustOn Billing & Invoice Management from an older version.
Optional tasks may include:
- Enabling the Peppol notification display
- Setting the e-invoice file as email attachment
- Enabling support for embedding additional documents
- Enabling the display of e-invoice statuses to users
- Disabling e-invoice validation warnings
- If applicable, enabling e-invoice statuses
- If applicable, enabling e-invoice provider statuses
Enabling Peppol Notification Display
If you distribute e-invoices via the Peppol Network, you will receive notifications about the distribution status from Peppol. JustOn Billing & Invoice Management stores this information in dedicated Peppol Notification records, which are related to the original invoice.
If required, you can display related Peppol notifications on the invoice detail view. To do so:
- Navigate to the object management settings of the Invoice object (
ONB2__Invoice__c
). - Click Page Layouts.
- In the Invoice Layout row, click to open the action menu, then select Edit.
- From the Related Lists palette, drag the Peppol Notifications list to the Related Lists section.
- Click Save.
- In the object management settings of the Invoice object, click Lightning Record Pages.
- Open the Invoice page details, and click Edit.
- Drag the Related List - Single component to an appropriate location of the Invoice record page.
- In the
Related List
field of the component properties, selectPeppol Notifications
. - Click Save.
-
Click Activate.
This makes the customized record page available to users.
For help about modifying page layouts, see Managing Pages.
Setting E-Invoice XML as Email Attachment
To send produced e-invoice XML files as email attachment, you specify the content version type E-Invoice
in the Invoice field Email File Types
. This field can be populated on invoice creation from other records like this:
ON_EmailFileTypes
from the account or invoice source record
↳ Email File Types
from the template
↳ Email File Types
from the business entity
Info
Be aware of the following specifics:
- If
Email File Types
remains empty, JustOn Billing & Invoice Management assumesInvoice PDF
as mandatory, making it preselected as email attachment. - If you want the invoice PDF to be preselected as email attachment in addition to the e-invoice XML file, set the two relevant content version types in
Email File Types
, likeInvoice PDF, E-Invoice
.
To define e-invoice XML files as email attachments from the invoice sources:
- Click to enter Setup, then navigate to the object management settings of the Account object or the source object.
- Click Fields & Relationships.
-
Create the following new field.
Field Label API Name Data Type Intended Value Email File Types ON_EmailFileTypes Text(255)
Formula (Text)E-Invoice
Your business may require to automatically set the intended file types depending on certain conditions. In this case, create a formula field with the return type
Text
, where the formula represents the intended logic. Otherwise, create a simple text field and let users specify the value manually.
To define e-invoice XML files as email attachments from the template or the business entity:
- Open the relevant template or business entity.
- Click Edit.
- In the
Email File Types
field, specifyE-Invoice
. - Click Save.
Enabling Supporting Document Embedding
Optionally, JustOn Billing & Invoice Management can embed the files that are attached to invoice records in the e-invoice XML files, such as the produced invoice PDF, files linked from source records or files uploaded manually by users. Any type of file you potentially want to embed in the e-invoice XML must be defined as a content version type – that is, they must be specified in the Type
field of the Content Version object. Files produced by JustOn Billing & Invoice Management are already assigned a proper type, like Invoice PDF
. If required, you can define a custom content version type to embed also other files in the e-invoice generation.
In addition, you define the files to be embedded in the e-invoice. To do so, 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
Supporting document embedding specifics
When configuring the files to be embedded in e-invoice XML files, be aware of the following specifics:
-
Once the Invoice field
Supporting Document Types
is set, no other business process will overwrite it.However, users can change the value as long as the invoice is not finalized.
-
If
Supporting Document Types
is left empty, JustOn Billing & Invoice Management will not embed any invoice attachments. - If
Supporting Document Types
contains the stringALL
, all invoice attachments with or without a defined content version type will be embedded in the e-invoice. -
If
Supporting Document Types
contains the stringBLANK
, all invoice attachments where the content version type is empty will be embedded in the e-invoice.Use
ALL
orBLANK
with extreme caution to avoid disclosing confidential information by mistake. -
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.
Defining Content Version Type
To define a custom content version type:
- Click to enter Setup, then navigate to the object management settings of the Content Version object.
- Click Fields & Relationships.
- Click the name of the
Type
field. -
In the Values section, click New.
Add the required content version types, like
Supporting Document
orT&C
, each in a new line. -
Click Save.
For help about editing picklists, see Modifying Picklist Values.
Defining Preselected Supporting Documents
To define the preselected supporting documents to be embedded in the e-invoice from the invoice sources:
- Click to enter Setup, then navigate to the object management settings of the Account object or the source object.
- Click Fields & Relationships.
-
Create the following new field.
Field Label API Name Data Type Value Supporting Document Types ON_SupportingDocumentTypes Text(255)
Formula (Text)comma-separated list of content version types Your business may require to automatically set the intended file types depending on certain conditions. In this case, create a formula field with the return type
Text
, where the formula represents the intended logic. Otherwise, create a simple text field and let users specify the value manually.
To define the preselected supporting documents to be embedded in the e-invoice from the template or the business entity:
- Open the relevant template or business entity.
- Click Edit.
-
In the
Supporting Document Types
field, specify the content version types as necessary.The field can contain multiple values in a comma-separated list.
Typical use cases for embedding files may include:
- invoice PDF file:
Invoice PDF
- invoice PDF file and invoice-related source documents:
Invoice PDF,Supporting Document
- invoice PDF file and terms and conditions:
Invoice PDF,T&C
- invoice PDF file:
-
Click Save.
Enabling E-Invoice Status Display
Users may require to easily assess the current status of the creation and distribution of an e-invoice in a graphical representation. To this end, JustOn Billing & Invoice Management provides a dedicated status component, which you can, optionally, add to the invoice record page.
To do so:
-
Open the Invoice record detail page in the Lightning App Builder.
- Navigate to an invoice.
- Click to open the Setup menu, then select Edit Page.
-
Modify the page layout.
Drag the
Invoice Process States
component (under Custom - Managed) to an appropriate region of the record page. -
Click Save.
-
Click Activate.
This makes the customized record page available to users, enabling them to easily assess the current e-invoice status on the invoice detail view.
For more details about editing Lightning pages, see Create and Configure Lightning Experience Record Pages in the Salesforce Help.
Disabling E-Invoice Validation Warnings
Optionally, you can disable e-invoice validation warnings. This way, JustOn Billing & Invoice Management will ignore e-invoice validation warnings and set the e-invoice status to Created
, even if the validation has produced warnings.
-
Click to enter Setup, then open Custom Settings.
In Salesforce Lightning, navigate to Custom Code > Custom Settings.
In Salesforce Classic, navigate to Develop > Custom Settings.
-
Click Manage in the row of Global Settings.
- Click Edit in the row of Default.
- Select the
Ignore EInvoice Validation Warnings
. - Click Save.
Enabling E-Invoice Statuses
To enable correct e-invoice handling, you may have to add the required status values manually if you have upgraded JustOn Billing & Invoice Management from an older version. To do so:
- Click to enter Setup, then navigate to the object management settings of the Invoice object (
ONB2__Invoice__c
). - Click Fields & Relationships.
- Click the name of the
E-Invoice Status
field. -
In the Values section, click New.
Add the relevant status values, each in a new line. The required values include
Not created
Validation Error
Created
Created With Warnings
Distribution Error
In Peppol Queue
-
Click Save.
This saves the specified status values as required.
For details about modifying the values of picklist fields, see Modifying Picklist Values or Add or Edit Picklist Values in the Salesforce Help.
Enabling E-Invoice Provider Statuses
To enable correct e-invoice handling, you may have to add the required provider status values manually if you have upgraded JustOn Billing & Invoice Management from an older version. To do so:
- Click to enter Setup, then navigate to the object management settings of the Invoice object (
ONB2__Invoice__c
). - Click Fields & Relationships.
- Click the name of the
E-Invoice Provider Status
field. -
In the Values section, click New.
Add the relevant status values, each in a new line. The required values include
Queued
Validation Error
Conversion Error
Send Error
Sent
Receiver Error
Received
-
Click Save.
This saves the specified status values as required.
For details about modifying the values of picklist fields, see Modifying Picklist Values or Add or Edit Picklist Values in the Salesforce Help.