edoc invoice link for DATEV Administration Guide
Breadcrumbs

Use of standard functions in edoc invoice link for DATEV

In the edoc invoice link for DATEV administration, you can not only specify the header data and line item data of the invoice in the field configuration, but also specify a standard function. The standard functions are delivered with the app by default and cannot be deleted or edited.

On the administration page at <app_path>/admin, you can access the field configuration by clicking on Open field configuration.

The following functions are available to you:

  • companyId: Returns the company number of the batch.

  • sollHabenKz: Returns the posting indicator for a posting line. For more information see the explanation of the app variables invoice.amount-sign and credit_note.amount-sign.

  • getFiscalYearStart: Returns the start of the fiscal year (batch year in the format YYYY0101).

  • getDateFrom: Defines the start of the posting period from the start of the batch month. Example: The invoice date 27.04.2022 (2022-04-27) is set to 01.04.2022 (2022-04-01).

  • getDateTo: Sets the end of the posting period to the end of the month of the batch month. Example: The invoice date 27.04.2022 (2022-04-27) is set to 30.04.2022 (2022-04-30).

  • getTimestamp: Returns the current timestamp in the following format: <YearMonthDayHourMinuteSecondMillisecond>.

  • beleglinkEcmId: Returns a DATEV document link, e.g. FDMS "P000000010". The document link abbreviation is determined by the app variable export.beleglink_short.

  • accountLength: Returns the length of G/L accounts. The length is determined by the app variable export.account_length.

  • consultantNumber: Returns the DATEV consultant number. The consultant number is determined by the app variable export.consultant_number.

  • sachKontenRahmen: Returns the G/L chart of accounts to be used. The chart of G/L account is determined by the app variable export.account_chart.

  • resolveExchangeRate: Returns the converted exchange rate of the base turnover. The exchange rate is defined in edoc invoice and transferred from DATEV to edoc invoice.


Here's how

  1. Create a new field configuration or jump to the editing of an existing configuration.

  2. Select the Standard function entry under Mapping type.

  3. Enter the name of the function under Mapping details.

The function is executed when the field value is determined.