Posting Setup

Posting setup controls how incoming electronic documents are translated into Business Central purchase documents. The centerpiece is the Vendor Posting Setup — a smart routing engine that maps incoming invoice lines to the correct G/L accounts, dimensions, and posting groups based on a combination of vendor, item, and cost centre rules.

This is one of eMessaging’s key differentiators. Where most solutions offer simple vendor-level defaults, Vendor Posting Setup provides granular, line-level control with conditional rules and percentage-based line splitting.

Vendor Posting Setup (Smart Routing Engine)

The Vendor Posting Setup determines how each line on an incoming invoice is coded. It uses a composite primary key and supports conditional rules, templates, and line splitting.

To manage it, search for Centara Vendor Posting Setup in Business Central.

Primary key

Each Vendor Posting Setup entry is identified by a composite key of three fields:

Key fieldDescriptionExample
Vendor No.The vendor this rule applies toV10000
Item Sellers IDThe vendor’s item/product identifier from the electronic documentCONSULT-HR, ITEM-4567, or blank for a default rule
Accounting CostThe cost centre or accounting cost code from the documentDEPT-FINANCE, CC-200, or blank for a default rule

The system finds the most specific match first:

  1. Vendor + Item Sellers ID + Accounting Cost — exact match on all three fields
  2. Vendor + Item Sellers ID — match on vendor and item, any cost centre
  3. Vendor + Accounting Cost — match on vendor and cost centre, any item
  4. Vendor only — fallback default for this vendor
  5. Global default — if no vendor-specific rule exists

Posting fields

Each Vendor Posting Setup entry maps to these posting fields:

FieldDescription
G/L Account No.The general ledger account to post to
VAT Prod. Posting GroupVAT product posting group for the line
Gen. Prod. Posting GroupGeneral product posting group for the line
Dimension Code 1First dimension code (e.g., Department)
Dimension Value 1Value for the first dimension
Dimension Code 2Second dimension code (e.g., Project)
Dimension Value 2Value for the second dimension
Description TemplatePattern for generating line descriptions
Auto-PostAutomatically post the document after approval (vendor-level override)

Conditional rules

Beyond the primary key match, you can define additional conditional rules that further refine how lines are coded:

ConditionDescriptionExample
VAT CategoryApply different rules based on the VAT category code from the documentStandard rate (S) vs. reverse charge (AE)
Commodity CodeRoute based on commodity or product classification codesUNSPSC codes, CPV codes
Document Reference TypeDifferent coding for invoice vs. credit memo vs. prepayment380 = commercial invoice, 381 = credit note
Amount RangeApply rules based on line amount thresholdsLines over 10,000 EUR route to a different account
Currency CodeDifferent rules for foreign currency invoicesEUR vs. ISK transactions

Line splitting

A powerful feature for invoices that need to be distributed across multiple G/L accounts or dimensions. You can split a single incoming line into multiple purchase invoice lines based on percentage distribution.

Example: An incoming invoice line for “Office Services — Q4” at 10,000 EUR can be automatically split:

SplitG/L AccountDimensionPercentageAmount
Split 16100 (Administration)DEPT-ADMIN40%4,000 EUR
Split 26200 (IT)DEPT-IT35%3,500 EUR
Split 36300 (Facilities)DEPT-FAC25%2,500 EUR

To configure line splitting:

  1. Open the Vendor Posting Setup entry.
  2. Select Line Splits from the action bar.
  3. Add split lines with G/L Account, Dimensions, and Percentage.
  4. Percentages must total 100%.

When a line matches a Vendor Posting Setup entry that has splits configured, eMessaging creates multiple purchase invoice lines automatically.

Template-based configuration

For vendors with consistent posting patterns, you can create a Vendor Posting Template with default G/L accounts, posting groups, dimensions, and automation settings. Templates also support Advanced Templates with conditional routing based on Accounting Cost codes, VAT categories, and other document fields.

See Vendor Posting Templates for full details.

Creating a Vendor Posting Setup entry

  1. Open Centara Vendor Posting Setup.
  2. Select New.
  3. Enter the Vendor No.
  4. Enter the Item Sellers ID (or leave blank for a vendor-level default).
  5. Enter the Accounting Cost (or leave blank for any cost centre).
  6. Configure the posting fields (G/L account, posting groups, dimensions).
  7. Optionally configure line splits and conditional rules.
  8. Close the page to save.

Best practices

  • Always create a vendor-level default (blank Item Sellers ID and Accounting Cost) for each vendor. This catches any lines that do not match more specific rules.
  • Use line splitting for shared-service invoices that span multiple departments.
  • Use templates when onboarding vendors with consistent but large product catalogs.
  • Test with a sandbox document before going live with new rules.

GL account mapping (legacy)

The GL account mapping page provides a simpler, item-code-based mapping as an alternative to the full Vendor Posting Setup. It is retained for backward compatibility.

FieldDescription
External Item CodeThe item identifier from the electronic document
G/L Account No.The Business Central GL account to post to
VAT Prod. Posting GroupOverride VAT product posting group for this mapping
Gen. Prod. Posting GroupOverride general product posting group

When a line on an incoming document matches an external item code in the mapping, the corresponding GL account and posting groups are used. However, for new implementations, the Vendor Posting Setup is recommended as it provides more control.

Line descriptions

You can customize how purchase line descriptions are generated using description templates. Templates support the following placeholders:

PlaceholderReplaced with
{Name}Item name from the electronic document
{Description}Line description from the electronic document
{OrderRef}Purchase order reference
{VendorItemNo}Vendor’s item number (Item Sellers ID)
{ExternalDocNo}External document number
{AccountingCost}Accounting cost code from the document
{Period}Invoicing period (if present in the document)

Example: A template of {Name} - {OrderRef} ({AccountingCost}) on a line with item name “Consulting Services”, order reference “PO-1234”, and accounting cost “DEPT-IT” produces: Consulting Services - PO-1234 (DEPT-IT).

Posting controls

These settings affect how all incoming documents are posted, regardless of vendor-specific rules.

SettingDescriptionDefault
Allow Posting Date OverrideUse the document’s date instead of the work dateYes
Validate VAT RegistrationCheck the sender’s VAT number before postingYes
Require Approval Before PostDocuments must be approved before they can be postedNo
Default Document Date SourceUse the invoice date or the receiving dateInvoice Date
Duplicate Invoice CheckBlock posting if an invoice with the same external document number exists for this vendorYes
Allow Zero-Amount LinesWhether lines with zero amount are created on the purchase invoiceNo