Difference between revisions of "Appendix: Operators and functions"
From 1Archive help
(Created page with "When creating/editing a link= "Template", you have the possibility to use some operators or functions to automatically fill in a value of a field. <br/...") |
(No difference)
|
Revision as of 12:00, 13 January 2017
When creating/editing a "Template", you have the possibility to use some operators or functions to automatically fill in a value of a field.
Only text fields can be automatically filled in. These are:
|
The operators and functions are always constructed in the same way:
- Operators: #{OPERATOR(FIELDCODE, PARAMETER1, PARAMETER2)}
- Functions: #{FUNCTION(PARAMETER)}
Operators and functions can be used in combination with fixed text. |
The operators that can be used are all header- and technical fields. There are also some predefined functions available. See below for more details. |
For example:
When you receive an invoice from Electrabel every period, you can use an operator (in combination with fixed text) to automatically fill in the Comment field.
This would result in the following:
When an incorrect operator/function is given, an error will occur when the template is applied. |
The operators/functions are case sensitive, you have to enter the upper case codes of fields (not their name!). |
Contents
1 List of header field codes and their parameters
- SUPPCODE
- CODE
- NAME
- SUPPVATID
- CUSTCODE
- CODE
- NAME
- CUSTVATID
- JOURNAL
- CODE
- NAME
- INVOICENR
- INVDATE
- Dateformat
- Calculation
- COMMENT1
- OGM
- NETAMNT
- VATAMNT
- TOTAMNT
- CURRENCY
- CODE
- NAME
- YEAR
- CODE
- NAME
- PERIOD
- CODE
- NAME
2 List of technical field codes and their parameters
- SCANBATCH
- SCANUSER
- SCANNINGDATE
- Dateformat
- Calculation
- INCOMINGDATE
- Dateformat
- Calculation
3 List of functions and their parameters
- COMPANYBARCODE():
- COMPANYID()
- COMPANYCODE():
- COMPANYNAME(): get the name of the company of the document.
- COMPANYFIELD():
- DOCUMENTARCHIVEID():
- DOCUMENTID():
- DOCUMENTLIST():
- DOCUMENTTYPECODE():
- DOCUMENTTYPENAME():
- RECMETHOD():
- RECMETHODCODE():
- SCANBATCHTYPECODE():
- SCANBATCHTYPENAME():
- SCANNINGUSERNAME():
- OPTINPARTNERS():
- CUSTOMTEXT():
- ENCRYPT():
- IF():
- COUNTER():
- USERNAME(): get the name of the current user logged in.
- USERID():
- USERREALNAME():
- CURRENTDATE():
- GETQUARTER():
4 Date formats
Some operators/functions require a date format to be entered as a parameter. This is how those formats should be built:
- d: day
- M: month
- y: year
- H: hour
- m: minutes
- EOM: end of month
- BOM: begin of month