Definition of the journals, journal types and accounts in the payments
Determination of the journals, journal and account types in the payments
The journals, document and treasury account types used in the accounting journals for the payments can be set up. They are determined in cascade based on the manipulated data in the database (BP, Bank), the automatic journals or general parameters.
Journal entry type
The evaluation of the journal type is carried out in cascade following the rules specified below. The iteration stops at the first rule that is used to define the journal type:
- Journal type set up in the payment automatic journal.
- When not available, the journal type set up in the bank record, for the journal type, therefore the posting stage. This rule is only processed if the journal type is other than "None".
Journal
The evaluation of the journal is carried out in cascade following the rules specified below. The iteration stops at the first rule that is used to define the journal:
- Journal set up in the payment automatic journal.
- When not available, the journal set up in the bank record, for the journal type, therefore the accounting stage. This rule is only processed if the journal type is other than "None".
- When not the case, the journal set up in the general parameters JOUPAY*.
- Otherwise, the journal associated with the journal type.
Treasury account
The "Treasury account" term used here is generic. It is the account to be used to complete the previous stage. It can therefore be an intermediate account in case of intermediate payment and bank account in case of a bank receipt...
Moreover, all that follows is linked to the functioning of the variable for the automatic journal 'CPTTRESO' used as standard by the majority of automatic journals linked to the different payment steps. It is obvious that if the standard automatic journals are modified, this rule is no longer valid.
Finally, the rules specified below only apply if the bank is known at the time of the evaluation. The treasury account evaluation in the accounting structures that do not impose in the presence of the bank in the payment (in the case if the cashbook) use other rules: Accounting code associated with the business partners, JOUPAY* parameters, ...
The treasury account calculation is carried out in cascade following the rules specified below. The iteration stops at the first rule that is used to define the account.
- The treasury account set up in the bank record, for the journal type, therefore the accounting stage. This rule is only processed if the journal type is other than "None". Also implicit in this, it is only processed if a bank is associated with the payment.
- Otherwise, the control account associated with the journal. This assumes that this journal is of the treasury type. This journal is determined by the following rule cascade:
- The journal associated with the accounting stage for the payment in the bank record.
- Otherwise, the journal associated with the automatic journal.
- When not the case, the journal defined in the general parameters JOUPAY*.
- Otherwise, the treasury account is evaluated as a function of the accounting codes parameterized in the automatic journal.
- Otherwise, by the general parameter ACCDEF.
The practical consequences are as follows:
- If a journal of the type treasury (with a control account) is defined for a journal type, the treasury account that is moved during the corresponding accounting stage will always be this control account.
- If the assignment rule for the account depends on a parameter other than the journal (for example accounting codes), it is necessary that the journal is not of the type treasury.