In the administration, you can not only specify the header data and line item data of the invoice in the field configuration, but also add a standard function. The standard functions are delivered with the app as standard and cannot be deleted or edited.
You can open the configuration page of the app in the app menu (app drawer, 9-dot menu) in the edoc invoice link section.
The following functions are available to you:
-
IsCreditNote: Checks whether the document is an invoice or a credit memo, whether the net amount of the line is negative or positive and returns true ('T') or false ('F') accordingly. For more information see: How does the standard function "IsCreditNote" work?
-
CompanyId: Triggers the logic for the company number that can be controlled via the configuration variable igfCompanyId and returns the corresponding company ID.
-
InvoiceType: Returns ITE_CREDITNOTE for credit memos and ITE_INVOICE for invoices.
Here's how
-
Create a new field configuration or switch to an existing configuration.
-
Select the Standard function entry under Mapping type.
-
Enter the name of the function under Mapping details.
The function is executed when the field value is determined.