We are implementing a deployment freeze on the following dates: Nov 20th - Dec 2nd and Dec 18th - Jan 4th

E-reporting field mapping

Prev Next

The e-reporting XML file is generated from the values held in the sofactoapp__ or fiix__ fields of the Frisbii e-invoice package. If, for your business needs, you have created custom fields to store certain information, or if a default value does not suit your case, you can use the Frisbii EReporting Mappings interface to set up custom mappings. These mappings populate the tags of the e-reporting flow sent to Ecosio with your own Salesforce fields, or force a fixed value into them.

It works exactly like the EInvoicing Mappings interface (see the article Custom field mapping). The only difference: tags are identified by their TT-Code (Annex 6 of the reform's external specifications, e-reporting semantic format), not by a BT-Code.

Scope

Mapping applies to transaction data for BtoBi/GtoBi invoices (flow 10.1), reported invoice by invoice. It does not apply to:

  • aggregated BtoC/GtoC transactions (flow 10.3, TG-31), calculated from several invoices;

  • payment data (flows 10.2/10.4);

  • the transmission envelope (TT-1 to TT-4), generated automatically;

  • the transmission Sender block (TT-7 to TT-11), configured separately (see the article Configure your company (sender)).

Accessing the configuration page

From the Salesforce App Launcher, search for and open EReporting Mappings.

Prerequisites to access the mapping interface:

  • have a Frisbii Admin license: without it, the page is read-only and the Save button is replaced by a license warning;

  • be a Salesforce System Administrator of the org or have the following permissions:

    • at profile or permission set level, the system permission Customize Application, which requires the system permissions "View Setup and Configuration, Manage Translation, Manage Custom Permissions".

Understanding the table

Each row of the table corresponds to a tag of the e-reporting XML.

Column

Content

XML Key

Technical name of the tag (e.g. SELLER_VAT_IDENTIFIER). The information icon shows its label in Annex 6.

TT/TG-Code

Code of the tag in Annex 6 (e.g. TT-34).

Magnifying glass

Opens the Salesforce field picker. Disabled when a fixed value is entered.

Relationship Path

Mapped field. Without a custom mapping, shows greyed out the path or value used by default by Frisbii App.

Active

Applies the row's mapping to the XML.

Hardcoded Value

Fixed value, used as is in every report.

How to set up a mapping

  1. Find the tag to customize by its XML Key or its TT-Code (e.g. TT-34 for the seller's VAT number).

  2. Click the magnifying glass on the relevant row to search for your custom Salesforce field.

  3. Search for and select the field in the results list. You can go up to 5 objects to find your custom field.

  4. Or enter a hardcoded value: it takes precedence over the field and disables the magnifying glass.

  5. Check "Active" to enable the mapping.

  6. Repeat for each tag to customize.

  7. Click Save.

Saving deploys the mappings in the background: it may take a few seconds, and a message confirms when it is done.

Application rules:

  • a row not checked Active is ignored: the standard Frisbii App value applies;

  • if the mapped field is empty on an invoice, the standard Frisbii App value applies for that invoice;

  • a mapping only applies to new generations: for a period already filed, generate a correction (RE).

πŸ’‘ Only use this table for specific needs: when your data is held in custom fields, or to replace a value assigned by default by the sofactoapp__ or fiix__ fields.

Field mapping table: e-reporting ↔ Frisbii

This table lists the 26 tags of flow 10.1 that can be mapped through EReporting Mappings. It is the reference for understanding where each piece of data in the XML file comes from, validating your tests, and setting up custom mappings. Paths start from the Invoice object (sofactoapp__Factures_Client__c), except LINE_* tags, which start from the Invoice Line (sofactoapp__Ligne_de_Facture__c).

Column legend:

  • Used by Frisbii: the field is mapped as standard by sofactoapp__ or fiix__ fields, or by a default value

  • Mapping possible: the field can be replaced by your custom fields through the EReporting Mappings page.

  • Duplication possible: the field can appear several times in the same XML file.

  • Mandatory (standard): the field is mandatory under Annex 6 of the external specifications (e-reporting semantic format).

  • Packaged version: version of the Frisbii e-invoice package from which mapping of the field is available.

Frisbii objects: LE = Legal Entity (Raison Sociale) Β· IL = Invoice Line

DECLARANT (ISSUER)

ID

Business term

Description

Used by Frisbii

Mapping possible

Duplication possible

Mandatory (standard)

Frisbii object

Frisbii fields

XPath

Version

Comments

TT-12

Declarant identifier type

Scheme of the declarant identifier (ISO 6523 list)

βœ…

βœ…

β€”

βœ…

β€”

Default 0002 (SIREN)

/Report /ReportDocument /Issuer /Id /@schemeId

0.30

Read once per report, from the first invoice of the batch

TT-13

Declarant identifier

SIREN of the declaring company

βœ…

βœ…

β€”

βœ…

LE

SIREN: sofactoapp__emetteur_facture__r.sofactoapp__SIREN__c

/Report /ReportDocument /Issuer /Id

0.30

Read once per report, from the first invoice of the batch

TT-14

Declarant company name

Name of the declaring company

βœ…

βœ…

β€”

βœ…

LE

Name: sofactoapp__emetteur_facture__r.Name

/Report /ReportDocument /Issuer /Name

0.30

Read once per report, from the first invoice of the batch

TT-15

Declarant role code

Role of the declarant in the transaction

βœ…

βœ…

β€”

βœ…

β€”

Default SE (seller)

/Report /ReportDocument /Issuer /RoleCode

0.30

Read once per report, from the first invoice of the batch

TT-16

Declarant electronic address

Electronic invoicing address of the declarant

βœ…

βœ…

β€”

β€”

LE

Electronic billing address: sofactoapp__emetteur_facture__r.fiix__ElectronicBillingAddress__c

/Report /ReportDocument /Issuer /URIUniversalCommunication /URIID

0.30

Tag omitted if the value is empty. Field shared with e-invoicing

INVOICE

ID

Business term

Description

Used by Frisbii

Mapping possible

Duplication possible

Mandatory (standard)

Frisbii object

Frisbii fields

XPath

Version

Comments

TT-19

Invoice number

Unique reference of the invoice

βœ…

βœ…

β€”

βœ…

Invoice

sofactoapp__Reference__c

/Report /TransactionsReport /Invoice /ID

0.30

TT-20

Issue date

Invoice issue date

βœ…

βœ…

β€”

βœ…

Invoice

Invoice date: sofactoapp__Date_de_facture__c

/Report /TransactionsReport /Invoice /IssueDate

0.30

A mapped date must use the YYYYMMDD format

TT-21

Invoice type code

Code identifying the document type (UNTDID 1001 list)

βœ…

βœ…

β€”

βœ…

Invoice

Frisbii covers: 380: Commercial invoice / 381: Credit note / 386: Down payment invoice β€” derived from sofactoapp__Type_de_facture__c and sofactoapp__Sous_type__c

/Report /TransactionsReport /Invoice /TypeCode

0.30

TT-24

VAT due date type code

Indicates that VAT is due on the invoicing date (accrual basis)

βœ…

βœ…

β€”

β€”

LE

3 if the issuer applies VAT on an accrual basis (fiix__EReportingVatDueBasis__c = Sur les dΓ©bits), otherwise tag absent

/Report /TransactionsReport /Invoice /TaxDueDateTypeCode

0.30

TT-28

Business process

Business process type

βœ…

βœ…

β€”

βœ…

β€”

Default S1

/Report /TransactionsReport /Invoice /BusinessProcess /ID

0.30

TT-29

Profile type

Document profile

βœ…

βœ…

β€”

βœ…

β€”

Default e-reporting

/Report /TransactionsReport /Invoice /BusinessProcess /TypeID

0.30

SELLER

ID

Business term

Description

Used by Frisbii

Mapping possible

Duplication possible

Mandatory (standard)

Frisbii object

Frisbii fields

XPath

Version

Comments

TT-33

Seller identifier

SIREN of the seller

βœ…

βœ…

β€”

βœ…

LE

SIREN: sofactoapp__emetteur_facture__r.sofactoapp__SIREN__c

/Report /TransactionsReport /Invoice /Seller /CompanyId

0.30

TT-33-1

Seller identifier scheme

Scheme identifier code (ISO 6523 list)

βœ…

βœ…

β€”

βœ…

β€”

Default 0002 (SIREN)

/Report /TransactionsReport /Invoice /Seller /CompanyId /@schemeId

0.30

ECOSIO

Seller company name

Name of the seller (Ecosio extension)

βœ…

βœ…

β€”

β€”

Invoice

sofactoapp__RS_Emise__c

/Report /TransactionsReport /Invoice /Seller /Name

0.30

Outside the Annex 6 standard, required by Ecosio. Written only if the configured AP is Ecosio

TT-34

Seller VAT number

Intra-community VAT number of the seller

βœ…

βœ…

β€”

β€”

Invoice

sofactoapp__RS_TVA_intra_Emise__c

/Report /TransactionsReport /Invoice /Seller /TaxRegistrationId

0.30

Prefixed with the country code (e.g. FR12345678901)

TT-34-0

Seller VAT number qualifier

Tax identifier qualifier

βœ…

βœ…

β€”

β€”

β€”

Default VAT

/Report /TransactionsReport /Invoice /Seller /TaxRegistrationId /@qualifyingId

0.30

TT-35

Seller country code

2-letter ISO 3166 country code

βœ…

βœ…

β€”

βœ…

Invoice

sofactoapp__RS_Pays_Emise__c

/Report /TransactionsReport /Invoice /Seller /PostalAddress /CountryId

0.30

2-letter ISO code expected

BUYER

ID

Business term

Description

Used by Frisbii

Mapping possible

Duplication possible

Mandatory (standard)

Frisbii object

Frisbii fields

XPath

Version

Comments

TT-36

Buyer identifier

Buyer identifier (SIREN/TIN)

βœ…

βœ…

β€”

β€”

Invoice

sofactoapp__SIREN_NIF__c

/Report /TransactionsReport /Invoice /Buyer /CompanyId

0.30

Scheme (@schemeId) derived from the buyer's country, not mappable

ECOSIO

Buyer company name

Name of the buyer (Ecosio extension)

βœ…

βœ…

β€”

β€”

Invoice

sofactoapp__ACC_Nom_du_compte_Emise__c

/Report /TransactionsReport /Invoice /Buyer /Name

0.30

Outside the Annex 6 standard, required by Ecosio. Written only if the configured AP is Ecosio

TT-38

Buyer VAT number

Intra-community VAT number of the buyer

βœ…

βœ…

β€”

β€”

Invoice

sofactoapp__ACC_TVA_intra_Emise__c

/Report /TransactionsReport /Invoice /Buyer /TaxRegistrationId

0.30

Prefixed with the country code (e.g. DE123456789)

TT-38-0

Buyer VAT number qualifier

Tax identifier qualifier

βœ…

βœ…

β€”

β€”

β€”

Default VAT

/Report /TransactionsReport /Invoice /Buyer /TaxRegistrationId /@qualifyingId

0.30

TT-39

Buyer country code

2-letter ISO 3166 country code

βœ…

βœ…

β€”

βœ…

Invoice

sofactoapp__ACC_Pays_Facturation_emise__c

/Report /TransactionsReport /Invoice /Buyer /PostalAddress /CountryId

0.30

2-letter ISO code expected

AMOUNTS AND VAT

Line tags are aggregated by VAT rate on the invoice: the XML does not contain the line details, but one subtotal per VAT type/rate pair.

ID

Business term

Description

Used by Frisbii

Mapping possible

Duplication possible

Mandatory (standard)

Frisbii object

Frisbii fields

XPath

Version

Comments

TT-202

VAT amount currency

Currency code of the total VAT amount

βœ…

βœ…

β€”

βœ…

β€”

Default EUR

/Report /TransactionsReport /Invoice /MonetaryTotal /TaxAmount /@CurrencyCode

0.30

TT-54

Taxable amount

Amount excl. VAT subject to the VAT rate

βœ…

βœ…

β€”

βœ…

IL

Total amount excl. VAT: sofactoapp__Montant_total_HT__c

/Report /TransactionsReport /Invoice /TaxSubTotal /TaxableAmount

0.30

Also feeds TT-51 (total excl. VAT). A mapping changes the VAT subtotals of the whole invoice

TT-56

VAT type code

VAT category (e.g. exemption)

βœ…

βœ…

β€”

βœ…

IL

VAT exemption: sofactoapp__Exon_ration_Vat__c

/Report /TransactionsReport /Invoice /TaxSubTotal /TaxCategory /Code

0.30

Also feeds TT-58/TT-59 (exemption reason). A mapping changes the VAT subtotals of the whole invoice

TT-57

VAT rate

Applicable VAT rate

βœ…

βœ…

β€”

βœ…

IL

VAT rate: sofactoapp__Taux_de_TVA_list__c

/Report /TransactionsReport /Invoice /TaxSubTotal /TaxCategory /Percent

0.30

Also feeds TT-54/TT-55. A mapping changes the VAT subtotals of the whole invoice