Conversely, the lines can be automatically grouped, provided the following criteria are identical on the lines concerned:
You can define a journal by currency by indicating the posting currency in the header fields.
At this stage, managing the currency exchange rates to determine the amounts in accounting and reporting currency is made as follows:
Defining an analytical general ledger is made in the same way as a general document, but imposes an adapted document type and only entering the natures and dimensions concerned, which then becomes mandatory.
Refer to documentation Implementation
Click Lines to open a screen where you can define the journal entry lines to generate.
Fields
The following fields are present on this tab :
| Enter a unique code to identify the entry structure used to validate a document in accounting. |
|   |
|   |
Close
Presentation
Define the tables linked the triggering table. You can use the fields in these tables in the calculation formula for the previous grid.
Example: Information linked to the business partner record (BPSUPPLIER) for the journal entries can be linked to the invoice.
The second column in this grid defines the field in the triggering table whose value defines the linked record to be read. There are several possibilities: For an invoice, this can be the invoicing BP or the paying BP. Click the Selection icon for a list of possible fields.
In this grid, you can define the calculation formulas used to calculate the value of the fields in the journal entry header. The calculation formulas in this grid must be of the correct type. For example, if the amounts must be numeric, the journal code must be alphanumeric.
These calculation formulas can simply be constants in the most simple case. For example, the sales journals can be constant and called SAL: In this case, a calculation formula "SAL" is sufficient to define the journal. They can also be more complicated and include fields extracted either from the triggering table or from the links tables defined by the Linked table list explained above. In certain cases, a default value is assigned to the field if no calculation formula has been defined.
The VAT date defaults from the accounting date or the document date, depending on the DCLVATDAT – Date for tax declaration parameter (CPT chapter, VAT group) setting. However, you can enter a formula to use a custom date. This date must comply the legislation rules for the declaration.
Key fields in the header:
Close
Fields
The following fields are present on this tab :
Selection
| Select the module where the posting originates. |
|   |
| Enter the table code where the current records triggering the accounting structure are found. For example, to validate the sales invoices, enter the table storing the invoice headers. |
|   |
| Enter the database table where the master record or records are found with respect to the posting transfer. For example:
This table is covered in the order of a given index. By default, it is the first index. This parameter can be modified. |
| Select 1 Journal per line or Grouped journal to process a group of lines in the triggering table. You can choose an accounting document by line or a single global document. 1 Journal per line: This option generates one accounting journal entry when recording the triggering table. Example: When generating invoice account posts, for each record in the invoice file, an accounting journal entry is generated. The current record in the table at this time defines the invoice to be posted. Grouped journal: This option includes all the records in the triggering table. In this case, the table possesses a principal key in N sections and all the records are covered with the first P sections of the given key (P < N). Example: For open item statements (SOI automatic journal, GACCDUDATE table), the DUD2 key is used in three parts (the statement number, the internal identifier of the open item and the line number). One post is generated per open item statement. The table with the first part of the constant key (statement number) is browsed, exploring all its open items, to generate a single accounting document per note for all the open items browsed. |
| You can generate several documents based on a defined break in a detail table linked to the triggering table. Enter the name of the field where the break must be made. In the next field, you can enter the name of the break field. The lines in this type of journal entry are inevitably all Linked table lines corresponding to table in which the break criteria are found. Example 1
Example 2
|
| You can generate several documents based on a defined break in a detail table linked to the triggering table. Enter the name of the field in which the break occurs. The Entry split table field specifies the name of the table in which the break should be made. |
| You can intervene in the posting process in some places by calling subprograms. The action name corresponds to the label name defined in the process run when generating the automatic journal. You can intervene at two stages in the posting process:
|
|   |
|   |
|   |
Grid Linked table list
| Enter the name of the tables that must be on the line during the accounting validation of the documents. |
| Enter the name of the field in the principal table whose value is used to identify the key for the linked table. For example, in the case of an invoice, if access to the customer is required, you need to provide the field that is used to identify the customer code. In this example, there is a choice between several codes: bill-to customer, paying customer, statistical customer, etc. |
Grid Legislations
| This check box is selected if the automatic journal is active for the corresponding legislation set up in the folder. |
| This field displays the legislation set up in the folder. |
Block number 5
| Select this check box to authorize negative amounts in a posting. If it is not selected, a line containing a negative amount to the credit of an account becomes a line with a positive amount to the debit of this same account and a negative amount to the debit of an account becomes a positive amount to the credit of this same account. |
| Select this check box to accept entries that fall within a closed period that are then posted on the first date of the first open period. If it is not selected, the automatic posting is not created and an error is generated in the log file. |
| Select the internal naming structure when the triggering table is PAYMENTH:
The selection triggers automatic processes such as doubtful receipt entry, storage of intermediary treasury accounts, etc. The value is stored in the PAYACCNUM table and is also used to define the stages in payment entry. |
Special features
| Use this field to define the filter carried out on the triggering table. The posting is generated only if the value of the expression is verified. The fields of the triggering table and the different linked tables can be used in this expression. Example of expression : [TABLE]FIELD = VALUE where [TABLE] is the header triggering table. Only the recordings of the triggering table for which the FIELD = VALUE is used. If VGLOBALE = VALUE, the table will be used only if VGLOBALE = VALUE |
| Use this field to enter a formula such as AFNC.PARAM("FRAVAT",[F:SIH]CPY)="2". If a recording is not verified by the specified condition, it is not taken into account. The recordings must be filtered before the condition is tested on each one of them. |
Grid Formulas
|   |
| The evaluation of this expression is used to enter the value of the corresponding field in the accounting document header that will be generated by the structure. Two formulas specific to fixed asset automatic journalsThe two following functions can be used to retrieve the label of an automatic journal or that of its automatic journal lines. This information is then used in the setup of the journal to fill the label, the description, etc. of the posting.
|
Close
Action icon
Presentation
Use these fields to link grouped accounting documents to related original transactions in the main general ledger only. This in turn enables a direct link (Tracking/Payments) to related documents from the journal entry lines.
This is only possible for automatic journal groups and where auto journals are used in the payment process.
There are two tracking options:
1. Data linked to an accounting document such as an invoice or a payment.
Upstream traceability is automatic when you select the Traceability check box. Then, you select the Triggering table and Index.
This enables the following option on the accounting document line:
Payments: Provides direct access to each original payment.
Tracking: Opens the Follow-up of an accounting line screen to view a summary of original triggering documents. This screen displays a summary line for each payment and a total for all lines based on the fields entered in the Parameters grid. You can click the Payment line action for each payment to see details.
2. Data not linked to an accounting document such as open items, stock, fixed assets, etc.
Upstream traceability is not automatic and a detailed set up is required. In addition to the steps above, you need to enter an Action and set up the Parameters to display accurate data from the triggering table.
Fields
The following fields are present on this tab :
Block number 1
| Select this check box to enable tracking. When you select this check box, the remaining fields for traceability become available. |
| Enter the table that represents the link between the original document and the accounting entry. For example, between payments or stock movements and the accounting entry. |
| Enter the index code from the triggering table to include that data on the accounting entry lines. |
Block number 2
| Enter the generic action GASACCNUM1 to trigger the link. You also have the option to enter standard actions such as Object management, Inquiry, or Window entry. The action you enter affects the fields entered in the Parameters grid. |
Grid Parameters
| This field displays the code for the field. |
| Enter fields from the triggering table to display data when you select Tracking to open the Follow-up of an accounting line screen. This is required when setting up traceability for data not linked to an object. These fields maintain the link between the source data and the related accounting document lines. |
By default, the following reports are associated with this function :
GAUTACE : Automatic journals
This can be changed using a different setup.
The following fields are included on the window opened through this button : Grid Legislations
Grid Ledgers
Tables
Grid Linked tables
Line type
Dimensions
Grid Accounting codes
Close The definition of the characteristics of the entry lines is is triggered by the corresponding button. There is the possibility to select the different lines with the help of a left list, or to create new ones. These entry lines are characterized by a type, general conditions and a list of formulas so as to evaluate the various fields of the lines. The link gridThis grid is used to define the tables where the contents must be on-line for the determination of the posting line characteristics. The defined characteristics are the table name and the field that will give the value of the principal key. Only the tables directly linked either to the principal table of the automatic journal or to the general table (for the lines of the type Linked table) can be selected. The accounting code gridThis table is used to: define the links between the table of the lines and the annex tables (for example the products on the invoice line), in order to use the fields in the tables linked in this way in the field expressions for each line of the entry. determine the General account field (if it not determined completely by an expression, or if the expression is not defined) and Nature field (if it is not defined) by successively applying accounting codes (with respect to the order of the table declaration). An accounting code is an alphanumeric code present in the database records of the software, which is used to influence the entries generated from the information coming from the corresponding record. The accounting code table is characterized by the code type and the alphanumeric code defined for the user (for example FRANCE, EXPORT in the case of the codes linked to the customers, SERVICES, PRODUCTS in the case of the codes linked to the products). There are numerous accounting code types: Product, Customer, Supplier, Commercial, Buyer, Document, Company, Site, Currency, Tax, Footer, Discount, Bank, Payment, Fixed asset etc. For a given type, a group of definition lines characterized by a title is attached. For example, Purchase modifier, Sales modifier, Fixed asset modifier… in the case of a Product code type. Each of these lines is used to define either a general account, or a general account section (the non-defined characters being represented by x) and an analytical nature. The setup that is used to define the lines associated with an accounting code is defined in a dedicated function. During the automatic generation of the journal entries, the determination of the general account is made by successive searches of the accounting codes in the order declared, by looking to assigned only the portions of the account not yet determined. The analytical nature is successively searched for by passing through the accounting codes which only stops when a nature is defined. For instance: For a sales line, the accounting code is defined by the expression " 7xxxxxxx" and the following elements are present in the table of modifiers:
the accounting code is determined by 6 successive passes:
If the nature is not defined by a formula, searches are performed successively in:
the link to the product table is defined by an account code line. List of the fields to be completed in the accounting code grid.1. the accounting code type, the line number, which are used for the search for the account and the nature (the number is entered and the title is displayed, the selection window displays the title directly). 2. An expression is entered where the value corresponds to the key in the table linked (product, customer, supplier). 3. An optional logical expression. If this expression exists, the link to the table and the application of the accounting code are only implemented if the result of the expression evaluation returns the results equal to true. In the group of entered expressions, it is possible to use fields extracted from the on-line tables, which are:
|
The following fields are included on the window opened through this button : Block number 1
Block number 2
Close This button is used to copy an automatic journal to another folder. The grid of the formulas associated with the fields in the posting linesThis table is used to define calculation formulas for all the fields of each accounting document line. The calculation formulas must be of the correct type: the amounts must be numerical, the account code alphanumeric. These calculation formulas can be constants in the simplest cases. They can be more complicated and include fields extracted from the tables previously described, to which are added the tables defined by the accounting code table. You can use the index variable if the line type to be generated is repetitive. A group of variables exist that can be used by means of the syntax V_XXXXX. These variables are loaded by a call to a sub-program defined in the variable setup function. Otherwise, the call to a sub-program uses parameters. From the Formula field, select Parameters from the Actions icon menu to define the values for these parameters, by specifying an expression that can use constants, operators, functions and all the fields in the online tables. The Formula wizard is also available from the Actions icon menu to help write valid formulas. The most noteworthy fields in the entry lines are:
For BPCIN and BPSIN automatic journal codes:
The actions gridThis grid is used to define calls to the sub-programs for specific technical events in the accounting process. These sub-programs, identified by the name of the label and the process name are supplied as standard. It is therefore advisable to avoid modifying them. It is possible, within the framework of certain specific/custom processes, to write new processes associated with these actions. The technical events that exist are: Action before line creationUsed to define two criteria, CRITIMP and CRITMTC, according to the fields in the principal table with the abbreviation TB0 or the secondary table with the abbreviation [TB1]). These criteria are used, in the management of the entries linked to the payments and to group or not the lines. This action is used as standard with the following values:
Action after line creationIt is used in the management of entries linked to payments. This action is used as standard with the following values:
Link actionIt is used to call a sub-program to read the information linked in a non-standard fashion (it is placed at the level of each line). |
In addition to the generic error messages, the following messages can appear during the entry :
The syntax of the Adonix expression entered is not correct (for example the number of arguments of a function is not correct or even a bracket is missing). It should be noted that it is impossible to detect the more complex errors in the expressions (for example, division by zero, non-existent variable…). These errors will be detected at the time of the generation of the entries, a complete list will be found later.
This signifies that an attempt has been made to link from the triggering table to a table for which the dictionary does not recognize the link (for example, a link between the invoice header and the product table).
This can also arise if the link field is incorrect (when a table to be linked has been entered, the possible link fields can be chosen from a selection window).
This message is displayed if the index number used for an accounting code does not exist (for example, if an attempt is made to use index no.4 for a Buyer accounting code).
The errors given below can arise during the generation of the entries (on accounting validation of the invoice for example). The majority of these errors come from an imperfect setup. Some only happen if the maintenance operations have altered certain data.
The setup code called by the generation operation does not exist.
The triggering table is not accessible at the time of the generation.
The triggering table does not exist.
The number of elements in the keys for the principal table does not correspond to the expected number.
The value of the key corresponding to the current record in the principal table no longer exists or does not respond to the generation conditions.
The secondary table XXX given in the setups for the generation of a line does not exist.
The analytical table XXX given in the setups for the generation of a line does not exist.
(followed by an error message)
During the evaluation of the ZZZ field at the time of the journal entry generation, the error corresponding to the message that followed it has occurred. This error can be due to several reasons (non-existent variable, division by zero, etc.).
The link to table XXX linked to the header cannot be made (for example, in the case of an invoice, if XXX is BPC, the invoiced BP code does not exist).
This signifies that a reference has been made to a non-existent accounting code or a non-existent line number (the no. nnn) for a given accounting code (for example, the code no. 12 for the product accounting code).
The sequence number counter attached to the type of journal entry to be generated does not exist.
The range of numbers assigned to the type of journal entry to be generated has been exceeded.
The site field makes a reference to a non-existent site code after evaluation.
The company field makes a reference to a non-existent company code after evaluation.
The exchange rate corresponding to the given setups could not be found.
The type of journal entry ttt is non-existent.
The transaction could not be carried out (normally another error message will have appeared).
An attempt has been made to create a journal entry with a journal number corresponding to a journal entry that already exists in accounting.
An attempt has been made to create a journal entry with a journal number already assigned to a temporary journal entry.
An attempt has been made to generate a journal entry without lines.
An attempt has been made to generate an unbalanced journal entry.
An attempt has been made to create an unbalanced analytical distribution (in amount).
An attempt has been made to create an un-balanced analytical distribution (in quantity).
An attempt has been made to pass a posting to a non-existent account (this can only happen if the setup that makes the automatic creation of non-existent accounts possible has been deactivated).
This message type can arise during the control phases before the passing of the posting. These messages can be very varied, XXX being the code of the table and xxxxxxx the key on which the error occurred. For example, if the site and the company set up are not coherent, it is possible to have a message of the following type:
FCY AAA: This site is in the ZZZ company
(here, FCY is the abbreviation of the site table and AAA the corresponding site code)