Book Contents

Book Index

System

From the System menu in the Administrator module, functions can be started for setting up the main menu of the web K2, database administration, the book of modules, administration of scheduled tasks, etc.

pic_777_2023

Picture: Opened menu of the Administrator – System module

Book Contents

Book Index

Main menu

The Main menu is a newly created module that is used to set up the tree menu for the web K2. It allows K2 administrators to adjust the main menu of the web K2 according to their own needs. They can add further modules, books, code lists, etc., change the order or invalidate individual records. Invalidated records (e.g. books) will not be displayed in the main menu of the web K2.

To work with the Main menu module, the rights Other – General – New main menu (2215), View main menu (2213) and Edit main menu (2214) must be set.

The main menu is started from the tree menu Administrator – System – Main menu.

pic_7457

Picture: Main menu module

pic_7458

Picture: Web K2 – main menu

Book Contents

Book Index

New record

A new record is created with the Ins key or the New button.

pic_7459

Picture: Record detail

Description of fields:

Name

Name of the folder, book, code list or function.

Icon

Icon that will be displayed in the main menu. We recommend using images in svg format.

Folder

We check the field when we create a folder to which we will subsequently add further records.

Superior record

A specific superior record can be assigned to the record. Another way to place a record under a specific node is to drag the record with the mouse or use the Ctrl+Shift+Up(Down) keys on the List tab. In this case, the field is filled in automatically.

Description

Any description.

ShortCut

If someone sends us a shortcut definition, e.g. by e-mail, we can copy it directly into this field, or we select it manually by clicking pic_539i and choose what we want to add.

PIC_7460

If we select, e.g., K2 book, a form for selecting the Data module appears. After filling in the data module, we confirm the form with the OK button.

pic_7461_2024

Picture: "Book" shortcut

pic_7462_2024

Picture: "Function" shortcut

Individual records or even entire nodes can be moved in the structure by dragging with the mouse, using the arrows or with the Ctrl+Shift+Up(Down) keys. Records that we do not want to see in the main menu of the web K2 can be invalidated with the Invalidate button or the F8 key. It is also possible to invalidate several marked records at once with the Invalidate button on the Bulk actions tab. The Bulk action button allows the icon, name, description and superior record to be changed in bulk on the marked records.

pic_7475

Picture: Main menu – invalidated records

Book Contents

Book Index

Administration of books

Administration of books is used for inserting books of individual data modules. It was created for better clarity and easier entry of books of individual data modules.

Administration of books is located in the tree menu Administrator – System – Administration of books. To work with Administration of books, the following right must be set: Service operations.

pic_2545_2024
Picture: Administration of books

To create a new book in the given module, we use the Ins key. To edit an existing book, we open it with the Enter key or by double-clicking the left mouse button. Deleting records is prohibited.

Books can be created with book abbreviations longer than 2 characters. You can thus distinguish books, e.g., by the partner's location (e.g. the company "Servis - Ostrava" and "Servis - Praha").

Description of the form for creating or editing a record

Book detail tab

pic_2548_2024
Picture: Administration of books – Book detail tab

Description of fields:

Abbreviation

Abbreviation of the newly created book. The maximum length is 6 characters.

Company

A list of all companies that have the "Display" flag set in the Selection of displayed companies form + the current own company is offered for selection. When a new book is created, the current own company is automatically inserted into the Company field.

Only users of this company within the set client will then be able to work with the book.

Description

Description of the book specifying the given book in more detail.

Language description

Description of the book that we set in the Language field book (Descr. translations button). It is then displayed in the table.

Record access group

Individual books can be accessible only to users who have a specific group right defined. A group right can be assigned with the Group rights button.

Legislation

Legislation for the given book.

Set numbering

After clicking the button, the numbering defined on the Default numbering tab is set. It projects the numbering definition into the operating tables intended for document numbering. The function is used only when there are problems with numbering.

Default setting tab

The Default setting tab is different for each module. The description of this tab is given in the relevant part of the documentation to which the book relates.

pic_2549_2024
Picture: Administration of books – Default setting tab

Default numbering tab

On this tab, the numbering of documents in the selected book is set.

pic_2550_2024
Picture: Administration of books – Default numbering tab

Editing a numbering record:

pic_2556_2024
Picture: Form for inserting a new numbering record

Description of fields:

Document

Drop-down field for selecting the document type for which we set the numbering.

From

Here we set the number from which the documents will be numbered. If we do not fill in the field, the documents will be numbered from 1.

Current

Automatically filled-in number according to the last created document.

To

We set the maximum number up to which the documents will be numbered. By default, it is set to "9999999".

Forbidden

If this option is checked, the creation of new documents in the given book is prohibited.

Business year tab

By default, the book settings are the same for all business years. This means that the settings on the Default setting tab apply to all business years. We therefore do not have to fill in the settings for each business year separately. If we wanted to set different conditions for a certain business year, we must create this business year on the Settings for business years tab. (For example, a business year for 2023 is created in the picture.)

pic_2559_2024
Picture: Administration of books – Business year tab

Inserting a new business year

The business year settings are made only for the given year. By opening the Business year drop-down field, we select the required year from the Business year book.

pic_2561_2024
Picture: Business year – Administration of books

Settings for business years

On this tab, we set the parameters for the given business year. The fields are the same as in the form Administration of books – Default setting.

pic_2562_2024
Picture: Business year – Settings

Book Contents

Book Index

Licence administration

Licence administration provides an overview of information about the K2 system licence, including licensed modules, e-shops and currently logged-in users. The function is available in the tree menu Administrator – System – Licence administration.

To work with Licence administration, the following is required: right No. 1 – Administrator / General / Service operations.

pic_1119_2026

Picture: Administrator – System – Licence administration – Licence administration tab

Description of fields:

Edition type

Type of the purchased program edition (Business, Professional, ...).

Branch No.

Branch number.

Branch name

Name of the specific branch.

Code

Manufacturer's security code.

Licence owner

Name of the licence owner (company).

Licence No.

Licence number (see the purchase contracts).

Version

Generation number of the version.

Subversion

Second part of the version number.

Created on

Date and time the given licence was created.

Users

 

 

Concurrent users

Total number of users who can be logged in.

 

Number of users for workflow

Number of purchased licences of the Workflow module.

Performance

 

 

Number of application servers

Number of application servers.

 

Number of services for scheduled tasks

Number of purchased licences for scheduled tasks.

 

Number of API threads

Number of computing threads used by the web services server.

 

Number of load balancer components

Number of purchased balancers. The Load Balancer is an element of the K2 architecture that can be used to distribute the load between several application servers, which can serve both the K2 API and K2 Web.

E-commerce

 

 

Number of eshops

Number of purchased licences for e-shops. All licensed e-shops must be defined on the E-commerce tab. All other e-shops will be marked as test e-shops and it will not be possible to send an order from them.

 

Number of premier e-shops

Number of purchased licences for a premier e-shop. All licensed e-shops must be defined on the E-commerce tab. All other e-shops will be marked as test e-shops and it will not be possible to send an order from them.

 

Number of marketplace connectors

Number of purchased licences for marketplaces. All licensed marketplace connectors must be defined on the E-commerce tab.

Services

 

 

Notification service

A checked field means that the user has purchased a licence for the Notification service.

Modules

 

 

Financial planning

A checked field means that the user has purchased a licence for Financial planning.

 

Managerial overviews

A checked field means that the user has purchased a licence for Managerial overviews.

 

Wages

A checked field means that the user has purchased a licence for Wages.

 

Documents administration

A checked field means that the user has purchased a licence for Document management (DMS).

 

Attendance system

A checked field means that the user has purchased a licence for the module Attendance system.

Legislation

Within one K2, it is possible to keep several own companies with Czech or Slovak legislation. A checked field indicates which legislation the user has purchased.

List of companies

A list of companies for which the licence is valid is displayed.

Additional information

 

Reserved users tab

List of users who have a licence reserved for their login. The number of these reserved "users" can be arbitrary. It is included in the total number of available licences (see the Concurrent users field). In this way, licences can be reserved, for example, for users or for running scheduled automatic tasks.

Logged-in users tab

The Logged-in users tab displays a list of users currently logged into the K2 program. For each login, the client under which the user is logged in, the user's name and description, the station from which they are logged in, the session number, the login date and time and the licence type are given. The total number of logins (consumed licences) can then be read from the total number of records in the table – the numeric data in the lower left corner (current record number / total number of records).

pic_1012_2024

Picture: Administrator – System – Licence administration – Logged-in users tab

pic_9884_202402

Picture: Administrator – System – Licence administration – AS user record

Limits per client tab

Here we can limit the number of logins to individual clients. In the Users code list, on the Basic data (page 1) tab, it is then possible to specify to which clients the users will be able to log in.

E-commerce tab

On the E-commerce tab, we define licensed e-shops and marketplace connectors. All websites, e-shops and marketplaces entered here will work without restrictions. The others will be marked as test ones and it will not be possible to send an order from them.

pic_10109

Picture: Administrator – System – Licence administration – E-commerce tab

The Import licence button is used to import the licence file into the database. The button has the same meaning as Import licence when completing the program installation. In this form, the button can be used, e.g., to change the licence.

The Set production button is used to set the K2 installation as production. The button has the same meaning as the Production option during program installation.

pic_3906_2024

Picture: K2 installation settings

Both the K2 installer and the K2 application send online information about licence usage to K2 atmitec. This information includes the Company name, version and edition of K2, the server name, catalogue and client, number of users and database platform identification.

This information is used to make further planning of K2 development more efficient and to prevent possible incompatibilities. To distinguish whether a given K2 installation is used as production, it is necessary to use the option to register the installation as production in the K2 installer or directly in the K2 application (Administrator – System – Licence administration).

Non-production K2 installations are regarded as test installations; their functionality is limited. If K2 is not set as "Production", a red bar with the text "Test Test Test Test" is displayed on the main form. This text is also displayed as a watermark on reports. In the non-production state, the K2 icon is greyed out.

pic_3907_2021.png

Picture: K2 desktop – "Non-production" K2

pic_3908_2021.png

Picture: Windows operating system taskbar – shortcut icon of a "Non-production" K2

Book Contents

Book Index

Progress of license usage over time

In the data module, we find licence usage on a timeline. It replaces the LicenseCounterGraph.am report.

pic_7780

Picture: Licence usage over time

After opening the module, a module with a licence usage chart is displayed. This module is for display only; no data can be inserted into it.

pic_7781

Picture: Licence usage over time – bar chart

Description of fields:

Maximum number of logged-in users

Maximum logins in the set period.

Sampling period

It can take values in days, hours, minutes, etc.

Number of samples

Number of samples per period.

Date from

Date from which the data is to be displayed.

Date to

Date up to which the data is to be displayed.

Using the gear wheel located in the right part of the module, we can change the chart to either a bar chart or a line chart.

pic_7782

Picture: Licence usage over time – line chart

Description of buttons:

Close

The function closes the Licence usage over time module.

Load data

This function reloads the data into the chart from the interval set in the Date to and Date to fields.

Day

Function that sets the interval to the last day and loads the data.

