edoc D365 FO invoice cockpit Administration Guide
Breadcrumbs

Configure automatic processing for edoc invoice cockpit

Once you have defined the posting methods for the invoices, the next step is to set up automatic processing.

For details about setting up the posting methods see: Set up posting methods to categorize incoming invoices

Automatic processing is used to identify incoming invoices and map them to the correct posting method:

  • Define the process in the Header section. Always enter a meaningful name, e.g. Map posting method. You have thus summarized the process in the header.

  • In the Line section, enter the data for the mapping of the respective posting method. For each posting method, you define the order in which the posting method is processed and the set of rules to be used.

In the Condition column, enter the condition for the respective posting method and the associated action that is executed for the condition.

If you have already configured a posting method for invoices without a purchase order reference ("cost invoice”) and now want to use the posting method for fixed assets, the following applies:

You must adjust the condition for posting method for invoices without purchase order reference.

Booking method

(example)

Condition

Alternative conditions

Invoice without order reference

anchor.findData().findFirstPurchaseOrderId() == "" &&
anchor.findData().findFirstFixedAsset() == ""

anchor.findData().isInvoiceRegisterLedgerAccount()

Invoice for fixed asset

anchor.findData().findFirstPurchaseOrderId() == "" &&
anchor.findData().findFirstFixedAsset() != ""

anchor.findData().isInvoiceRegisterFixedAsset()

WaRe_Bestellung (short for invoice without order reference and purchase order)

anchor.findData().findFirstPurchaseOrderId() != ""

anchor.findData().isInvoicePurchaseOrder()

Things to know

You can use the selection list under Condition to select fields in order to define your own conditions. Example: anchor.Company == "DEMF" or anchor.InvoiceAccount == "123567".

You can also combine several conditions by placing a double ampersand (&&) or two pipe characters between the conditions. Example: anchor.Company == "DEMF" && anchor.InvoiceAccount == "123567" || anchor.Company == "USMF" && anchor.InvoiceAccount == "1484884"

You must create a rule for each posting method that is automatically assigned. The rule is automatically active.

Let's assume you want to define a set of rules for an invoice without purchase order reference of the type General ledger account.

To define the set of rules for automatic processing

  1. Go to edoc invoice cockpit > Setup > Bases > Automatic processing.

  2. Click on New in the menu to define a new rule.

  3. Enter the name for the rule in the Name field in the Header section. Be sure to choose a meaningful name, e.g. Map posting method.

  4. Click on New in the Line section to insert the condition for the posting methods.

  5. Enter a sequence number under Sequence to define the order of the check and mapping.

  6. Enter the posting method under Booking method.

  7. Under Condition, enter the expression with which the posting method is to be determined.

  8. Activate the entries in the respective row in the Active column.