Skip to content

Legal Entity Setup

A Legal Entity is one of your business organizations — the company that sends and receives invoices. Every TaprNext site needs at least one before you can process AP or AR.

Company master data (name, tax ID, address, PEPPOL registration) lives on the Legal Entity record. Day-to-day processing options — ERP connection, approval, invoice defaults — are configured per entity on Tapr Settings → General → Legal Entity Setup.

The setup wizard collects identity fields used for PEPPOL and invoices:

FieldPurpose
Company NameOfficial registered name (seller/buyer identity)
CountryISO country (PEPPOL scheme and validation rules)
VAT Number / Tax IDTax identification (compliance, matching)
Company IDBusiness registration number
CurrencyDefault currency for this entity
Street / City / Postal CodeRegistered address (required on PEPPOL invoices)
Contact Name / Email / PhonePEPPOL registration and support contact

The wizard entity becomes a row in Legal Entity Setup. Add more subsidiaries later with Add Row.

  1. Desk → Tapr Settings → General.
  2. In Legal Entity Setup, find the entity row.
  3. Click the Edit (pencil) control on that row.

The row editor shows identity (auto-fetched from the Legal Entity), Invoice Defaults, Approval Workflow, and ERP Integration.

Legal Entity Setup table and Edit

Use the pencil on a row to open the full per-entity form.

Legal Entity row form — identity

Top of the row editor: Legal Entity link, default flag, auto-fetched tax/country/currency, priority, and duplicate handling.

FieldDescription
Legal EntityLink to the Legal Entity master (required).
Is DefaultDefault entity for new invoices. Only one can be default.
Tax IDAuto-fetched from the Legal Entity (read-only display).
Company Reg. No.Auto-fetched registration number.
CountryAuto-fetched country.
CurrencyAuto-fetched currency.
PriorityLower value = higher priority when multiple entities match (e.g. buyer name). 0 is highest.
Duplicate Invoice ActionHow to handle the same vendor + invoice number: reject, suffix, replace, or skip. Leave blank for the global default.

Seller address and PEPPOL participant IDs are maintained on the Legal Entity / PEPPOL Registration records, not in this row form. A legal entity can hold several PEPPOL IDs (the PEPPOL IDs table on the Legal Entity, one row per registration, one marked default); see Legal Entity (company identity). See PEPPOL Registration.

Fallbacks used when extraction or matching cannot fill a value. Prevents processing failures on non-PO or poorly matched invoices.

Invoice Defaults

FieldDescription
Default VendorVendor account/code when the vendor cannot be matched in the ERP (required for reliable posting).
Default Item NumberLine item code for lines without an item match (recommended).
Default UOMUnit of measure for lines (must exist in the target ERP; e.g. Nos, Unit, EA).
Default CurrencyCurrency when not on the invoice.
Default PO NumberPO reference when none is found on the invoice.

Controls whether invoices need approval for this entity, and how workflow states interact with ERP posting.

Approval Workflow

FieldDescription
Require Approval WorkflowIf enabled, invoices go through approval after submission.
ERP Posting ModeManual — user clicks Post to ERP. Auto-Post — built-in adapter posts when the invoice reaches ERP Ready State. API-Managed — an external system confirms posting (e.g. via API).
ERP Ready StateWorkflow state name at which invoices become ERP-ready (must match an existing state, e.g. Approved).
Post-ERP Success StateState after successful ERP post (e.g. Posted to ERP).
Post-ERP Error StateState after failed post (editable states only, so users can fix and retry).
Auto-Advance Workflow StagesAutomatically advance stages (e.g. Draft → Extraction Review after AI; Approved → Posted to ERP if auto-post is on).

For site-wide rules (amount thresholds, default approver), see Approval Configuration.

Each entity can enable its own ERP connector. Connection fields depend on ERP Type (example below is ERPNext).

ERP Integration

FieldDescription
ERP Integration EnabledMaster toggle for this entity’s ERP connection.
Fetch AR Invoices from …When supported for the ERP type: pull outbound Sales Invoices from the ERP for PEPPOL send (ERPNext needs peppol_4_erpnext on that instance).
ERPNext Company Name (override)(ERPNext) Company name used to filter Sales Invoices. Leave blank to use the Legal Entity name.
ERP TypeConnector type, e.g. erpnext, d365, sap_s4hana, sap_b1, netsuite, xero, odoo, quickbooks, bexio, abacus, mock, …
URL / config fieldsType-specific connection UI (e.g. ERPNext URL).
API Key / secretsCredentials. Check Change ERP Secrets to view or update; leave unchecked to keep existing secrets.

Full connector steps: ERP Connections Overview.

  1. Open the Legal Entity row (Edit).
  2. Check Change ERP Secrets.
  3. Enter new credentials and Save on Tapr Settings.
  4. The checkbox resets after save; secrets stay encrypted at rest.
  1. Tapr Settings → General → Legal Entity Setup → Add Row.
  2. Link a Legal Entity master.
  3. Set priority, defaults, approval, and ERP for that company only.

Each entity has its own PEPPOL registration, ERP connection, approval behavior, and user permissions.