Book Contents

Book Index

Administrator

The Administrator module is used to initialise and maintain IS K2. The parameters of the entire K2 system are set here and service interventions are performed here. The activity of the module can be divided into five basic categories:

pic_856_2021.png

Picture: Tree menu of the Administrator module

Book Contents

Book Index

Transition of the system to a new year

When transitioning to a new year, it is necessary to set up the numbering of books in IS K2. Here we just list everything that needs to be done and must not be forgotten.

Filling the Business years and Periods code lists

In the Business years and taxes code list, business years must be entered for the respective years in which documents are to be created. This book is accessed from the tree menu Basic data – Business year.

pic_1201_2021.png

Picture: Business years and taxes code list

In the Periods code list, periods must be entered for the given years in which documents are to be created (periods for the whole year are created automatically with the Ctrl+F6 keys). This book is accessed from the tree menu Administrator – Code Lists – Periods.

pic_1318_2021.png

Picture: Periods code list

The script CreateNewYear.pas. is used to automatically create a new business year and periods

Book Contents

Book Index

Automatic transition to a new year

The CreateNewYear.pas script is used to create a new business year and periods and to set the new business year for selected users. The script can also be included in scheduled tasks. The new business year and periods will then be created automatically every year.

After the business year is changed, the script sends a notification about the change of the business year to the given users. The prerequisite is to have a script action created for this purpose and to have the script parameter "NotifAction" set correctly. When the script finishes, it sends an e-mail with information about the changes made / not made. To send the e-mail, the "RecipientEmail" parameter must be filled in and mail must be set up correctly in IS K2.

The script can restart application servers. For a successful restart of application servers, each of these services in Windows must have the option "Restart the Service" set in the failure fields on the Recovery tab; otherwise the service will not be started again. This does not need to be done manually, because the "Restart the Service" option is set by the K2_AS installation.

pic_10218_202410

Picture: AS restart settings

The possibility of restarting the application server can be controlled with the "RestartAS" parameter. However, the script cannot determine whether the application server has really been restarted and started up again.

Script parameters:

ValidityDays : Integer = 0

We enter the number of days from the current day to determine whether to create a new business year. It is checked whether the resulting date already exists in the existing business years.

Example: It is the year 2023, the business year is set to 1.1.2023 – 31.12.2023. We run the script on 31.12.2023.

a) ValidityDays = 2. If we add two days to the run date, we get the date 2.1.2024. This date is searched for in the business years already created. If a business year containing this date does not exist, a new business year (2024) is created. The business year is created by copying the current business year, so the original from/to dates are shifted by one year.

b) ValidityDays = 0. If we add 0 days to the run date, we get the resulting date 31.12.2023. This date is searched for in the created business years. The business year already exists, because it is the 2023 business year. No new business year is created.

AbbrFormat : Integer = 0

Setting of the format for creating the business year abbreviation. 0 – Year from Date from (e.g. 2023); 1 – Year from Date from/year from Date to (e.g. 2023/2024); 2 – shortened year from Date from/shortened year from Date to (e.g. 23/24).

DescrPrefix : WideString = ‚Rok‘

Prefix that is inserted into the Description field before the year identification.

CreatePeriod : Boolean = True

Whether new periods are to be created if they do not yet exist for the given business year.

SetPrefixUser : Boolean = True

Whether the new business year is to be set for all active users (Status = "active" in the Users book) who have the same current client set as the one under which the script is run.

WithOutUsers : String = ‚‘

Enumeration of internal user numbers separated by semicolons for which the new business year is not to be set. Only if the "SetPrefixUser" parameter = True.

NotifAction : Integer = 0

Number of the script action for sending notifications. Only for those who have active notifications. If the given action does not exist, no notification is sent. If notifications are not set up correctly, e.g. the licence is missing or there is no application server, the notification is not sent in that case.

RestartAS : Boolean = True

Whether all running application servers that run under the same client as the one under which the function was run are to be restarted.

RecipientEmail : WideString = ‚‘

E-mail address for sending information about the completion of the script. If no e-mail address is filled in, no e-mail is sent. For correct functioning, mail must be set up in IS K2.

Book settings
Setting the numbering of books for the next business year:

In each of the books listed below, the Business year (from) and Period to are set. If Unlim. is filled in for the Business year to, this book applies to all business years. If the business year is filled in with a specific year, the numbering must be set for the next year.

Numbering settings in "Administration of books" – it is not necessary to create a new record for each business year for the books; it is possible to have only the Default setting. If we have different settings in individual business years, we add records for further business years. This applies to these books:

pic_3470_2024

Picture: Numbering settings in "Administration of books"

pic_4967_2024

Picture: Book settings for the year 2023 – Books of sale

Setting the user's current business year

Each user can select the business year for a specific book. The business year is selected via Settings, which appear in the lower right part of the screen.

pic_4968_2021.png

Picture: Period setting

Summary
  1. You select the current business year for the book you have chosen in the right panel of the screen.
  2. Users who enter primary data – sales orders, invoices, release notes, bank statements, cash documents, etc. – set the new business year from 1 January.
  3. Accountants who are still posting documents of the old year keep the original business year.
  4. If someone enters data into both the new and the previous business year, they must take great care to set the current business year correctly.
  5. All numbering is merely a formal matter. A possible mistake has no significant influence on the operation of IS K2.