Week

Function that sets the interval to the last week and loads the data.

Month

Function that sets the interval to the last month and loads the data.

Year

Function that sets the interval to the last year and loads the data.

Earlier

Moves the loaded values in the chart to the previous selected interval (day, week, month, year).

Later

Moves the loaded values in the chart to an earlier selected interval (day, week, month, year).

Book Contents

Book Index

Administration of application servers

The Administration of application servers book provides information about running application servers. The book is located in the tree menu Administrator – System – Administration of application servers.

List tab

For each application server, the server on which the AS is installed, the AS connection name, the catalogue, the name of the client on which it runs, the session number and the login date and time are given.

pic_10219

Picture: Administration of application servers – List tab

Details tab

The Details tab displays a list of users currently logged into the server. For each login, the user name, the licence type and the device from which they are logged in are given. With the Scheduled tasks, Notification and Call centre buttons, we can switch to the Administration of scheduled tasks, Notification settings or the Call centre.

If necessary, a logged-in user can be logged out with the Force logout button. The Force logout function is also included in the ribbon.

pic_10221

Picture: Administration of application servers – Detail tab

Ribbon

Using the Take callstack or Take callstack series buttons, the callstack of the application server, or a series of callstacks of the application server, can be obtained remotely. The result of the operation will be saved in the user directory of the user who started the action.

Under the Statistics of the application server button, we can see the load of the individual threads of the given application server.

pic_10220_202504

Picture: Statistics of the application server

Book Contents

Book Index

List of application server services

The book contains an overview of all installed application server services and is used primarily for these purposes:

pic_10957

Picture: List of application server services, servers assigned to groups

Only users with the Service operations right have access to the book.

Restart of application servers

A restart of all application servers is invoked with the Restart all AS button.

As part of the query about restarting the servers, the user is warned about possible temporary outages of the services associated with running application servers:

pic_10954

Picture: Warning about a possible service outage during the restart of application servers

If the answer is positive, the application servers are restarted, but only if recovery after failure is set in the properties of the application server service in the operating system. Otherwise, they will only be stopped!

pic_10955

Picture: Setting recovery of application server services after failure

If several application servers are used, it is possible to ensure that not all servers are restarted at once by grouping the servers by purpose of use – see the description of the Set group button above.

The result of the restart is a protocol about the course of the restarts.

pic_10956

Picture: Protocol on restarting application servers

Book Contents

Book Index

Administration of clients

Two clients are automatically preset in the program, namely the DEMO client and the INIT client. The DEMO client contains demonstration data for the individual K2 modules, on which the user can practise K2 functionality. The INIT client contains no data, as it is used to create a new client. Administration of clients is used to create new clients and maintain existing databases using K2.

List of clients on the List tab.

pic_307_2024

Picture: Administration of clients form

When editing an existing client, only the description can be changed (the abbreviation must remain the same, because the databases and directories of clients are named after it).

pic_640_2024.png

Picture: Administration of clients form – in Change mode

When inserting a new client, check boxes are displayed on the form. They can be checked as required. Users who work with and administer K2 only from the K2 program must check all the fields.

pic_689_2024.png

Picture: Creating a new client – Ins

Description of check boxes:

Create directories

If checked, a directory with the same name as entered in the Abbreviation field is created in the main K2 directory.

Create database

If checked, it creates a database on the server. The database name consists of the name of the main database and the client abbreviation. [K2 database entered during installation]_[Client abbreviation].

Import from directory

If checked, data from the selected directory is imported into the created database. All "*.des" and "*.hes" files of all data tables must exist in this directory. Files for creating the INIT and DEMO databases are supplied with K2. INIT is used to create a new live company; DEMO can be used for testing on data prepared by "K2 atmitec s.r.o". All "*.des" and "*.hes" files must be in one directory. The directory can be changed with the Change directory button.

After pressing the F2 key, the changes are saved and the actions selected by the user are performed. The user is informed about the actions currently being performed by dialog windows showing the progress of creating the client. During this time, it is not possible to work in K2.

Clients – Basic data

On the Basic data tab of the Administration of clients, buttons are available that are used to preset directories and databases for the given company. These buttons are used when creating a new client.

Note: To work with the Basic data tab, the right Administrator – Clients – Client, page 2 must be set.

pic_690_2024.png

Picture: Administration of clients form – Basic data

This page is accessible only in View mode. It can be used, e.g., when we create a new client with the Ins key, fill in the Abbreviation and Name fields and save the changes. On the Basic data tab in View mode, we then use the buttons to set the data we require, i.e. the first row of buttons (Directories, Database, Data Import and Delete) has the same meaning as the check boxes in the Create client form.

Description of buttons:

Directories

After clicking the button, the DATA subdirectory is created, which is stored in the directory named "CLIENT ABBREVIATION".

Database

After clicking the button, empty tables are created on the SQL server. Merely creating the SQL database does not make the client functional by itself.

 

If we want to import data into a new client, the database must first be created using this button, and only then the import itself is performed.

 

Note: To create an SQL database, the user logged into Windows must have SQL administrator rights.

Data Import

Data is imported into the client from the set directory; the data must exist in the form of "*.des" and "*.hes" files.

 

When creating a new client, it is recommended to use data from the INIT directory. If we need to change the set directory, we use the Change directory button and select another data source.

Delete

Function for deleting the DEMO and INIT clients. It simply removes DEMO and INIT from the installed K2.

The following is performed:

- deletion of records from the FIRMY/Client table

- deletion of databases,

- deletion of directories,

- mapping of the client to the K2atmitec user..

pic_5608_2020.png

Picture: Deleting a client

OLAP support

Creates a database named FIRMA_DM on the SQL server. The database will be used for OLAP support.

Add to input window

Pressing this button adds the client name to the selection of the Client drop-down field in the K2 system login window.

Procedure for copying data from one client to another:

Further recommendations:

IS K2 rather assumes that certain users are assigned the client they will work with. If one user is to work with the data of several clients, it is better to set him/her up under several names. The main advantage is that the user can be assigned different rights for each client.

It is important to deny users the User administration right, which prevents them from changing users' rights, and the Switch over the client right, which prevents them from logging in to a client other than the one preset for the user.

Note: If anything concerning the client definition is unclear, contact your consultant.

Book Contents

Book Index

Database administration

A list of all tables available for the current client is displayed.

Book Contents

Book Index

Multi company administration

The Multi company settings function makes it possible to share common data among several companies (e.g. subsidiaries and parent companies). The function is located in the tree menu Administrator - System - Multi company administration. To create and delete companies, the Multi company settings right (Administrator - General) must be set.

After the function is started, the Multi company administration form opens, where individual companies are inserted using the Insert key or the Pic_1031i button. The Enter button opens an existing record and allows it to be changed.

pic_3008_2024
Picture: Multi company settings

Multi company tab

The Multi company administration form contains two tabs: Basic Settings and Users.

pic_3009_2025
Picture: Multi company administration form - Basic Settings tab

Basic Settings

Description of fields:

Company No.

Automatically generated number of the created record (company).

Blocked

A checked field means that the company will not be offered in the bottom part of the K2 screen. We will not be able to switch to it.

Customer

Selection of the customer from the Suppl./Cust. book (companies) to which we will switch.

Member of group

We can create a group which several companies will belong to. E.g. for the case where a company has several subsidiaries.

Comp. Reg. No.

Comp. Reg. No. automatically filled in from the customer card.

VAT Reg. No.

VAT Reg. No. automatically filled in from the customer card.

Address

Address prefilled from the customer card.

Country

The country of the company (from the Customer) is displayed.

Partner

The number of the partner linked to the customer is displayed.

Business register

Option to set the text for the Commercial Register. After pressing the button in the right part of the field, multi-line text can be entered.

Basic data

Option to enter any text, which can then be displayed in the reports of purchase and sales documents. After pressing the button in the right part of the field, multi-line text can be entered.

Company colour

Option to set the background colour of the desktop for the given company. If the colour is not filled in, the company colour is used. (For a custom desktop, the colour from the custom desktop settings is always used if it is filled in. If it is not filled in, the colour from this field is used.)

Status bar colour

Option to set the status bar colour for the given company. If the colour is not filled in, the company colour is used.

Company icon

Path to the company icon image to be displayed e.g. in reports, in the menu of this function or on the desktop.

Company logo

Path to the company logo image to be displayed e.g. in reports, in the menu of this function or on the desktop.

Header picture

Path to the image for the report header.

Footer picture

Path to the image for the report footer.

Company stamp

Path to the image for the company stamp.

Currency

Company currency.

Organizational structure

Option to select the organizational structure.

Visual style

Option to select a custom visual style.

Own exchange list

If switched on, the company uses its own exchange list. If switched off, the company uses the common exchange list.

Inverse exchange rate

If switched on, the exchange rates of foreign currencies are displayed in all documents and in the exchange list in the ratio of "x" units of foreign currency to 1 unit of the base currency (the currency set on page 1 of the client parameters). If switched off, the exchange rates of foreign currencies are displayed in the ratio of "x" units of the base currency to 1 unit of foreign currency.

Legislation

To determine the legislation of the company.

I. CA licence

Path to the multi-licence file of the multi-user licence from I. CA registered to the "Comp. Reg. No.". Without this licence, signing does not work. The licence file can be per company or per user. For signing to work, the AdvICASigner2.dll library must be available; it is not supplied with the K2 system but can be obtained from I. CA. An example of use is in the standard script "HB - Podepsání příkazu I.CA" (HB_SignIca.pas).

Display the K2 number in the registration number of the document

This field allows you to set the format in which the registration number is to be displayed in the relevant functions in K2, i.e. whether the reference number or the K2 number (e.g. 10/2025/35) will be displayed.

Specifically, these are the functions of the Control statement, the reports VF_DOK01.AM (invoice out), ADVREC_DOC01.AM (advance received), OTHER_RECEIVABLE01.AM (other receivable), VF_PD.AM (cash sale); it also sets the values of the registration number in the relevant elements in EDI and ISDOC messages and the display of the registration number in the QR code.

If not checked, IS K2 displays the registration number as the reference number. If the field is checked, the To date field becomes accessible. If the field is set to the value 00.00.0000, the registration number will be displayed as the K2 number.

If To date is set, documents up to that date (inclusive) will display the K2 number.

pic_8181

In Basic Settings, the following functions can be run:

Users

On this tab, in the Assigned column, we select the users who will have access to this company.

Note: A user with the Administrator - General - Multi company settings right always has access to all companies regardless of this setting. If no user is defined on the Users tab, all users have access to this company.

pic_3021_2024_01
Picture: Multi company administration - Users tab

The Assign all button marks all users and assigns them to the selected multi company. Using the Turn off restrictions button, we can cancel the assignment of users to the selected multi company, so the users will have access to all multi companies.

In K2, we switch between individual companies either in the navigation panel or in the bottom part of the screen by clicking the left mouse button on the currently active company and selecting the required company.

pic_3005_2021.png
Picture: Switching between companies - navigation panel

pic_3260_2021.png
Picture: Switching between companies - bottom part of the screen

Reports take as the client company the one to which I am currently switched.

When switching to another company, the K2 environment is refreshed and all unsaved undocked tabs are closed.

After clicking Selection of displayed companies, the Companies form is displayed, in which we can switch between individual companies and also filter them.

pic_7676_2023_04

Picture: Companies

Description of buttons:

Display all

Sets the display of all own companies.

Display none

Clears the display of all own companies.

The number of own companies in the menu can be defined using the COMPANYMENUITEMS parameter. The number of items in the menu is preset to 15 companies. If there are more than 15 companies to be displayed in the menu, the Switch to company option is displayed.

pic_9812

Picture: Switching-over a firm

In the company switch-over form, you can select the required company and switch to it using the Switch company button.

pic_9813

Picture: Company switch-over form

Rounding

pic_4332_2024

Picture: Multi company form - Rounding tab

Description of selected fields:

Rounding constants

For rounding purposes, the set value is added to or subtracted from the relevant amount in the tax recapitulation (Net, VAT or Gross) or from the price in the invoice header (only Gross). Mathematical rounding is then applied to the resulting amount. This way we achieve rounding up or down.

For example, if the tax is to be rounded up to whole CZK, we set the value +0.499 in the constant and the value 1 in the order. Then the tax amount of 3.02 in the document is increased by the constant to 3.519, which is mathematically rounded to 4.

Rounding order

Rounds the relevant amounts in the tax recapitulation or in the invoice header to a multiple of the value entered in the parameters.

For example, if the net amount of the Invoice in is CZK 100.16 and the value 0.10 is entered in the purchase order of rounding, the net amount of the invoice will be mathematically rounded to "whole" ten hellers, i.e. to CZK 100.20.

Invoice gross

Affects the total (header) Gross amount of the invoice.

We do not recommend using this rounding, because only the resulting amount with tax is rounded, and it may then not correspond to the sum of Net + VAT. Instead, we recommend rounding using the setting according to the Payment method on the invoice. More about this rounding is written in the relevant methodology.

Rounding error

Means the value of the document currency. It is used for payments in both foreign and domestic currency. In the case of payments in foreign currency, after conversion to the base currency the paid amount may differ from the invoiced price (exchange rate change). If this difference is within the tolerance of the Rounding error, the payments are considered settled and the payment and invoice amounts will be balanced (see Bank statements - Item). In the case of payments in the base currency, the Remaining amount field is monitored on the Payments tab of invoices. If it is less than the value of the Rounding error, the invoice is marked as paid (see Payments).

When a new company is created, the rounding is set automatically:

in purchase:

Net - order to 0.01

VAT - order to 0.01

in sales:

Net - order to 0.01

VAT - order to 0.01

Invoice gross for calculation from above - order to 0.01

The rounding error is set to 0.1 for the CZK currency and to 0.01 for other currencies.

When a new company is created, the company currency is set (even before the company's customer is selected) according to the currency in the client parameters, and the rounding is set accordingly. So if the currency in the client parameters is other than CZK, the rounding error is set to 0.01.

Finance settings

Settings for the Supplier/Customer card:

If checked, the Create reminders field is checked when a new Suppl./Cust. is created.

Setting of periods for the Open items as at book:

Split code lists tab

pic_4570_2024

Picture: Multi company administration - 2 Split code lists tab

Some code lists can be split among companies. Each company will thus be able to use a different part of the code list.

After splitting:

Note: If we split the Customer code list, the Partners for marketing code list is automatically split as well, and vice versa. The Matching symbols for accounting and Employments code lists are split mandatorily. For the Personal data of employees and Payroll deductions code lists, the "Divided" field is checked automatically when a new client is created.

Warning: Before splitting, it is necessary to back up the K2 database and set the reinstallation mode. If K2 is not in reinstallation mode, the program will warn us.

pic_4714_2024

Picture: K2 system message

pic_4571_2024

Picture: Record for splitting the code list Article

A code list is split using the Split button. In the Split form, we select the companies to which the entire contents of the existing code list will be transferred. A company that we do not check during the split will have the given code list empty after the split. To transfer specific records to other own companies, the bulk function for assigning records to a company can be used.

pic_4713_2024

Picture: Split form

The split can subsequently be cancelled using the Cancel splitting button. The split can be cancelled only if the code list is not shared in a group. When cancelling the split, we select the company whose code list will be preserved. The code list contents of the other companies will be deleted.

pic_4715_2024

Picture: Cancel splitting form

Note: After making changes to the division of code lists, it is always necessary to restart K2.

Warning: If a user is allowed to work in several companies simultaneously and some code lists are split at the same time, all data modules used in scripts and reports must set the correct company context using the SetDataMContext and ReleaseDataMContext functions.

Book Contents

Book Index

Specifics of splitting payment conditions

When splitting payment conditions, it depends on whether the payment conditions are to be copied to only one selected company or to several selected companies. If several companies were selected, there is one payment condition that applies to all multi companies, i.e. when it is edited, the change is reflected in all multi companies, because it is a single payment condition.

pic_1703273

Picture: Split payment conditions - icon for a payment condition common to several own companies

pic_1703274

Picture: The payment condition is common to several own companies

If you want to split the due date, you need to use the Assigning or Excluding a record from a company action.

pic_1703275

Picture: Functions for Assigning record to company and Exlude record from company

Sharing in group tab

pic_4575_2024

Picture: Multi company administration - Sharing in group tab

On this tab, groups of companies can be defined for which selected code lists will be common, i.e. when a record is created in the given code list, the record is created in all companies in the group.

Using the Ins key or the pic_130i button, we create a new group. We check all companies for which we want to share code lists. We select all code lists that we want to have common for the given group of companies. Only the code lists that we have split in the Multi company administration form are offered here, see Split code lists tab.

pic_4577_2024

Picture: Group for sharing the code lists form

Assigning/excluding records to/from multi company

If the code list is split (see Split code lists tab), we can, in universal forms, assign the marked records from the given code list in bulk to the code list of another company using the Assigning record function. The function is available in the Menu - Bulk actions - Assigning record to own company menu. In the same way, a common record can be removed from an own company using the Excluding record from own company function. The excluded record will be invalidated.

pic_4582

Picture: Code list Article - Assigning record to own company function

The Companies button shows in brackets the number of own companies in whose code list the given record is assigned. By clicking the button, we display these own companies. Using the Ins key, we can manually add further companies here. Using the Delete key, we can then manually delete the record from individual own companies.

pic_4583

Picture: Code list Article - Companies button

Excluding a record invalidates the record in the given own company. The display of such invalidated records is controlled by the user parameter Display inactive records.

Multi company with different fiscal years

If the client contains multi companies with different fiscal years, it is advisable to split the Business year code list.

When splitting the Business year code list, it is necessary to assign to the existing records all companies for which documents already exist in K2.

We then remove from the records the multi companies for which we no longer want to use this period (the existing documents will have correct references to the period, while new documents cannot be saved in an undesirable multi company - period combination).

We create a new Business year record for the fiscal year and assign the relevant multi companies to it. The internal numbers of the new periods (Id) should follow the sequence by date.

Date from - to should be entered in the Business year records. On saving, it is checked whether there are records with overlapping periods for the multi company - in that case the record cannot be saved.

pic_10823

Picture: Business year code list split by multi company

When switching between multi companies, the user is set the Business year that is assigned to the current multi company.

Multi company in different currencies

Here, the basic specifics and the K2 settings required to run multi companies with different currencies in one K2 are described.

Differences in installation files

In K2, there are installation files and setups for the Czech K2 (CZ) and the Slovak K2 (SK). Both setups contain all standard functions. They differ in DEMO, INIT, Tree, files in DOC and Support Files. Support Files are also largely the same (at least the Lang3 and Lang5 folders). The files that are not in LangX differ, e.g. POST CODETOWN.CSV. These are Czech in the CZ setup and Slovak in the SK setup.

Most standard functions, scripts and reports that are common to SK and CZ take the company's country into account. They may behave differently when the country is CZ and when it is not CZ. E.g. the VF_Dok01.AM report prints one extra tax number for the SK country (the Slovak DIČ). For the CZ country, it prints only 2 tax numbers. What is called DIČ in the Czech Republic is called IČDPH in Slovakia. What is called DIČ in Slovakia has no equivalent in the Czech Republic.

K2 settings for working with multi companies in different currencies

To work with multi companies in different currencies, settings must be made in K2 to ensure correct functionality. We will show an example where the client currency is CZK and the multi company currency is EUR.

pic_4932_2024

Picture: Multi company settings in EUR if the client currency is CZK

pic_4933

Picture: Exchange list settings for the EUR currency and the selected company (in EUR)

pic_4934

Picture: Exchange list settings for the CZK currency and the selected company (in EUR)

Division of codelists

Division of code lists is generally described in the K2 manual in the Administrator/System/Multi company administration module. If there are companies with different currencies, it is recommended to split the code lists:

Evaluation of multi companies with different currencies

When evaluating multi companies with different currencies, the following behaviour must be taken into account:

Settings for working with VAT

The settings are described in the chapter Settings for the legislation of another country.

The tax return is created in the VAT book, which has the Slovak legislation set.

In the tree menu Accounting / VAT / VAT / Slovak VAT in Czech K2 the Slovak forms for VAT, Kontrolný výkaz DPH and Súhrnný výkaz DPH are available.

Differences in the Slovak K2 Letter post

In letter post, they use their own reports:

Finances

For importing the exchange list, they use their own scripts:

For importing the exchange list history, they use

Script for IBAN verification:

If a company has Own exchange list checked in multi company administration, the scripts for importing the exchange list of these companies must be run with the CompanyId parameter filled in.

Road tax

For road tax, they use their own function:

Book Contents

Book Index

One Stop Shop

For One Stop Shop, the following scripts and reports are used:

Balance sheet and profit and loss statement

For micro accounting units, they have their own scripts:

Intrastat

They are based on the K2 standard for Intrastat and have their own scripts for

For the company to work correctly, it is necessary to use a Group member, in which the parameters for the specific company are defined. The document books of the given company must be listed.

The SK_RF_K2STD_Intrastat.PAS script must be registered in the Client parameters.

Completing company data (Ares)

To complete company data according to the entered Comp. Reg. No., they use:

The script also sets the VAT payer flag. Bank accounts are not imported.

VIES

To verify the VAT Reg. No., the CZ standard can be used, because the Slovak IČDPH and the Czech DIČ are already in the same fields. In Slovakia, they use:

Book Contents

Book Index

Travel orders

The SK_RF_K2STD_TravelOrder script must be registered in the Client parameters.

Book Contents

Book Index

Calendar of holidays

Script for importing holidays into the calendar:

Other

For some common standard reports and functions, slightly different settings are advisable when used for Slovakia:

Book Contents

Book Index

Task scheduler

Actions in the Task scheduler run on the application server. Users can therefore log in to it from anywhere, without K2 having to be running. Tasks can be checked from any K2.

Scheduler settings

1. The first condition for the Task scheduler to work is an installed application server. The description of the Application server installation can be found here. In the directory of the installed application server, there is the "K2.ini" file, in which we must enter the "SCHEDULESERVICE" parameter, e.g. "SCHEDULESERVICE=1" (1 - on; 0 - off). We then start the application server and log in to the K2 system.

In Licence administration, on the Logged-in users tab, we then verify whether we are connected to the application server (see the red frame in the picture).

pic_3050_2024

Picture: Licence administration - users logged in to the application server

Note: When the AS is stopped, all running (stoppable) scheduled tasks are terminated. If an "unstoppable" task is running, we must terminate it manually using the Interrupt the running task button. Until all scheduled tasks are terminated, the AS will be in the "Stopping" state and no further scheduled tasks will be started.

2. To use the scheduled tasks function, it is necessary to have an active licence for the Scheduled tasks service. Without this licence, it will not be possible to run scheduled tasks. The presence of the licence can be verified in Licence administration (Administrator / System / Licence administration). On the Licence administration tab, the value of the Number of services for scheduled tasks field must be at least 1. If the value is 0, the service is not licensed.

pic_3049_2026

Picture: Licence administration - Scheduled actions service

3. To work with the Task scheduler, it is necessary to have the right Administrator/General/Task scheduler, which we find and assign to users in the User roles book.

The Task scheduler function is started from the tree menu Administrator - System - Task scheduler.

pic_3101_2021.png

Picture: Tree menu - Task scheduler

After start, the form for setting up scheduled tasks opens.

In the upper part of the form, above the list of scheduled tasks, filters for displaying scheduled tasks are defined using radio buttons:

Scheduled tasks can be disabled in bulk using the Disable tasks button or the Ctrl+Shift+D keys (they are moved to the Forbidden filter), or allowed using the Allow tasks button (Ctrl+Shift+E). A selected scheduled task that is not running can be deleted directly from the Allowed tab using the Quick delete task button or the Ctrl+Shift+Del keyboard shortcut. This is a quick deletion and the task does not need to be disabled.

pic_9845

Picture: Form with preset tasks

The "Run on server" column displays the name of the server on which the task is to be run. If the task has a server set that no longer exists, ????????? is displayed in the column. When you open the record and try to save it, the message "Incorecctly entered item [ServerID]". appears. For the task to run, an existing server must be set in the Run on server field.

pic_9732_2024

Picture: Task with an invalid server

The values of the "Status" (status of the last run) and "Last run" (date and time of the last run) columns are loaded from the last run of the given task.

The "Status" column is a graphical representation of the status:

 

the task has not been run yet

pic_820i

the task finished successfully

pic_819i

the task finished with an error

pic_818i

login error

pic_817i

the task was forcibly interrupted

pic_816i

OK, error in data

pic_816i

OK, data warnings

Description of actions in the ribbon:

pic_9843

Button for displaying the history of the task on which the cursor bar is currently positioned.

The task run history contains the run sequence number, the task name, the run result ("Ok", "Error" or "Forced termination"), the start time and the end time. The Delete record button deletes the current record, the Delete all button is used to quickly delete all records in the history.

pic_3066_2024
Picture: History - Stock recalculation form

pic_3067_2024

Picture: History of the E-shop recalculation task - Detail

pic_9842

Button for quickly running the task on which the cursor bar is currently positioned. The task is run immediately, regardless of the settings.

pic_9841

Displays a form showing all currently running tasks. The "Relation" column contains the user login (User No./session ID) under which the given task runs on K2_AS. The "Was started" column displays the time the task was started on the application server.

pic_3264_2024

Picture: Form with running tasks

The form is updated automatically every 5 seconds. The update can also be performed manually at any time using the Refresh button.

Using the Interrupt the running task button, we can forcibly terminate running tasks. This termination is forced; open files and connections will be closed immediately. The function should be used as an emergency solution, not as a common way of terminating scheduler tasks.

pic_9844

The button is used to set the server on which the selected task is to be run.

pic_9848

The button is used to set up and configure background tasks for processing immediate actions.

A dedicated thread (or threads) will run on K2_AS to execute the tasks for immediate running. The thread will not log out after the task is executed. Tasks started this way are always run, unlike tasks with a set time, which are not run if the server was not running at the given time (it was restarting).

If background tasks are allowed, the Run, Run as user and Valid to fields become inactive in the form for a scheduled task of the "Once immediately" type; for a new record, they are set automatically according to the settings.

pic_9819

Picture: Background task settings

Description of fields:

Use background tasks

If the field is checked, background tasks are switched on.

Run as user

The user under whom the background tasks will be run.

Maximum number of threads

Maximum number of created threads.

Delete tasks after

Number of days after which actions run by the background process are automatically deleted.

 

Book Contents

Book Index

New task

In the Task scheduler form, we create a new record using the Insert key or the Pic_1031i button.

pic_3054_2024
Picture: Task scheduler - new record

Description of fields:

Name

Task name.

Run on server

We select the server under which we want to run the scheduler.

User

Abbreviation of the user under whom the task will be run.

Run

Date and time from which the first run of the task will be calculated.

Occurrence

Frequency of running the task - Once, Daily, Weekly, Monthly, Hourly, Minutely, Once immediately.

Valid to

Date until which the task will be run. If this field is filled in for a one-time action, the action will be automatically deleted after the stated date. Other actions are governed by the period duration.

Keep history (days)

Number of days for which the record of the task run will be kept in the history. After the set time elapses, the record will be automatically deleted.

Next run

Date and time of the first run of the task.

Allowed

A checked field means that the task is set as active and will be run. If the field is not checked, the task remains in the task list but will not be run.

Action list

List of actions set on the Action tab.

If we fill the Occurrence field with the value Once, the task is run on the day and at the time set in the Run field. If the Valid to field is filled in, the task is deleted after the stated date.

pic_4797_2024

Picture: New task - Occurrence "Once"

If we fill the Occurrence field with the value Once immediately, the task is run immediately regardless of the day and time set in the Run field. If the Valid to field is filled in, the task is deleted after the stated date.

pic_4796_2024

Picture: New task - Occurrence "Once immediately"

If we fill the Occurrence field with the value Once with multiple attempts on error, the task is run on the day and at the time set in the Run field. If the task did not end with the status "OK", "OK with warning" or "OK with error", the system will try to run the task again after the specified delay, at most as many times as stated in the parameter "How many times to try to run the task again".

pic_9760_2024

Picture: New task - Occurrence "Once with multiple attempts on error"

If we fill the Occurrence field with the value Weekly, Daily, Hourly or Minutely, check boxes for the days of the week are displayed. Here we select only the days on which we want the task to run.

pic_3057_2024
Picture: New task - Occurrence "Weekly"

Description of fields:

Reccurence

Frequency of task repetition in the specified time interval. E.g. if we have the Occurrence Weekly and Reccurence 3, the task will be run every third week.

Limitiation of days

Limitation of the days of the week on which the task is to be run. E.g. if we have Monday, Tuesday, Wednesday, Thursday and Friday checked, the task will be run only on working days.

Similarly, we check the months and the days of the month when selecting the Monthly occurrence.

pic_3058_2024
Picture: New task - Occurrence "Monthly"

If we fill the Occurrence field with the value Minutely or Hourly, the In hours from and In hours to fields are displayed in addition to the days of the week. These fields are used to limit the time when the task is to be run (e.g. from 2 a.m. to 3 p.m.).

pic_3465_2024

Picture: New task - Occurrence "Hourly"

Action tab

The Task scheduler form has another tab, Action, where we set the individual reports, scripts or functions to be run.

Since the Stock recalculation script does not require a data module, the examples of filling in the Action tab are given for the Penalization script.

pic_9846
Picture: Action tab for the Penalization script

Batch item

The script for Penalization is defined in the Batch items table.

pic_3061_2024

Picture: Batch item - for the Penalization script

Description of fields:

Name

Script name

Script

Field for selecting a script from a directory or the database.

Data module

Data module on which the script, report or function (batch items) will be run.

Filter

Option to select an existing filter in the selected data module. The batch item will then be run on this filter.

Operation in container

Records selected in the filter can be inserted, added, removed, etc. from the container using the functions in this drop-down field (the functionality is the same as in filters - chapter Conditions tab).

Use parent data module

The field is used so that reports, scripts and functions receive as the current data module either the data module defined in the Data source or, if possible, the data module that is currently active in the book - without modifications.

In the Batch items table, we insert a new record using the Insert key. A report, script or function can be inserted as a batch item. The procedure for inserting a report or script is the same as for inserting on the desktop (see chapter Working with icons). The functions Recalculate products, Stock recalculation and Stock recalculation - current period are described in the following chapter Standard actions.

pic_3139_2024
Picture: Batch items

Only tasks that are not currently running can be edited.

The advantage of the Task scheduler is that a change of settings takes effect immediately, without the need to restart K2.

Notifications on scheduled tasks

We can have ourselves notified about a scheduled task by notifications, by creating a condition on the Scheduled task action in the notification settings. The setting of notification conditions is described in more detail in the My office documentation, chapter Notification system - conditions.

pic_3137_2024
Picture: Notification settings - condition on the Scheduled task action

After the task is run, a notice then arrives in the notification panel.

pic_3138_2021.png
Picture: Notification - Scheduled task

After clicking the notification, a window with information about the task run is displayed.

pic_3265_2024
Picture: Notification - log with result

Shortcuts: Other - Recalculation

Most shortcuts support running over a filter of records. For this, the Process records from filter option must be activated. If the Create filter from selection option is not activated as well, the records from the filter of the user under whom the application server runs will be processed. If the Create filter from selection option is activated, it is necessary to choose a saved selection on the basis of which the filter will be filled.

Stock recalculation

The Stock recalculation function is described in detail in the chapter Recalculation - Stock recalculation.

The function run from the Task scheduler additionally has these setting options:

Description of selected fields:

Period from

Unlike the standard Stock recalculation form, the shortcut also allows period zero ("opening balance") to be entered. This setting ensures that the recalculation automatically runs from the first unblocked period.

Company

Own company to be recalculated. If not entered, the current own company is recalculated.

Recalculate all companies

The option is available if there are several own companies in K2 and all of them have the same currency. The data of all companies can then be recalculated at once.

Maximum level

If the Recalculate all levels option (in production) is activated, entering a number limits the traversal to a certain number of levels (nesting). Default value = 100. Value 1 means only the current level.

Example: If a product consists of a subassembly and the article filter contains only the material card from the subassembly job ticket, then e.g. when the input price of the material changes, with the value 1 only the material price is recalculated, with the value 2 the subassembly is recalculated as well (the price in the job ticket header changes), and with the value 3 the product card would be recalculated too.

Minimum allowed period

Safeguard for the recalculation - documents before the entered period are never recalculated (e.g. so that already closed periods are not recalculated if the blocking period was set incorrectly).

Period count - 1st confirm.

The number determines how many periods back from the blocking period the recalculation is to look and search for documents with the first confirmation.

Fixed batch price on item split

If an item is split in purchase, the batch price will not be averaged.

Batch price - ignore transfer notes

Transfer notes are ignored when searching for the first receipt of a batch.

Cost price does not enter accounting books

If the option is activated, the recalculation does not reset the "L" and "Z" flags of documents if the cost price of a document item changes.

Warehouses without checking, Articles without checking, Article categories without checking

List of numbers of warehouses, articles and article categories for which negative stock levels are not written to the recalculation log (no check for negative stock levels is performed). However, the recalculation recalculates the items as standard.

Stock recalculation - current period

The Stock recalculation function automatically processing only the current period.

Recalculation of daily stock levels

Used to calculate daily stock levels in warehouses from the entered period. A period within the blocked periods can also be entered. The purpose of this recalculation is a one-time calculation of daily balances from history that is already in blocked periods. Repeated running via scheduled actions is not advantageous, because it always runs from the entered period. For regular updating of daily balances, the Stock recalculation shortcut with the Calculate daily stock levels option activated is used.

Recalculate products

The function is described in detail in the chapter Form - Action over the Article database.

Coverage recalculation, Coverage recalculation (using preset definitions)

A more detailed description of the function is in the chapter Bulk actions over job tickets and sales orders.

Recalculation - ABC Analysis

Calculates the ABC analysis of the entered configuration or of all configurations.

Offset (days)

Determines the day for which the analysis will be calculated relative to the run date in the scheduled actions.

Example: In the Scheduler we have the analysis set to run every day after midnight. The value "1" then means that the calculation will be performed for the previous day (i.e. the current run day minus 1).

All configurations

Activating this option specifies the calculation of all configurations.

Configuration

Using the Configuration button (in the bottom part of the form), specific configurations can be selected for the calculation.

Recalculation of inventory turnover

Calculates the turnover according to the entered configuration or all configurations.

Offset (days)

Determines the day for which the turnover will be calculated relative to the run date in the scheduled actions. The value 0 can also be entered.

Example: In the Scheduler we have the turnover set to run every day after midnight. The value "1" then means that the calculation will be performed for the previous day (i.e. the current run day minus 1).

All configurations

Activating this option specifies the calculation of all configurations.

Configuration

Using the Configuration button (in the bottom part of the form), specific configurations can be selected for the calculation.

Recalculation of stock prices

The function is described in detail in the chapter Form - Action over the Article database.

Recalculation of article prices

The function is described in detail in the chapter Form - Action over the Article database.

Recalculation of invoicing

The function is described in the chapter Recalculation - Recalculation of invoicing.

Recalculate planning job cards

The function is described in detail in the chapter Form - Bulk actions over Job tickets. When adding the action to the Task scheduler, it is necessary to choose a selection from the Job tickets book, which defines the content of the recalculation.

Recalculation of Reserved / Ordered

Recalculates the "Reserved" and "Ordered" values for article cards.

Calculation of summation availability for e-shops

For warehouses that have the calculation of summary article stock levels for e-shops via the article queue set, it calculates these summary stock levels into a special table. In the function, Method of calculation = "According to queue" must be set. A more detailed description of the calculation options for warehouses is in the chapter Logistics/Warehouse/Warehouses/Basic data.

Note: The setting Method of calculation = "All article cards" is suitable for running the function manually and for the initial calculation of summary stock levels from the current warehouse stock levels.

Cancelling the scheduling of job cards

Cancels the scheduling of resources on job tickets.

Book Contents

Book Index

Shortcuts: Other
Delete error logs

The Delete error logs function deletes records from the Recalculation error logs book. Logs older than the number of days entered in the Delete logs older than (number of days) field are deleted.

Export customizations to file

The Export customizations to file function is described in detail in the chapter Export and import of customizations.

Finances
Recalculation of cash register balances

The Recalculation of cash register balances function is described in detail in the documentation Finances - Cash register - Functions over cash documents - Recalculation of cash register balances.

Recalculation of bank account balances

The Recalculation of bank account balances function is described in detail in the documentation Finances - Bank - Bank statements - Functions over bank statements - Recalculation of bank account balances.

Marketing
ARES

The batch runs the ARES function, which completes or updates customer or partner data. The batch will be run over the selection of customers or partners defined in the selection field.

The function will be run with the parameters that the ARES function has set in Administrator/Parameters/ARES parameters.

Workflow
New process

The batch creates a new process from the procedure defined in the Procedure field. The procedure must not have any user interface (variable definitions, user selection) specified on the start event.

Book Contents

Book Index

Object manager

The Object manager function allows the user to manage data saved in objects. These are data from various data classes; the key objects include mainly saved filters, records of scripts and reports added to the Functions and Print (F9) menu, saved configurations of various functional tools (e.g. Handling of requirements, Dead stock, Production manager, etc.) and many more. Objects can be filtered based on the options in the Filtration panel.

Objects can be deleted, edited, moved between levels, checked, or exported to a file and then imported into another K2 installation.

The function is located in the tree menu Administrator - System - Object manager. The function is also available in the Admin interface tool, which groups functions for managing test K2 installations.

If the user has the Administrator - General - Service operations right set, all objects are loaded and displayed here - objects saved at all levels, including objects saved for other users. For a user without the Service operations right, objects saved at the "user" level for other users are filtered out on the default load - such a user does not see them. The Invalid objects, Initialization, Remove inconsistencies and Conversion rules buttons are not available to a user without the Service operations right.

pic_11058

Picture: Object manager

The conditions for filtering records are located in the right panel. After pressing the Filter button, all objects meeting the set conditions are displayed. The Default button returns the filter to its default state, i.e. deletes the set conditions.

Description of filtering conditions:

Context

Data module selection from the Data modules code list.

User

If we enter a condition only on User, we filter the records to which the user has access (own objects, global, factory, but not objects saved for other users).

If we wish to filter objects saved directly for the given user, it is necessary to also add the condition Level = "user".

For users without the Service operations right, this field is read-only and cannot be changed. Such a user cannot filter objects saved for other users.

Client

Selection of the client from the Clients book whose objects we want to display.

Multicompany

Selection from the list of own companies.

Level

 

Choice of the save level of the objects we want to display: Factory, Global, Client, Group (Roles) and User.

Classes

List of available classes. We filter by classes by marking the required classes with an asterisk.

Description of actions in the ribbon:

Invalid objects

If there are invalid objects (e.g. filters), their list is displayed after pressing the Invalid objects button. An invalid object can be deleted or modified. The button is accessible only to a user with the Service operations right.

pic_3686_2024

Picture: Saved objects manager - Invalid objects button

My objects

 

This is a special case of filtering where the parameter settings are chosen so that all objects owned by the logged-in user are listed. The same result can also be achieved using a general filter.

pic_3687_2024

Picture: Filter of objects of the currently logged-in user "K2" - My objects button

Initialization

The Initialization button runs the Initialization function, which is also part of the mandatory K2 initialization after reinstallation. The Initialization function checks and automatically repairs invalid objects of some classes. The button is accessible only to a user with the Service operations right.

After pressing the Initialization button, the AlterFields.unknown.xml file is created in the user directory; it lists the fields for which conversion rules need to be defined.

Remove inconsistencies

After reinstallation to a higher version, the Remove inconsistencies action can be used to find and remove invalid records from the ObjRow, ObjStorage and ObjAssign tables, in which configuration objects (e.g. filters, columns) are stored.

After the action is completed, a log is displayed containing a report of the problems found. Each object evaluated as invalid or redundant is saved before deletion to a directory whose name is stated in the log.

pic_4531_2024

Picture: Remove inconsistencies - log of problems found

Conversion rules

The Conversion rules action is used to edit the contents of the {MainPath}\AlterFields.xml file. Conversion rules make it possible to define pairs of identifiers <old ProgName, new ProgName> for data module classes. The file can be updated either with the editor in the Object manager or simply copied. The "Initialization" function will try to use this information to automatically repair some invalid objects. The TxFilter/Selections and TxGridColumns/Columns classes are supported.

Conversion rules make it possible to automatically repair some objects in cases where one identifier can really be formally replaced by another.

pic_3780

Picture: Conversion rules - existing AlterFields.xml file

There is a factory AlterFields.xml file, which contains a list of renamed or converted fields that can be freely interchanged. The AlterFields.xml file contains a serialized TxAlterFields collection. Each item of the TxAlterField class contains these properties:

DataMClass: string - the DM class to which the OldFields and NewFields fields relate. If it makes sense, the class of an abstract ancestor (e.g. TDPrask) can also be used.

OldFields: string - the original field that was renamed. The value can contain one identifier or several separated by semicolons.

NewFields: string - the new field. The value can contain one identifier or several separated by semicolons. The value must define a valid field, otherwise an exception is raised when attempting the replacement.

E.g.

TD_DoNP_P: NakPro -> SaleItemsChild

TD_DoNP_N: NakPro -> PurchaseItemsChild

Delete marked

Deletes the records marked with an asterisk.

Export

The function exports all objects currently loaded into memory. The list of loaded objects can be restricted using the Filter button.

pic_4532_2024

Picture: Export

Import

The function imports objects from a file.

pic_4533_2024

Picture: Import

Book Contents

Book Index

Alerts

The book contains records that warn about incorrect settings or configuration of IS K2, SQL Server or the architecture of K2 products. It informs the administrator about what needs to be adjusted in IS K2.

pic_7876

Picture: Alerts book

Most alerts are generated by Diagnostics, which it is advisable to add to scheduled tasks and run every day. This task automatically creates records in the Alerts book. Alerts of the types "Logs on the status of individual AS", "AS restart required after deploy in OD" and "Unsuitable architecture" are generated by an automatic mechanism of the application server, which can detect various problems at runtime.

An alert can have 3 severity levels (Warning, Error, or Info). Notifications are sent for these records according to the settings in the Alerts book.

The List tab shows a list of all current alerts. On the Function tab, the following buttons can be used for each alert:

pic_1241i

After clicking the given button, a form with more detailed information about the given alert opens. Further information is also given on the Basic data tab in the Alert detail section.

pic_1242i

After the cause of the alert has been removed, this function can be used to perform a check, and if the check is OK, the alert is removed from the List of alerts.

pic_1243i

Alert table settings.

In the Alert settings table, the alert settings in the given book can be modified. The Allow all notifications button checks the check boxes for all notifications. With the Disable all notifications button, no notifications will be sent for alerts. The Default setting button restores the factory settings for the Alerts book.

By default, the Administrator role is set for all alert types. Users who are assigned to the given role will receive notifications. The default alert settings are set according to the K2 language version; the Czech, Slovak, English and Serbian versions of K2 are supported.

pic_7878

Picture: Alert settings

The Basic data tab provides a more detailed description of the given alert.

pic_7879_202209

Picture: Alerts - Basic data

Description of fields:

Number

Alert number

Alert type

Alert type

Number of occurences

Indicates how many times the alert has occurred. Until the cause of the alert is resolved, the given alert will be generated again after each subsequent run of diagnostics or after detection by the automatic AS mechanism. With each new occurrence, the value in this field will increase.

Severity

Indicates the severity of the alert:

  • "Error" - the alert should be addressed immediately; it is a critical problem that may mean the company comes to a standstill
  • "Warning" - a problem we should pay attention to, e.g. performance problems
  • "Info" - a message for the user

Description

A more detailed description of the alert type.

Status

Active/inactive. As soon as the problem the alert warns about is resolved, its status is set to Inactive. Inactive alerts are hidden and can only be displayed by clicking through from notifications.

Instance type

The instance to which the alert relates (K2, AS, Web server, Database server, etc.).

Database

The database to which the alert relates.

Instance

States the name of the server on which the given instance (e.g. K2 or the database server) is installed, or it may be a specific instance name (e.g. the name of the AS instance to which the given alert relates).

Incident time

Date and time of the last occurrence of the alert.

Valid to

Some alert types have a set validity. After the set time elapses, the alert status is set to Inactive and it disappears from the list of alerts.

Created on

Date and time of the first occurrence of the alert.

Alert detail

For some alert types, a more detailed description of the problem is given here, e.g. the use of a non-existent field in a notification.

Book Contents

Book Index

Check K2 security

The function checks K2 in terms of secure settings. The output is a form in which the individual problems are displayed. The following areas can be checked:

The Check K2 security function also has its own shortcut, which runs in non-visual mode (it can also be added to the Task scheduler), and if security problems are found, it creates/updates a record with the alert type "Check K2 security" in the Alerts module and writes into it the information that some problem exists - however, it does not contain information about which problem(s) it is. Details can be found by running the Check K2 security function itself. If the cursor is on the "Check K2 security" record, the function can be run directly in the Alerts book using the Verify button on the Function tab.

pic_10495

Picture: Check of K2 secure settings form

pic_10496

Picture: Security check record in the Alerts book

pic_10497

Picture: Running the security check function itself from the Alerts book using the Verify button

Book Contents

Book Index

Settings of fulltext keys

Settings of fulltext keys are used for the additional definition of keys over tables, similar to adding indexes in the extension of file modules.

Some standard keys can be defined by running the CreateFullTextIndexes.pas, script, which defines indexes on some standard tables.

These keys are then available for creating fulltext conditions in selections.

Fulltext keys can be defined after running function No. 778. A list of tables for which keys are already defined is displayed. The user can insert a definition for a new table or change an existing setting.

pic_4035

Picture: List of fulltext key settings

To define a new fulltext key, it is necessary to select a table and a unique single-element key.

pic_4036

Picture: Fulltext key setting

Description of fields:

For table

The table for which the fulltext key will be defined

Based on a one-element unique index

Unique single-element key, preferably based on a number

In the next step, the fields that can be assigned to the fulltext key are defined. The system automatically offers the allowed fields of the string, widestring, clob, xml and dynstring types.

pic_4037

Picture: Fulltext key field settings

Reinstallation

If text fields are changed or deleted during conversions, the full-text key is deleted automatically so that no errors occur while the SQL queries of the conversions are executed. After the conversions finish, a version initialization runs which tries to restore the deleted full-text keys according to the definition in K2: Administrator - full-text key settings, function 778.

Restoring full-text keys can be a time-consuming operation performed on the SQL server in the background. The keys are therefore available for querying only after this background operation has finished.

If an error occurs during refreshing, which may be caused by missing fields in the fulltext or by a change of the table's primary key, it is written to the log in the folder SetupLogs\repairfulltext_(mandant).log. The listed faulty fulltext keys must be checked and corrected, see chapter Settings of fulltext keys.

Book Contents

Book Index

Set internet connection

The Set internet connection function is used to set up the internet connection (e.g. web services, exchange list import) when a proxy server is used.

The function is started from the tree menu Administrator - System - Set internet connection.

pic_3186_2021.png

Picture: Tree menu - Set internet connection

pic_3177_2024

Picture: Set internet connection form - proxy

In the Type field, we select the communication protocol with the proxy server: ("HTTP", "SOCKS 4", "SOCKS 4A" or "SOCKS 5"; the definition of the individual types can be found at http://en.wikipedia.org/wiki/SOCKS). The Authentication field of the proxy server allows us to choose whether we will use a name and password for login (value "name and password") or not (value "no authentication").

SOCKS in any variant cannot be used for web services. Web services are: Creditcheck, Octopus, Reliability of VAT payers, PPL and others that are accessed via "THTTPRIO".

AI login

In the AI login book, it is possible to set up the individual models that the company will want to use in its work. The individual records are used to define and manage the connection to a generative language model via an API service. The configuration makes it possible to integrate an artificial intelligence model into the K2 system for the purposes of automated text processing, content generation or evaluation.

pic_1703401

Picture: AI login book

The default AI login must be set in the multicompany settings:

pic_1703403

Picture: Multicompany - AI settings

Functions for working with AI placed in the individual books in the ribbon on the AI tab always use the default AI login. All these functions can also be added as individual scripts to Functions and Print, and all of them have the AiCredential - AI login parameter, in which a model other than the default one can be set.

AI login - Basic data

On the Basic data tab, the configuration of a specific model is entered.

pic_1703405

Picture: AI login - Basic data

Description of selected fields:

Abbreviation

Unique record identifier

Provider

Name of the AI service

Model

The specific model of the selected provider used.

Maximum number of tokens

Limit on the length of the model's responses, -1 = unlimited

Login key

User's API key. Access requires a valid authorization and the selected service activated.

API address

URL address for calling the API

API Service

Endpoint for content generation

Book Contents

Book Index

Help - settings

Here we can choose the help language and also offline display of the help. If offline display of the help is not switched on, pressing the F1 key in the relevant module redirects to the documentation pages on the web.

pic_6072.png

Picture: Help - settings

Reinstall manager

The Reinstall manager is used to ensure a correct reinstallation of the K2 system. The function is available in the tree menu in the Administrator / System folder. To work with the Reinstall manager, the user must have the Service operations right set.

After the function is started, the Reinstall manager form is displayed.

pic_1704028

Picture: Reinstall manager

The checked Login prohibited field prevents users from logging in to IS K2, with the exception of the user who set the login prohibition. This ensures that the reinstallation is not disrupted by the presence of users in IS K2. The Login prohibited from field allows setting from when users will not be able to log in. If the login time is before the set prohibition, a message is displayed stating that it will not be possible to log in to IS K2 from the set time. We set the message in the Login message field. The abbreviation of the currently logged-in user who makes the settings in the Reinstall manager is then filled in automatically in the User field.

pic_1704001

Picture: IS K2 login window - Login prohibited field checked

pic_1704002
Picture: Login window - after filling in the Login prohibited from field

When the Login prohibited field is checked, the Reinstallation enabled field can also be activated. With this, the user confirms that nothing prevents the reinstallation and it can take place. To check this field, all users must be logged out of K2 and all mandatory initializations in the given version must have been performed. If the field is not checked, the installer will not allow us to continue with the reinstallation.

If the field cannot be checked, the reasons appear in the Reasons for not allowing installation table.

pic_107559

Picture: Reinstall manager

Depending on the type of version reinstallation, the following option is selected in the Reinstall manager for Reinstall to version:

Depending on the selected reinstallation variant, checks are run for completion of mandatory initializations and the steps needed for the transition to the required version.

In the Main client field, the client is selected under which all reinstallation actions that do not run separately for each client are to run.

The All button runs the Check structures, Simplified diagnostics of modules from the Object designer and Notification check actions all at once.

The Check structures button checks whether the database structures correspond to the definitions in K2. The check can be run at any time, because it is not bound to checking the Login prohibited and Reinstallation enabled fields. The same check is also performed as part of the installer's preparation for reinstallation.

If certain actions must be performed before reinstalling from a lower version, the Reinstall manager additionally shows a Prepare for "given version" button, which contains the necessary initializations.

After pressing the Simplified diagnostics button, a check is performed of the creation of each module registered in IS K2, including customer modules.

The Notification check may display a log with a message about inconsistencies in notifications. After logging in to IS K2, it is necessary to run the Check in the notification settings and remove any inconsistencies.

The Backup database button opens a form for creating a backup, in which the path for its location must be selected. The database is always backed up on the server where the SQL server is located.

pic_1704029

Picture: List of databases

Warning: After the reinstallation is finished, K2 is still in reinstallation mode and it is not possible to log in to it. The user who made the settings in the Reinstall manager, must log in to K2 after the reinstallation is complete and uncheck the Login prohibited field in the Reinstall manager. After that, it is possible to log in to K2 as any user.

Note: As long as K2 is in reinstallation mode, the user who set the reinstallation mode will be warned about this when closing K2 by the message "K2 has login prohibited. Close anyway?". If the user selects Yes, K2 closes; if No, the user remains logged in.

pic_1704030

Picture: K2 system message when closing K2

Book Contents

Book Index

Object designer

The Object designer is a tool whose aim is to speed up and simplify the development and maintenance of new components for the K2 information system using newly created classes and library functions.

Any number of extension definitions using OD can exist in the K2 system. Each such definition has a clearly defined space for creating its structures by means of a numbering range and prefixes in the nomenclature, and it is completely stored in a separate definition file saved in the xml format.

pic_6075.png

Picture: Object designer

Book Contents

Book Index

Test environment administration

Book Contents

Book Index

Admin interface

The Admin interface is a tool designed for installing and managing a test K2. It consists of functions that allow not only the installation of a new test K2, but also the transfer and synchronization of customer modifications, changed objects, scripts and form modifications between multiple K2 installations - typically between the production and test installation and vice versa.

To work with the Admin interface and the individual functions used, it is necessary to have the Administrator – General – Service operations right set. The function is placed in the tree menu Administrator - System - Test environment administration - Admin interface.

pic_10157

Picture: Admin interface form

Book Contents

Book Index

Export customizations to file / Import customizations from file

Using the export and import of customizations, customer modifications can be transferred between multiple K2 installations. The functions allow you to choose the data type (type of customer modifications) for the transfer, but do not allow them to be restricted by the date of their creation or change. Both functions can be run not only from the Admin interface, but also as separate functions. A more detailed description is given in the chapter Export and import of customizations.

Book Contents

Book Index

External services

The External services administration function makes it possible to set (allow or forbid) the communication of K2 with external services for individual K2 installations.

The function can be run not only from the Admin interface, but also as a separate function (it is placed in the tree menu Administrator - System - Test environment administration - External services administration). A more detailed description is given in the chapter External services administration.

Book Contents

Book Index

Object manager

The Object manager function allows the user to manage data saved in objects. These are data from various data classes; the key objects include mainly saved filters, records of scripts and reports added to the Functions and Print (F9) menu, saved configurations of various functional tools (e.g. Handling of requirements, Dead stock, Production manager, etc.) and many more. Objects can be filtered and then transferred between different K2 installations using export and import.

The function can be run not only from the Admin interface, but also as a separate function (it is placed in the tree menu Administrator - System - Object manager). A more detailed description is given in the chapter Object manager.

Book Contents

Book Index

Test K2 administration

The Test K2 administration function makes it possible to prepare an installation of a test (non-production) K2 of the same version as the current production K2 and transfer the required data to it. It also supports the transfer of data alone or the transfer of customizations without installation into an already existing K2. The function cannot be used to transfer data from a test installation to a production installation (the production installation is checked in Licence administration).

pic_10160

Picture: Test K2 settings - preparation for a new installation and restoration of data of the client Ostry1

Description of fields:

Install new K2

Yes: Installs a new non-production K2 into the directory entered in the Test K2 folder field. The version of the currently running K2 is installed; the program must be started with the exe file from the main directory, and the same build as the installed one must be running. The installed K2 automatically contains the Demo and Init clients, and databases are also created for the clients marked with an asterisk in the Clients section. Data are copied to the client databases according to the setting of the Transfer databases of selected clients option.

No: A new K2 is not installed; only data in an already existing installation can be updated.

Test K2 folder

When installing a new K2, this is the folder into which the new non-production K2 will be installed. If we do not perform an installation, this is the folder in which the test K2 is already located.

License file

When installing a new K2, a licence file must be selected.

Server, Catalogue

When installing a new K2, it is necessary to enter the name of the server on which the test K2 will be installed and also the name of the database catalogue. If we leave the default character "." (dot) in the Server field, K2 will be installed on the local server of the computer.

If we do not perform an installation, the server and catalogue are filled in according to the K2 selected in the Test K2 folder field.

Transfer customizations

Transfers all customizations (except the .ini file) to the selected K2 and, if necessary, also applies them to the relevant clients. A more detailed description of customizations is given in the chapter Export and import of customizations.

Copy the Conf database

Yes: Backs up and restores the Conf database into the test K2.

No: The Conf database is not restored into the test K2.

Transfer databases of selected clients

Yes: Backs up and restores the databases of the clients that are marked with an asterisk in the Clients table. If the client does not yet exist on the target (test) K2, a database is created for it.

No: Data are not transferred.

Back up target databases

Yes: Before restoring the data into the required databases on the test K2, it backs them up.

Database backup folder

Link to the local SQL server folder of the current K2 where the database backup will be created. It is preset automatically according to the server settings, if the server version supports it.

Source share folder to copy the database backup to

If the database of the source K2 is on a server on the network, it is necessary to enter a network link to the folder where the database backup was made. If the database of the source K2 is on a local server, we enter the link to the folder in the same way as in the Database backup folder field.

Database recovery folder

Link to the local SQL server folder of the target K2 to which the backup will be copied. It is preset automatically according to the server settings.

Destination share folder for copying the database backup

If the database of the target K2 is on a server on the network, it is necessary to enter a network link to the given folder. If the database of the target K2 is on a local server, we enter the path to the directory in the same way as in the Database recovery folder field.

Examples of how to fill in the fields with folders for database backup and recovery:

source database on a local server, target database on a server on the network

Database backup folder

C:\SQLBackup

Source share folder to copy the database backup to

C:\SQLBackup

Database recovery folder

E:\Backup

Destination share folder for copying the database backup

\\devsql\Backup

source database on a server on the network, target database on a local server

Database backup folder

E:\Backup

Source share folder to copy the database backup to

\\devsql\Backup

Database recovery folder

C:\SQLBackup

Destination share folder for copying the database backup

C:\SQLBackup

source database on a server on the network, target database on another server on the network

Database backup folder

E:\Backup

Source share folder to copy the database backup to

\\devsql\Backup

Database recovery folder

D:\SQLBackup

Destination share folder for copying the database backup

\\k2provider2\SQLBackup

Book Contents

Book Index

Transfer of changed objects, scripts / reports and fragments

The core functionality of the Admin interface tool is a set of functions for finding changed objects, scripts / reports and fragments and transferring them to another K2. In this case, it will typically be the transfer of new and approved items from the test (preparation) K2 to the production installation.

pic_10157

Picture: Admin interface - changed objects

We search for changed elements by the date of the last change, and for objects we can also filter by other available conditions. The date range is specified in the Changes from / Changes to fields - the fields are available on all subtabs. Matching elements are loaded using the Load data button. The elements we want to transfer must be marked with asterisks. Then, using the Create package button, we export them to a .zip file.

In the K2 into which we will import the elements, we again start the Admin interface and, using the Load package button, load the exported elements from the .zip file. The elements we want to import must be marked with asterisks. Then, using the Import package button, we introduce them into K2.

Export and import of customizations

The transfer of customizations consists of two functions: Export customizations to file and Import customizations from file. To work with these functions, it is necessary to have the Administrator – General – Service operations right set.

The functions work with a .zip file in which, after the export, all customer modifications of all K2 clients are stored in addition to the data themselves. They make it possible to transfer scripts and reports, form modifications, object designer files, extensions of file modules, and more.

The functions are also available in the Admin interface tool, which groups functions for managing test K2 installations.

Export customizations to file

The function is placed in the tree menu Administrator - System - Test environment administration - Export customizations to file. There is also an Export customizations to file shortcut for the function, which is primarily intended for adding to the Task scheduler.

pic_10389

Picture: Export customizations to file function

After the function is started, a menu is displayed in which we mark which modifications we wish to export. All K2 clients are exported automatically.

Scripts and reports

Special scripts and reports are exported, both those stored as files and those from the database.

Registration scripts stored as files and registered for the K2 installation (RF_K2.pas) and for clients (RF_Firm.pas) are exported.

If there are registration scripts in the database in K2 that are registered for a client (in the Client parameters), a list of these scripts is exported to the RF_MANDANT.json file.

Object designer

Exports the Extensions directory with the definition of projects defined in the Object designer.

INI files

The k2.ini and sysk2.ini files are exported.

Universal forms

Customer forms and modifications of standard forms are exported.

Extension of file modules

The TableMod.xml files, which define customer extensions of tables in individual clients, are exported.

Coverage definition (file StatusDef.xml)

The StatusDef.xml files, which define article coverage, are exported. Both the global file from the Conf directory and the files stored in the client directories are exported.

Special database tables and views

 

Next, we specify the details for saving the zip file:

Folder

Selection of the path where the RestorePackage.zip file with the selected modifications is to be saved.

Warning for a customization export added to the Task scheduler: The application server does not know drive mappings; the network name of the path must always be given.

Name

Allows the name of the .zip file to be changed.

Whole path

Path to the export file including the file name. The file name can be extended by:

  • Add client: the file name is extended by the licence name, or by the client name (if only one exists in K2)
  • Add date or Add time: the file name is extended by the date / time.

The export is started using the Confirm export button.

Import customizations from file

The function is placed in the tree menu Administrator - System - Test environment administration - Import customizations from file.

pic_10390

Picture: Import customizations from file function

After the function is started, a menu is displayed in which we mark which modifications from the loaded .zip file we wish to transfer into IS K2. After the .zip file is loaded, all options that were checked during the export are marked automatically.

Scripts and reports

Copies the special scripts / reports stored as files into the relevant directory (SestavyW) and imports into the database those that were stored in the database in K2.

Copies the registration scripts stored as files (RF_K2.pas to the SestavyW directory and RF_Firm.pas to the client directories). To register the database registration scripts for a client, it is necessary to activate the Apply to current client option and select the client concerned.

Object designer

Creates the Extensions directory with the definition of projects defined in the Object designer.

INI files

Copies the k2.ini and sysk2.ini files.

Universal forms

Imports customer forms and modifications of standard forms into the database.

Extension of file modules

Copies the TableMod.xml files into the client directories and renames them to TableMod_Restore.xml.

Depending on the setting of the Apply to current client option, it then does / does not apply the extensions to the structures of the given client, see below.

Coverage definition (file StatusDef.xml)

Copies the StatusDef.xml files into the relevant directories.

Path to file

Selection of the path from which the .zip file for import is to be loaded.

Apply to current client

The option relates primarily to the import of the Extension of file modules.

On: Copies the TableMod.xml files into the client directories and renames them to TableMod_Restore.xml. It allows extensions from another client to be applied to the current client. We select that client in the Selection of the client for transfer field. The database in the current client is converted and the final TableMod.xml file is created. The database will then be consistent with the definition in this file.

Off: Copies the TableMod.xml files into the client directories and renames them to TableMod_Restore.xml. If a file exists for the client into which we are currently logged in, a query is displayed asking whether we wish to apply the extensions. If we choose "Yes", the database in the current client is converted and the final TableMod.xml file is created. The database will then be consistent with the definition in this file. We answer the query with "No" if the structure of the current client already corresponds to the content of the file but we do not have this file. Afterwards, however, the TableMod_Restore.xml file in the client directory must be renamed to TableMod.xml.

 

Furthermore, it is also relevant for applying registration scripts from the database to the client. Described above for the Scripts and reports option.

 

Selection of the client for transfer

Selection of the client whose extensions of file modules are to be applied to the current client.

 

Apply file module extensions for Conf

If checked, the extension of file modules for the Conf database will be applied.

 

Special database tables and views

If checked, special tables and views of the specific client are imported.

Book Contents

Book Index

External services administration

The External services administration function makes it possible to set (allow or forbid) the communication of K2 with external services for individual K2 installations.

To work with this function, it is necessary to have the Administrator – General – Service operations right set. The function is placed in the tree menu Administrator - System - Test environment administration - External services administration. The function is also available in the Admin interface tool, which groups functions for managing test K2 installations.

Each K2 installation is identified by the database server name and the database name as follows: Server:Database. Using the Production installation option, one of the K2 installations can always be marked as "Production". This is only an informative option.

pic_10155

Picture: External services - List of K2 installations (production and test)

For each installation, we then allow or forbid communication for various services.

Sending and receiving emails

Communication via e-mail (e.g. sending notifications).

This is the only service that allows its settings to be changed using the Change service button, namely by entering an e-mail address. It is used in situations where we need sending e-mails to be allowed on the test K2, but e-mails must not be sent to individual users according to the settings in the production installation, only to a single test address - we enter this address in this service.

HTTP(S) communication

Communication via web services (e.g. API communication, Infoservice, ARES, etc.)

FTP communication

Communication via FTP (File Transfer Protocol).

SFTP communication

Communication via SFTP (Secure Shell File Transfer Protocol).

pic_10903

Picture: External services - service settings for a test K2 installation

A K2 that has external services forbidden then displays an orange information bar in the window header listing the external services that are not allowed.

Note: External services administration can easily be opened by clicking this orange bar with the left mouse button.

pic_10159

Picture: Window of a test (non-production) K2 installation with e-mail communication not allowed

The external services settings are stored in tables of the Conf database. Therefore, if we plan to copy the company's production K2 installation into a test K2 installation (installations) including the Conf databases, the settings for the various installations can be made directly in the source (production) K2 even before the test K2 is created.

Book Contents

Book Index

Available updates

In these updates you will find a list of currently released versions, which you can then download via the K2 Installer.

At the first login, a registration window appears.

pic_10899

Picture: Available updates - Login window

Description of fields:

Login name

The login name (e-mail address) for downloading K2 products via the K2 Installer is entered.

Password

Password to the K2 Installer.

Confirm password

Password to the K2 Installer.

Using the Register button, you send a request for registration to the K2 Installer.

Using the Insert credentials button, you log in to the Available updates section, in which the currently released versions will be displayed.

The login credentials are entered into the given form only once. After that, the window with the currently available versions will be displayed automatically.

pic_10900

Picture: Available updates - list of versions

Description of fields:

Show versions higher than my version

A list of all versions to which the current version can be reinstalled is displayed, including inter-generation versions.

Show K2 versions alba/vega/and others

Displays all released versions within the current version.

Show all versions

Displays all available versions, including versions with a lower release.

Version filtering can be combined.

The columns with a flag provide information about the available language versions (cze, svk, eng).

By clicking through in the Fixed and found errors and Changes in versions columns, the new features and reported errors for a specific build of the version are displayed.

The Release date column shows the date when the version was released.

Book Contents

Book Index

K2 partial update

The K2 partial update function is used to upload fixes or new functions into IS K2 without the need to install a new version. Typically, this is an update of legislative changes handled by scripts or reports.

The function is available from the tree menu Administrator - System - K2 partial update or by creating the Other - K2 partial update button on the desktop on the Favourites tab. To work with this function, it is necessary to have the Administrator – General – Service operations right set.

After the function is started, a form appears in which the available updates are displayed automatically. If an empty form appears, no update is available for the given version. Records suitable for updating K2 are automatically marked with an asterisk.

pic_11016

Picture: Form K2 partial update

The marked records are installed by pressing the Install packages button. Records are marked and unmarked using the Ctrl+Space and Shift+Enter keys. Partial updates can be installed by a user who has write permission to the ServisW folder.

After pressing the Support centre button, you are redirected to the new feature or error to which the partial update package relates.

After pressing the Ignore package button, the package will no longer be offered for download. The information that the package was ignored can be found in the Detail of Installed updates.

If the installation of a package requires a restart of the application servers (packages containing scripts, reports, extensions), the user is informed of this fact and asked whether he/she wishes to install the packages anyway:

pic_10952

Picture: Partial update - Decision whether to install the package even though it requires a restart of the application servers

If the user allows the installation of the package, he/she is informed after the installation is completed about the need to restart the application servers:

pic_10953

Picture: Partial update - Message about the restart of application servers

If the user decides to restart the application servers, he/she is asked once more about their restart and is warned about possible temporary outages of services associated with the running of application servers:

pic_10954

Picture: Partial update - Warning about a possible service outage during the restart of application servers

If the answer is positive, the application servers are restarted, but only if recovery after failure is set in the properties of the application server service in the operating system. Otherwise, they will only be stopped!

pic_10955

Picture: Setting recovery of application server services after failure

If several application servers are used, it is possible to ensure that not all servers are restarted at once by grouping the servers by purpose of use (for example, all application servers for the e-shop will be in one group). The restart then proceeds in waves, always one server from each group. Unassigned servers (Group = 0) are restarted last and all at once. Servers are assigned to groups in the List of application server services book, which can be found in the main menu under Administrator / System / List of AS services.

The result is a log of the restart progress.

pic_10956

Picture: Protocol on restarting application servers

Note: A restart of the application servers can be forced from the Partial updates form at any time using the Restart all AS button. All the rules stated above apply to restarting.

A list of all updates is displayed after pressing the Installed updates button. The Partial update form is then displayed, containing an overview of all installed packages.

pic_6198.png

Picture: Installed updates

Description of fields:

Description

Name and description of the partial update.

Status

The following package statuses can be displayed:

  • pic_1116i.png - without errors;
  • pic_1118i.png- for installation;
  • pic_1117i.png - with an error.

Type

Identification of whether the package contains a new feature or an error fix.

Module

The module to which the partial update relates.

Version

The number of the version in which the package was created.

Intended for version

The numbers of the versions for which the partial updates are intended.

Name

Publisher of the package.

Installed

Date and time of the package installation.

Sk

If checked, the partial update package contains scripts.

Fr

If checked, the partial update package contains fragments.

D

If checked, the partial update package contains data.

SW

If checked, the partial update package contains executable functionality for conf.

SD

If checked, the partial update package contains executable functionality for data.

Ex

If checked, the partial update package contains extensions.

Number

Package number.

Re

If checked, the partial update package has gone through reinstallation.

The Detail tab provides more detailed information about the installed package, including the log of the given installation.

pic_6227.png

Picture: Detail tab

The Steps tab provides information about the installed parts of the package. These parts are:

pic_6228.png

Picture: Steps tab

If a part is installed, information about the result of the installation of that part is displayed. The following statuses can be displayed:

An error must always be resolved with a consultant. The consultant will decide whether the error can be ignored, or will make the necessary modifications and reinstall the package.

When the Reinstall the package button is used, the package is reinstalled even if it is not offered in the list of partial updates. The parts that can or need to be installed at the given moment are installed. The package can also be returned to K2 partial updates using the For installation button. The package appears again in the initial form and can be installed again.

If we set some part of the package for installation again, it means that we want to install certain parts of the package again. This situation may occur when the package was installed correctly, but an external intervention in the K2 system data occurred. The parts from the package then need to be restored.

When a new client is created, all updates for the given version are gone through and this client is added to the list pic_1118i.pngfor installation.

The situation must always be resolved with a consultant.

The K2 partial update function uses web services and requires an internet connection to work.

After the package is installed, a message about the need to restart the application servers is displayed. Restarting the application servers is necessary for the required modifications to be reflected in the web K2 as well.

pic_10485

Picture: Message about the need to restart the application servers

Book Contents

Book Index

Replacement of units in scripts

The Script Translation Assistant function replaces unit names in the uses section according to the specification in the selected file.

The function is located in the tree menu Administrator - System - Replacement of units in scripts. To run the function, the rights Edit K2 scripts (384) and Change K2 coded script (385) (Administrator - Reports and functions (F9)) must be set.

pic_4752_2024

Picture: Script Translation Assistant function

Description of fields:

File with the definition of U_ replacements

The individual lines are definitions of what is to be searched for and what it is to be replaced with: "original unit";"new unit"; Const is automatically appended to the end of the "new unit" name.

Path to scripts or AM reports

Location where the replacement of units is to be performed.

Special scripts and AM reports in database

Performs the replacement in special scripts in the database according to the access right.

Keep deleted units

If the field is checked and the original unit has no replacement, the original name is not deleted from the script or AM report.

Book Contents

Book Index

Correction of VAT rate, type of tax and customs tariff according to legislation

The function ensures the consistency of the Tax type, Tax rate and Customs tariff data for records that contain a reference to the number of the above data, but the given record does not exist in the given legislation. If this inconsistency exists, the given record cannot be changed. To be able to run the function, the user must have the right for Service operations (right number 1) and the right for Viewing error log items (960).

The function is not included in the tree menu and must be placed on the desktop as a shortcut from the Registered functions book (record number 1331). The function is set in the K2 function number field.

pic_7062

Picture: Properties of the function shortcut

The Correction of VAT rate, tax type and customs tariff according to legislation function has three phases. In the first phase, the tax rates of all documents are gone through, and if a tax rate that does not exist in the given legislation is found on a document, the list of these tax rates is displayed in a table (see below). In this table, the user matches the found rates either to already existing tax rates or creates the relevant tax rates. After all records in the table are matched and confirmed (the Run correction button), the correction of the VAT rate is run, followed automatically by the correction of the tax types and customs tariff. If the tax type or customs tariff does not exist, the record is created automatically.

After the function is started, a table (Pic. No. 1) is displayed with the tax rates that do not exist in the given legislation. The left part contains the list of tax rates that were found on documents but were not found in the legislation stated on the document book. Matching is performed in the right part of the table in the New VAT rate column using row editing.

pic_7034

Pic. No. 1 - Rates of non-existent taxes

Row editing followed by pressing the F12 key displays the Tax rate book (Pic. No. 2), in which we find the appropriate record with the tax rate or create the relevant record.

pic_7035

Pic. No. 2 - VAT rate book displayed after row editing of the record

When selecting a tax rate, the original tax rate and the tax rate of the matched rate are checked. So if a value with a different tax percentage is matched to the original tax rate (see Pic. No. 3 and the different rate 10% vs. 11%), an error message is displayed (Pic. No. 4).

pic_7036

Pic. No. 3 - Setting a different rate

pic_7037

Pic. No. 4 - Matching a tax rate with a tax percentage value different from the original record

After all tax rates are correctly matched and the Run correction button is pressed, all tax rates, tax types and customs tariff records are corrected.

pic_7038

Picture: Table of tax rates with matched records

If the Legislation check function was deactivated (see the ribbon of purchase and sales documents) and a document was created as a copy (F6) of a document that already contained the inconsistency, a log with the documents that need to be resolved manually is displayed after the function finishes. In such a case, it is sufficient to go through the Tax rate and Tax type fields on the items of the given document and save the document.

pic_7061

Picture: Error protocol with documents

Book Contents

Book Index

K2 monitoring

K2 monitoring is a service for recording the way the user uses the K2 information system. System errors occurring while using the K2 product are recorded in the statistics automatically and their recording cannot be switched off. To switch off the recording of scripts run, print reports and actions / functions performed by the user over records in individual modules, it is necessary to withdraw consent in the K2 monitoring settings function, which can be found in the tree menu under the Administrator / System node. The setting applies to the given K2 installation.

Book Contents

Book Index

Secret storage

In K2, we work with sensitive data such as passwords, access tokens or certificates for communication with third-party services. For their secure and uniform storage, K2 supports the OpenBao storage.

Programmers and script writers can use the encrypted key-value storage, where they can store secrets needed for work in K2. Thanks to this, it is not necessary to create a custom way of storing sensitive data for individual solutions.

Book Contents

Book Index

Secrets storage configuration

The secrets storage is configured using the Secrets storage configuration function. The function is accessible from the tree menu Administrator - System - Secrets storage configuration. The configuration is performed by a consultant.

We set the following data:

After the configuration is completed, the secrets storage can be used in IS K2.

pic_1703818

Picture: Secrets storage configuration

Book Contents

Book Index

Authorization

When accessing OpenBao, we use the user's login to K2, so the user does not need to be authenticated again.

When a user accesses secrets stored in OpenBao, K2 creates a JWT token containing information about the user and his/her permissions. It signs the token with a certificate whose public key is stored in OpenBao.

OpenBao verifies the signature of the JWT token and then issues an access token, which we can use to access the storage. Before each request to OpenBao, a new access token must first be obtained.

Certificate for signing JWT

The certificate used to sign JWT tokens is stored in the Windows certificate store. It is not necessary to install it on every workstation where we use K2 – it is sufficient to have it stored on the application server.

If K2 does not find the required certificate on the local workstation, it asks the application server for authentication. The application server obtains an access token and passes it to the K2 client.

Book Contents

Book Index

Print of records

Statement of user rights

Process number: SPR007

Report ident. number: SSPR031

File: UserRightsList.am

Report description: Statement of user rights

Address in the tree: [Administrator] [Print records]

Report parameters:

No parameters.

UserRightsList

Alphabetical list of rights

Process number: SPR005

Report ident. number: SSPR024

File: PRAVAABC.AM

Report description: Statement of rights. Alphabetical list of rights.

Address in the tree:

Report parameters:

No parameters.

PRAVAABC

Users with restricted access

Book Contents

Book Index

DM explorer

This tool can be used to find out the structure of data modules in the K2 program.

pic_6283.png

Picture: DM explorer