Logistics
Articles
Export of articles to "*.xml"
Process number: |
Script ID number: |
File: ExpZboXML.pas |
Script description: Script for exporting articles to the "*.xml" format. |
||
Address in the tree: |
||
Script parameters:
XMLFile Parameter for selecting the storage location and the name of the target file. |
XMLFileForImport Parameter for selecting the storage location and the name of the target file with the export settings. |
XMLFileSaveSett Parameter for selecting the storage location of the file with the current settings. |
This script can be used to export articles to the "*xml" format. The script is run on the article container and only the articles from this container are always exported. After it is run, a form is displayed in which you can select the individual export elements, i.e. the fields of the article card. The individual elements for export must be marked with an asterisk in the form. Marking is done using the standard asterisk icons or the key combinations Shift+Enter or Ctrl+Space. The list of these elements can be sorted in the form according to various criteria. The Sort by field is available for selecting this sorting. The user can also export Alternate units or Selling prices together with the articles. To export these submodules, they must be selected in the Target module field and the corresponding elements must again be marked with an asterisk. The Output file field is used to enter the name and path of the exported "*.xml" file.
This script also allows you to create a "*.xml" file with value settings for the import of articles. This is possible by checking the Create settings for import field. When this field is checked, all required fields (elements) of the article card are also marked automatically. This file can be copied to the company directory, and after it is run, the script for importing articles automatically links the exported article fields stored in this "*.xml" file with the fields in K2.
The user can also save the current settings in the form using the Settings/Save settings option on the toolbar. Settings saved in this way are used the next time the script is run. The current settings are again saved in an "*.xml" file.
The actual export of articles is performed by pressing the Export button.

Picture: Export data form
Export, import of LangTxt
Process number: CIS007 |
Script ID number: FCIS009 |
File: ZBO_LANGT_EX.PAS |
Script description: Script for exporting and importing language names of articles. The structure from the export must be preserved during the import. |
||
Address in the tree: [Sale / Sales order processing] [Basic data] [Articles] [Functions] [Purchase / Supply] [Basic data] [Articles] [Functions] |
||
Script parameters:
Filt - Yes Loads data from the filter. |
Import - No No - export; Yes - import. |
JoinField - , ZBOZI.Zkr AS Zkratka, ZBOZI.Naz AS Nazev Adds columns named Zkratka and Nazev. Further columns can be defined in the resulting Excel file. The parameter must start with ","; the column heading can be entered after AS (", ZBOZI.Vyr as Značka, DP.Hodnota AS XXXX"). |
JoinStr - 1; 2; 3; 4; 5 No further link. |
Languages - No Numbers of the languages to be exported. |
Visible No - the Excel file is opened only when it is complete with the data; Yes - Excel is displayed during the export while the data are being filled in. |
WhereStr Defines a restriction, e.g. on a field number; it must start with "AND", "OR". |
Filter - reserved and ordered
Process number: |
Script ID No.: FSKL010 |
File: ReservedOrdered.pas |
Script description: The script creates a selection of articles that are reserved or ordered. It can also load cards that have a minimum or maximum quantity recorded for the currently set warehouse. The created selection can then be supplemented with further conditions (via the standard user interface of Selections) and the result can be adjusted by running the selection again. This method is orders of magnitude faster than using calculated fields on the Articles book. |
||
Address in the tree: |
||
Script parameters:
IgnoreInvalidArticles - Yes Yes - invalidated article cards are ignored. No - invalidated article cards are also filtered. |
LoadMinMax - No Yes - also loads cards that have a minimum or maximum quantity recorded for the currently set warehouse. |
ReservationsOnly - No Yes - loads only articles that are reserved |
Bulk adding/editing of the EO note - electronic waste
Process number: EXP005, ZAS021 |
Script ID number: FZAS008 |
File: POZN_ELEKTROODPAD.PAS |
Script description: Inserts and changes e-waste records in bulk on the container of Article cards. A more detailed description is in the Financing of e-waste collection methodology. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
Import article language names from Excel
Process number: CIS010 |
Script ID number: FCIS004 |
File: ZBO_IMPL.PAS |
Script description: Import of language names of articles from Excel; it must have the same columns as the Export of articles from Excel. |
||
Address in the tree: [Sale/Sales order processing] [Basic data] [Articles] [Functions] [Import of language names of articles from Excel] [Purchase/Supply] [Basic data] [Articles] [Functions] [Import of language names of articles from Excel] |
||
Script parameters:
No parameters.
|
Import of article parameters
Process number: |
Script ID number: FCIS016 |
File: ImportGoodsParams.PAS |
Script description: The script allows you to import article parameters, including defined values, from an Excel file (for the article cards defined in Excel) (provided that it is a parameter type whose value is not, for example, linked to a specific field of the article card).
After the script is run, an OpenDialog opens, where the value for the Classification field on page P is selected (in universal forms, this is the Parameters tab), and after checking the Select source file flag, the Excel file for import can be searched for.
Excel structure: The first column of the Excel file must be the abbreviation of an existing article; the other columns are parameter values. The column name must match the parameter name. The parameters, including the definition of possible values, must already be prepared in K2; the script only fills in the values.
A sample Excel file for importing article parameters is available in the directory: K2/SupportFiles/ImportGoodsParams_Demo.xlsx |
||
Address in the tree: |
||
Script parameters:
CategoryId = 0 Record number from the Classification code list. |
InputFile Location of the Excel file. E.g. C:\Adresar\Parametry.xlsx |
Export of article parameters
Process number: |
Script ID number: FCIS018 |
File: ExportGoodsParams.PAS |
Script description: The script can serve as an aid in the process of changing parameter values for one or more articles by exporting the parameters to Excel. The required change of the article parameter values is made in this Excel file, and the parameters changed in this way are then imported back into IS K2. The ImportGoodsParams.pas script is used for this.
The exported article cards must have the same parameters (the values may differ). If article cards with different parameters are found during the export, these article cards are not exported and a list of the article cards not exported is displayed in the log after the script finishes.
After the script is run, an OpenDialog opens in which the path for the created Excel file is set.
Excel structure: The article abbreviation is exported to the first column of the Excel file; the other columns are parameter values. The column name corresponds to the parameter name. |
||
Address in the tree: |
||
Script parameters:
no parameters |
Article execution
Process number: |
Script ID number: |
File: ArticleDemandByGUID.pas |
Script description: The script runs the selected configuration of the Handling of requirements function. |
||
Address in the tree: |
||
Script parameters:
ConfGUID - 0 GUID of the required configuration of the Handling of requirements function. |
Import of articles
Process number: CIS007 |
Script ID number: FCIS004 |
File: ImZbo.PAS |
Script description: Import of article cards from Excel and XML including alternate units and selling prices. |
||
Address in the tree: [Sale] [Basic data] [Articles] [Functions] Import of articles from Excel II |
||
Script parameters:
CustFindBy - 0 When importing supplier prices, the supplier from Excel will be searched for by: 0 - by default first by number, zkr, zkr1, fir; 1 - Cdo; 2 - zkr; 3 - zkr1; 4 - fir. |
Customs_tariff_Abbr - No No - searches by VAT rate (19,0.19,1,19); Yes - searches by abbreviation. |
FindByAbbr - Yes If the parameter is set to Yes, the script searches for articles by abbreviation 1 and then, if necessary, by name; if the parameter is set to No, articles are searched for only by abbreviation 2. |
XMLFile - ImportZbo.xml Parameter for specifying the name of the "*.xml" file in which the current settings and field pairing are saved. |
UseGrossPrice - No Applies to the Net selling price header field. Yes - the basic selling price is entered as a gross price. No - the basic selling price is entered as a net price. |
Spreadsheet - 0 Parameter for selecting the spreadsheet application for the import. 0 - the script automatically detects the spreadsheet application for the import, 1 - the script uses the Microsoft Excel spreadsheet application for the import, 2 - the script uses the OpenOffice spreadsheet application for the import. |
ShowCalcFields - No If the parameter is set to Yes, calculated fields are also displayed in the import form. |
This script can be used to import articles into IS K2 from a "*.xls" or "*.xml" file and thus simplify entering article cards into the system. Together with the articles, their alternate units, supplier prices, bar codes, language names, notes, information for the ES page and selling prices can also be imported.
Import articles from Excel
When preparing a file suitable for import, make sure that the header with the column descriptions is on row 1 and the actual data to be imported start from row 2.
After starting the script, the prepared "*.xls" file must be loaded into the Input file field. The user can do this with the Load file button.
By selecting and loading the input file, data are loaded into the left part of the form, Input columns. This is the 1st row of the imported file. The With header option means that the data will be imported from row 2, otherwise from row 1.

Picture: Loading the import Input file - Excel
The next step of the article import is linking the input columns from the imported Excel file (the Input columns table) with the individual fields in IS K2. These are loaded in the right part of the form in the Field in K2 section. These fields are linked as follows:
- Select a column by name in the Input columns section.
- Select a field from the list in the Field in K2 section. This is the IS K2 field into which we want to import the value from the marked Excel column.
- Press the Link button. The Excel column is then linked with the corresponding field in IS K2.
After linking, the Input name and Input column columns in the Field in K2 section display the names of the assigned columns from the imported file (Excel). At the same time, the number of assignments for each column is shown in the Input columns section. This is the value in the Total column. A field that is already linked can also be detached. To do this, simply select the field in the Field in K2 section and press the Detach button.
The
flag in the PP column in the Field in K2 section marks the required fields. Columns from the input file must always be assigned to these fields and their Def. value must also be entered. The following applies to the default value.
- By selecting or entering a default value, it is possible to import the specified default value into the K2 database without assigning a column from the "*.xls" file.
- If both a column from the input file and a default value are assigned, the default value will be imported if the input file contains an empty value.
- Filling in the default value is mandatory for Required fields and for fields that refer to code lists whose update is not enabled, see below.
- A default value can be inserted via the Choose the default value icon at the top of the form or by pressing Enter on a specific record.
Update of code lists
- The
flag in the A column means that for fields linked to code lists, it is possible to enable the update of these code lists during the import. If the update is enabled, the
flag will be in the A column. - If the update of a code list is not enabled, a default value must be entered, which will be imported if the assigned column of the input file contains an empty value or a value that is not in the code list.
- The update can be enabled using the Enable update of code lists button at the top of the form or by pressing the Shift+Enter key combination on a specific record.
The final import settings can be checked to reveal any deficiencies before the import itself. This is done using the Check button. For repeated imports, the settings, including the linkage of fields between Excel and IS K2, can be saved. This is possible using the Save settings button. All import settings are saved to a secondary file in the "*.xml" format. The full name of this file is "ImportZbo.xml" and you can find it in the directory of the relevant client within the IS K2 file system. The very first line of this file contains the path to the imported Excel file. When the import is run again, it is no longer necessary to link the Excel and IS K2 fields again.
The article cards are imported by pressing the OK button.
Functions for Excel import
Fields:
Link |
Links the marked field from the imported Excel file with a field from IS K2. |
Detach |
Cancels the linkage of fields from Excel and from IS K2. |
Actions:
Choose the default value |
The button is used to enter a default value into IS K2 fields. |
Delete the default value |
Button for deleting the default value from IS K2 fields. |
Allow to update code list |
The button is used to enable the update of fields that are linked to code lists. |
Options:
Do not import duplicate records |
Only articles whose name is not in the K2 database are imported. |
Allow to import duplicate records |
All records are imported regardless of whether the company names in the database match. If an identical article name is found, –01, -02 etc. is added to the end of the name. |
Rewrite duplicate records and import new ones |
All records are imported. Articles that are already in the database according to their name will be changed according to the imported data (including submodules); the others will be created as new |
Rewrite duplicate records only (do not import new ones) |
Only articles that are already in the database according to their name are imported (overwritten); they will be changed according to the imported data (including submodules). |
Excel table has header row |
The import takes into account the header of the input columns in the file. |
Import of subordinate modules |
By default, it is set to include the import of submodules. If the field is checked, submodules can be imported. |
Do not import empty values |
Set to yes by default - ignores the value of an empty field. If no, the values are overwritten with an empty value. |
Input file:
Load Excel file |
Displays a dialog box for loading the input file (Excel) for the article import. |
Add column to Excel |
This button can be used to add a column to the input file (Excel). It displays a form for the column name. For the function to work correctly, the Spreadsheet - 1 parameter must be set; with the default setting Spreadsheet - 0, this function is disabled. |
Remove column in Excel |
Removes the selected column from the input file (Excel). For the function to work correctly, the Spreadsheet - 1 parameter must be set; with the default setting Spreadsheet - 0, this function is disabled. |
Rename column in Excel |
Used to rename a column in the input file (Excel). It displays a form for changing the column name. |
Load configuration file |
Displays a dialog box for loading a configuration "*.xml" file. |
Settings:
Check |
Checks the import settings. It is advisable to use it before running the import. |
Save |
Contains the Save and Save as options. Saves the current import settings to a "*.xml" file. |
Delete |
Deletes the saved settings within the "*.xml" file. |
Import of subordinate modules
As part of the article import, it is possible to import Identification numbers, Article/warehouse data, E-waste, Product keys, Alternate units, Price groups, Notes (description of 60 characters), EANs and Language names. The principle of importing submodules is the same; Alternate units and Price groups are given for illustration.
Functions for the Import of subordinate modules
Release linkage |
Used to edit a saved linkage if we need to modify or change previously entered values. |
Delete mapping |
Deletes the saved linkage. |
Alternate units
In the Submodules section, Alternate units are available for selection. After pressing Enter on the submodule, a form for setting the import of Alternate units opens.

Picture: Import of alternate units
Assigning fields
- Select the column name in the Column section.
- Select the field in K2.
- Press the Link button.
After all values from the Excel columns have been assigned, the settings must be saved to the lower window using the Save button. Each save represents the import of one alternate unit, i.e. the number of rows in the lower table of the form should correspond to the number of alternate units on the article card.
Required field - The
flag in the PP column marks the required fields in K2 to which columns from the input file must be assigned and a default value entered.
Def. value - Fields marked in this way are linked to code lists and a default value can be set.
Delete settings - this button deletes the settings of the entire form.
OK – saves the settings of the entire form
After setting up the import of submodules, the OK button must always be pressed; this sets the flag for importing the submodule on the main article import form, see the picture Flag of the Import of subordinate module. Pressing another button clears the flag.
When importing texts to the ES page, language texts for various languages can also be imported. The condition is that the language is set on the article card (ES page) before the import and that the corresponding column in Excel is linked with the language translations for the selected language. The import of articles with language translations on the ES page is run repeatedly for each language. Before each import, the imported language must be set on the article card and the corresponding Excel columns must be matched with the fields of the ES page.
Import of articles from XML
When preparing the "*.xml" file, before the import itself, the following rules must be observed:
- All imported values must be stored within the selected main element (described below), either as attribute values or as values of child elements.
- Values must not be stored directly as values of the main element, but as values of one of the child elements.

Picture: Sample structure of a "*.XML" file
After the script is run, the prepared "*.XML" file must be loaded into the Input file field.
Functions for XML import
Fields:
Link |
Links the marked field from the imported Excel file with a field from IS K2. |
Detach |
Cancels the linkage of fields from Excel and from IS K2. |
Actions:
Choose the default value |
The button is used to enter a default value into IS K2 fields. |
Delete the default value |
Button for deleting the default value from IS K2 fields. |
Allow to update code list |
The button is used to enable the update of fields that are linked to code lists. |
Options:
Do not import duplicate records |
Only articles whose assigned abbreviation is not yet in the K2 database are imported. |
Allow to import duplicate records |
All records are imported as new items regardless of whether the article names in the database match. If an identical article name is found, – 01, – 02 etc. is added to the end of the name. |
Rewrite duplicate records and import new ones |
All records are imported. Articles that are already in the database according to their name will be overwritten and changed according to the imported data (including submodules); the others will be created as new. |
Rewrite duplicate records only (do not import new ones) |
Only the records whose names already exist in the database are imported. The articles will be overwritten and changed according to the imported data. |
Import submodule |
This option is displayed only if we select a submodule in the Target module, list. If the field is not checked, no values will be imported into the submodule, even if fields are assigned for import. |
Input file:
Load XML file |
Displays a dialog box for loading the input file (XML) for the article import. |
Load configuration file |
Displays a dialog box for loading a configuration "*.xml" file. |
Settings:
Check |
Checks the import settings. It is advisable to use it before running the import. |
Save settings |
Saves the current import settings to a "*.xml" file. |
Delete settings |
Deletes the saved settings within the "*.xml" file. |

Picture: Initial screen of the article import - XML
Procedure for correctly setting up the imported file:
- Loading the input file
- Selecting and setting the Main element
- Select element
- Assigning and linking the imported fields
1. Loading the Input file
After the script is run, the prepared "*.XML" file must be loaded into the Input file field. After loading, the file can be viewed using the View button. The document is displayed in the program that is set as the default for viewing documents in the "*.XML" format.
2. Selecting and setting the Main element
This main element should represent the individual article items to be imported. The number of these elements in the "*.xml" file determines the number of imported article items. All data about the imported articles, including data from submodules such as alternate units and selling prices, must therefore be stored within the attributes or child elements of the Main element. When the import is run, all these elements are traversed and the assigned values are filled in. See Example No. 1.
3. Select element
After selecting the main element, you need to choose the element in which the values we want to assign to the K2 fields are stored. If the values are stored as attributes of the main element, we select the same element as we selected as the main element; otherwise we will only be able to select one of the child elements. After an element from the "*.xml" file is selected, all values that can be linked for import are loaded. All child elements (that contain some value) and all attributes of the selected element are displayed. It is not possible to select an element that is not inside the main element, because linked fields outside the main element are not imported.
4. Assigning the linkage of imported fields
Select the Name in the "*.XML" file field section.
- Select the Field in the XML file field section.
- Press the Link button.
The name and path columns in the Field in K2 section display the names of the assigned elements or attributes from the imported file.
To detach fields, simply select the field in the Field in K2 section and press the detach button.
Required field - S The
flag in the PP column marks the required fields in K2 to which columns from the input file must be assigned and a default value entered.
Def. value
- By selecting or entering a default value, it is possible to import the specified default value into the K2 database without assigning a value from the "*.xml" file.
- If both a column from the input file and a default value are assigned, the default value will be imported when an empty value occurs in the input file.
- Filling in the default value is mandatory for required fields and for fields that refer to code lists whose update is not enabled, see below.
- A default value can be inserted via the Choose the default value function at the top of the form, or by pressing Enter on the record.
Update of code lists
- The
flag in the A column means that for fields linked to code lists, it is possible to enable the update of these code lists during the import. If the update of a code list is enabled, the
flag will be in the A column. - If updating of the code list is not enabled, a default value must be entered, which will be imported if the assigned column of the input file contains an empty value or a value that is not in the code list.
- Updating can be enabled in the upper part of the form of the Allow to update code list function, or with the keyboard shortcut Shift+Enter on the record.
Example No. 1:
Import of the main module Article.
1. Structure of the "*.XML" file

2. Import settings

Picture: Import settings
In the example of importing articles with the target module Article, the main element is "zbozi"
The same rules apply to subordinate modules as to the main module, i.e. if alternate units or selling prices are to be imported, they must be placed in the "*.xml" file in one of the subordinate elements, either as attributes or as values of subordinate elements. The element that contains the values for the subordinate modules is then selected as the main element. See Example 2.
Example 2:
1. Structure of the "*.XML" file

2. Setting the main import element of a subordinate module

Picture: Import settings
Element settings:
Since all values related to the main module Article are stored in the sample file as attributes of the main element, the element "zbozi" is selected again in the element selection. After the element is selected, the available data are loaded. The same rules and restrictions apply to subordinate modules.

Picture: Import settings
Saving Settings
The form settings can be saved or deleted in the menu.
Import of subordinate modules
Within the import of articles, it is possible to import Alternate units and Selling prices. The same rules apply to importing subordinate modules as to importing the main module. It is only necessary to check the Import subordinate module option.
Import articles from Excel
Process number: CIS010 |
Script Id. No.: FCIS005 |
File: ZBO_IMP1.PAS |
Script description: Loads articles from Excel; the first row must contain the header and the first column must contain the article abbreviations. The column names in the header must correspond to the field names in the article DM. |
||
Address in the tree: [Purchase/Supply] [Basic data] [Articles] [Functions] |
||
Script parameters:
No parameters.
|
Import of articles from XML
Process number: CIS007 |
Script Id. No.: FCIS011 |
File: ImpZboXML.PAS |
Script description: Import of article cards from a "*.xml" file including alternate units and selling prices. |
||
Address in the tree: [Sale] [Basic data] [Function] Import of articles from XML [Purchase] [Basic data] [Function] Import of articles from XML |
||
Script parameters - default value:
FindByAbbr1 - Yes Yes - the search will be performed by Abbreviation 1; No - by Abbr2. |
XMLFile - NastImportZboXML.xml Parameter for specifying the name of the "*.xml" file in which the current settings and field pairing are saved. |
When preparing the "*.xml" file, before the import itself, the following rules must be observed:
- All imported values must be stored within the selected main element (described below), either as attribute values or as values of child elements.
- Values must not be stored directly as values of the main element, but as values of one of the child elements.

Picture: Sample structure of a "*.XML" file
After the script is run, the prepared "*.XML" file must be loaded into the Input file field. After loading, the file can be viewed using the View button. The document is displayed in the program that is set as the default for viewing documents in the "*.XML" format.
Import settings
Do not import duplicate records |
Only articles whose assigned abbreviation is not yet in the K2 database are imported. |
Allow to import duplicate records |
All records are imported as new items regardless of whether the article names in the database match. If an identical article name is found, – 01, – 02 etc. is added to the end of the name. |
Rewrite duplicate records and import new ones |
All records are imported. Articles that are already in the database according to their name will be overwritten and changed according to the imported data (including submodules); the others will be created as new. |
Rewrite duplicate records only (do not import new ones) |
Only the records whose names already exist in the database are imported. The articles will be overwritten and changed according to the imported data. |
Import submodule |
This option is displayed only if we select a submodule in the Target module, list. If the field is not checked, no values will be imported into the submodule, even if fields are assigned for import. |

Picture: Initial screen of the article import
Procedure for correctly setting up the imported file:
- Loading the input file
- Selection of target module
- Selecting and setting the Main element
- Select element
- Assigning and linking the imported fields
1. Loading the Input file
After the script is run, the prepared "*.XML" file must be loaded into the Input file field. After loading, the file can be viewed using the View button. The document is displayed in the program that is set as the default for viewing documents in the "*.XML" format.
2. Selection of target module
Offer of the modules (books) into which the data are to be imported. Here you can choose Article as the main module and Alternate units and Selling prices as subordinate modules. To display and assign fields from a given module, you always have to switch to it. For subordinate modules, there is also an option whether the subordinate module is to be imported. For the import, the option must be checked.
3. Selection and settings of the Main element
For the selected target module, a main element must be chosen. This main element should represent the individual article items that will be imported. The number of these elements in the "*.xml" file determines the number of imported article items. All data about the imported article, including data from subordinate modules such as alternate units and selling prices, must therefore be stored within attributes or subordinate elements of the Main element. When the import is started, all these elements are passed through and the assigned values are filled in. See Example No. 1.
Example No. 1:
Import of the main module Article.
1. Structure of the "*.XML" file

2. Import settings

Picture: Import settings
In the example of importing articles with the target module Article, the main element is "zbozi"
The same rules apply to subordinate modules as to the main module, i.e. if alternate units or selling prices are to be imported, they must be placed in the "*.xml" file in one of the subordinate elements, either as attributes or as values of subordinate elements. The element that contains the values for the subordinate modules is then selected as the main element. See Example 2.
Example 2:
1. Structure of the "*.XML" file

2. Setting the main import element of a subordinate module

Picture: Import settings
4. Select element
After selecting the main element, you need to choose the element in which the values we want to assign to the K2 fields are stored. If the values are stored as attributes of the main element, we select the same element as we selected as the main element; otherwise we will only be able to select one of the child elements. After an element from the "*.xml" file is selected, all values that can be linked for import are loaded. All child elements (that contain some value) and all attributes of the selected element are displayed. It is not possible to select an element that is not inside the main element, because linked fields outside the main element are not imported.
Example 1:
Since all values related to the main module Article are stored in the sample file as attributes of the main element, the element "zbozi" is selected again in the element selection. After the element is selected, the available data are loaded. The same rules and restrictions apply to subordinate modules.

Picture: Import settings
5. Field assignment
Select the Name in the "*.XML" file field section.
- Select the Field in the Data module fields section.
- Press the Link button.
The Input name and Input column columns in the Field in K2 section display the names of the assigned elements or attributes from the imported file.
To detach fields, simply select the field in the Field in K2 section and press the detach button.
Required field - The flag
in the PP column marks required fields in K2 to which columns from the input file must be assigned and a default value must be entered.
Def. value
- By selecting or entering a default value, it is possible to import the specified default value into the K2 database without assigning a value from the "*.xml" file.
- If both a column from the input file and a default value are assigned, the default value will be imported when an empty value occurs in the input file.
- Filling in the default value is mandatory for required fields and for fields that refer to code lists whose update is not enabled, see below.
- A default value can be inserted via the icon in the upper part of the form or using the Enter key on the record.
Updating code lists ![]()
- The
flag in the A column means that for fields linked to code lists, it is possible to enable the update of these code lists during the import. If the update of a code list is enabled, the
flag will be in the A column. - If updating of the code list is not enabled, a default value must be entered, which will be imported if the assigned column of the input file contains an empty value or a value that is not in the code list.
- Updating can be enabled via the icon
in the upper part of the form or with the keyboard shortcut Shift+Enter on the record.

Picture: Settings of the article import
Set flag bit ![]()
For some fields in the Article module, only flags are set in IS K2. The values for these fields need to be set in the Flags field.
These are the following fields:
- 0 Minimum quantity
- 1 Maximum quantity
- 2 Dead stock – days records
- 4 Serial number records
- 5 Batch records
- 6 Currency for Sale active
- 7 Do not show article names
- 8 Percentage for purchase costs
- 9 Automatic generating of serial numbers
- 10 Electronic weight
- 11 Zero price
- 12 Ratio of 1st alternative unit
- 13 Ratio of 2nd alternative unit
- 14 Ratio of 3rd alternative unit
- 15 Accounting recalculation ban
- 16 Negative stock level allowed
- 18 Stock prices by batches
- 19 Currency for purchase active
- 20 Location records
- 21 Contract code records
- 22 Integer unit of measure
- 23 Do not generate SAD
- 24 Automatic generating of batches
- 25 Overhead percentage
- 27 Selling prices acc. to batches

Picture: Form for setting flags
You need to mark the field of the "*.XML" file, mark the bit in which the value is to be stored, and choose a default value for the case that the input file does not contain any value.
Saving Settings
The form settings can be saved or deleted in the menu.
Import of subordinate modules
Within the import of articles, it is possible to import Alternate units and Selling prices. The same rules apply to importing subordinate modules as to importing the main module. It is only necessary to check the Import subordinate module option.
Coverage of article demanded
Process number: |
Script Id. No.: FSKL008 |
File: Sub_F_Coverage.pas |
Script description: The standard function Coverage (Shit+F5 in Article) in the format of a preview pane form. |
||
Address in the tree: |
||
Script parameters:
No parameters.
|
Wizard (preview pane)
Process number: |
Script Id. No.: FSKL007 |
File: Sub_F_InStock.pas |
Script description: The standard Wizard function (Ctrl+F6 in Article) in the format of a preview pane form. It displays the article availability for the auxiliary stock records (batches, contract codes, locations). Which details of the auxiliary stock records will be displayed can be set by the user in the form header. In addition, the display of batch characteristics (batch parameters) can be selected. The characteristics the user wants to display are selected with the button |
||
Address in the tree: |
||
Script parameters:
No parameters.
|

Picture: Preview pane form Wizard
Batch (preview pane)
Process number: |
Script ID number: |
File: Sub_F_Batch.pas |
Script description: The standard form Batch (Ctrl+F4 in Article) in the format of a preview pane form. It displays the article batches. Using the Non-zero option, only batches with availability can be displayed. The form settings are saved per user; the activation of the option is shared by both the pane form and the standard batch form. |
||
Address in the tree: |
||
Script parameters:
No parameters.
|
Import packagings for article
Process number: |
Script ID number: |
File: ImportEkoKomArticlePack.PAS |
Script description: The script makes it possible to import packaging for selected article cards. The import is performed from Excel. The individual rows contain information on which article card the packaging relates to (an existing article abbreviation is entered) and which packaging is assigned to the article card. The packaging abbreviation is entered. The packaging must already be defined in the EKOKOM - Packaging book. Furthermore, the unit of measure of the article in which the article is recorded and for which the imported packaging is used must be entered. The packaging weight can be entered. If the Excel file does not contain this information, the weight set on the imported packaging is filled in. The letter of the column containing the article abbreviation, packaging, UM, or weight must be entered in the form displayed after the script is run. This pairs the information, and after the OK button is pressed, the script imports the relevant information.
The script settings can be saved for later use.
After the import is finished, an error message may be displayed with the reasons why some records could not be imported.
If the imported Excel file does not have a header in the first row, the FirstRowIsData parameter must be set to Yes. |
||
Address in the tree: |
||
Script parameters:
FirstRowIsData - No Yes - The first row of the file does not contain a header with column names |
UpdateExistingPackage - No Yes - If the packaging specified in Excel is found on the article card, the Weight field is updated. |

Picture: Initial form

Picture: sample Excel file (with header - see row 1)
Transfer of customs tariffs to legislation
Process number: |
Script ID number: FZAK050 |
File: CustomsTariffFillLegislatives.pas |
Script description: The script makes it easier to fill in the Customs tariff field on article cards for other legislations as well. The customs tariff field is divided by legislation, because each country may have its own legislation regarding the classification of goods into customs tariffs, but in practice it is common for the customs tariffs to be the same, with a few exceptions. So if the article cards have the Customs tariff field filled in and further legislations are added to the article card, this script, once run, makes it possible to transfer the existing customs tariff value from the legislation set for the current multicompany to the other legislations for the article cards as well. The same customs tariff value is thus filled in for all legislations defined on the article cards (if the customs tariff for another legislation is already filled in, the record is skipped). At the same time, the given record is also created in the customs tariff code list for the given legislation if the record is not found. The script is run over a filter of article cards that the user creates and that will not contain the article cards where the customs tariff value differs. |
||
Address in the tree: |
||
Warehouses
Assign stock to requirements
Process number: VYR004 |
Script Id. No.: FPLV015 |
File: ZBO_DISP.PAS |
Script description: The script enables assigning availability to specific requirements of transfer notes, sales and production. The changes are written into the corresponding document items. |
||
Address in the tree: [Sale/Sales order processing] [Basic data] [Article] [Function] [Purchase/Supply] [Basic data] [Article] [Function] [Purchase/Supply] [Receipt cards] |
||
Script parameters:
CreateContainer - False True - Creates, in the given document (for example Sales order, Job card), a container of those documents for which release notes were created. |
PlanType - 0 Default plan type |
VFiltr - False True - forced run of the script after the filter of the Article book is turned on. No - the current state of the Article book is processed. |
The script is used to distribute, or rather allocate, availability to requirements of transfer notes, sales and production. It can be run over the Article book or over Receipt cards (it takes the items of the current receipt card). The upper window displays the loaded articles (except for non-article items and articles with zero availability). The lower window displays the requirement documents (transfer notes, reservation lists, job cards). If the Display assigned articles option is activated, the lower window also displays documents containing articles with the release flag (i.e. the article is in "Assigned"). The V column then displays a flag indicating whether the article on the given document is assigned for release (v) or not ("").
Availability and the release flag are assigned either with the Enter key or with the V button. Then, in the Wizard form (breakdown of availability according to the auxiliary stock records), select the required combination of contract code/batch/location. The Enter key or the V button on an item with the release flag cancels the assignment and releases the quantity back to availability. The quantity on the document can also be split (and assigned with different batches and contract codes). The quantity is split by editing the Quantity field in the lower window. When editing is finished, another record with the remaining quantity is created.
If the Filter option is activated, the records in the lower window are filtered by the entered contract code and batch. The Coverage button displays the Coverage of article demanded module and the Document button displays the book with the given document.

Picture: Form Assign stock to requirements
Stock release
Process number: SKL008 |
Script Id. No.: FEXP010 |
File: ZBO_VYD1.PAS |
Script description: Releases articles from the warehouse according to the values entered in the parameters. Creates and confirms a correction release note. |
||
Address in the tree: |
||
Script parameters:
Vyd_Rada - IN Book of release notes. |
CDo - 0 Customer number. |
C_Skl - 0 Number of the warehouse from which the articles will be released. The number of a summary warehouse can also be entered - the release then takes place from all its physical warehouses. |
Perioda - 0 Period in which the release is performed. The stock levels are determined for this period. With the value 0, the current period is processed. |
FiltrZbo - Yes Releases only articles from the container. |
TransportMode - "-" Method of transport for the correction release note. |
WithdravalType - "-" Shipping method for the correction release note. |
InclNegative - No Yes - negative stock levels in warehouses can also be "released". Negative release note items are created. These receipts can be valued at the sliding price - by activating the "FillSlidingPrice" parameter. |
FillSlidingPrice - No Fill in the sliding price. It is used in combination with the parameter "InclNegative"=Yes for valuing negative releases. Yes - a negative release is valued at the sliding price. No - a negative release is not valued. |
Location - 0 Number of the location to be released. |
Note: If the release is performed for a past period, the confirmation date of the release note must then be changed manually. The script automatically fills in the current date.
Create correction transfer notes
Process number: SKL007 |
Script ID number: FSKL006 |
File: PRE_KOR1.PAS |
Script description: The script creates correction transfer notes between the leaf warehouses of one accounting warehouse; it does not transfer the articles physically, but only in accounting terms, and thereby corrects incorrect prices (accounting value) in the warehouses. Blocking of transfer note movements in the relevant warehouses is ignored. |
||
Address in the tree: |
||
Script parameters:
Ac_Distrib - 0 Posting key number of the transfer note. |
Pre_Rada - IN Book for correction transfer notes. |
Perioda - 0 Number of the period as at which the corrections are made. |
UctSkl - 255 Accounting warehouse number. |
FiltrZbo - Yes Yes - only the cards from the article container are processed. |
MinRozdil - 0,01 Minimum amount for correction. If the transfer amount is lower than the parameter value, no correction transfer note is created. |
As a result of valuation at the moving price, and in a situation where several leaf warehouses belong to one accounting warehouse, a legitimate state of prices (accounting value of articles) in the warehouse occurs, where one item is in one leaf warehouse at a different price than in another leaf warehouse. As a result, situations may occur where an item is in stock at a negative price, or is not physically in stock and yet has a non-zero accounting value.
If the accounting entity tracks not only the physical stock for the individual leaf warehouses but also the accounting value in these warehouses, the Create correction transfer notes script is used to correct the prices.
The purpose of the transfers is to set the accounting value in the individual warehouses so that it corresponds to the product of the current moving price and the quantity in the relevant warehouse. In other words, so that when the article is released down to zero stock (and the release is valued at the moving price), the value of the article in the warehouse is also zero.
The script is run on an article container or on the entire Article code list. Before running it, the script parameters must be set: enter the accounting warehouse, the period for which the correction is made (if we leave the default zero in the parameter, the current period from the Article book is used) and the book for the correction transfer notes. The script creates correction transfer notes for articles whose stock prices are in the inconsistency outlined above within all leaf warehouses of the relevant accounting warehouse. In these transfer notes, the articles are transferred only in price, not physically. Blocking of transfer note movements in the relevant warehouses is therefore ignored.
We then change the confirmation date of the correction transfer note according to the period for which the correction was made. For the correct calculation of the article values in the warehouses, we must finally run the Stock recalculation function.
Correction transfer notes cannot be unconfirmed, they can only be cancelled.
Example:
We have article "A". We make the following receipts:
- into the MAT warehouse, 2 pcs, at a price of CZK 4 per piece
- into the EXP warehouse, 2 pcs, at a price of CZK 6 per piece.
In each physical warehouse, the article has a different value:
- in the MAT warehouse, a value of CZK 8
- in the EXP warehouse, a value of CZK 12.
The moving price is for the SNORM accounting warehouse and equals CZK 5 (CZK 20 / 4 pcs).
We release the article completely from the EXP warehouse. The release is valued at the moving price, i.e. CZK 5 per piece, so the release totals CZK 10. In the EXP warehouse, we now have the following stock:
- quantity of article "A" = 0 pcs, with a residual value of CZK 2.
We now need to correct this value. The script creates a correction transfer note that performs a monetary transfer of article "A" from the EXP warehouse to MAT, with a value of CZK 2 and a quantity of 0 pcs. In the MAT warehouse, we now have the article with a value of CZK 10 (2 pcs x CZK 5 current moving price), and the EXP warehouse is correct from an accounting point of view.
Note: The stock card of article "A" correctly shows that the transfer was made with zero quantity (there is no value in the Receipt and Release columns). However, the transfer note item shows a value of 1 pc, because 0 pcs cannot be entered on the item due to the prices. The user must therefore know that the quantity 1 on correction transfer notes (these can be recognised by the bitmap in the header, and they should be created in a separate warehouse book) means zero quantity.

Picture: Transfer notes - Correction transfer note

Picture: Article - stock card - Transfer by a correction transfer note
Create correction transfer notes as at date
Process number: SKL007 |
|
File: PRE_KOR2.PAS |
Script description: This script works similarly to the PRE_KOR1.PAS script. The reason for its creation is the possibility of running it automatically within the task scheduler. Thanks to the period shift (the Perioda_offset) parameter), the script can create correction documents automatically as at the selected period. It also automatically confirms them as at the end of the relevant period.
|
||
Address in the tree: |
||
Script parameters:
Ac_Distrib - 0 Posting key number of the transfer note. |
Pre_Rada - IN Book for correction transfer notes. |
Perioda - 0 Number of the period as at which the corrections are made. |
UctSkl - 255 Accounting warehouse number. |
FiltrZbo - Yes Yes - only the cards from the article container are processed. |
MinRozdil - 0,01 Minimum amount for correction. If the transfer amount is lower than the parameter value, no correction transfer note is created. |
Perioda_offset - 0 The parameter specifies the period as at which the warehouse correction is made. Here we enter the number of periods back from the current period. According to this period, the correct accounting period (year) is then entered on the transfer note and the prefix for the new record is set. |
ChangeDate - No Yes - the transfer note is confirmed as at the end of the period in which the corrections are made. No - the transfer note is confirmed as at the current period. |
Create correction release notes
Process number: SKL007 |
Script ID number: |
File: CorrectionReleaseNote.pas |
Script description: The script creates correction release notes in order to reset the residual accounting value on article cards that are no longer physically in stock in the system. It does not transfer the articles physically, only in accounting. |
||
Address in the tree: |
||
Script parameters:
BookOfSaleAbbr - ' ' Abbreviation of the Book of sale for the correction release note. |
ContractCodeAbbr - ' ' Abbreviation of the contract code for the release note header and for the items, if the contract code from the stock records is not filled in the item (it is filled from the stock records if the warehouse is valued by batches and the batch is linked to a contract code in the auxiliary records). |
CustomerAbbr - ' ' Customer abbreviation for the correction release note. |
DocumentDescription - ' ' Accounting warehouse number. |
If there are article cards in the K2 system, or also batches (in warehouses valued by batches), that have zero quantities in stock but still carry an accounting value (positive or negative), and this discrepancy cannot be resolved using the Stock recalculation function or, in warehouses valued by average price, using the Create correction transfer notes script, then this is an inconsistent state that can be resolved using the Create correction release notes script. The minimum value for correction is one ten-thousandth. To run the script, the user must have the Service operations right.
The script creates a system-confirmed correction release note (indicated by the grey padlock icon
). Such a release note cannot be unconfirmed, it can only be cancelled.

Picture: Create correction release notes - articles without batches

Picture: Create correction release notes - articles with a batch
WMS
Put-away according to receipt card
Process number: |
Script Id. No.: FSKL013 |
File: Transfer_PutAway.pas |
Script description: The script creates transfer notes from receipt cards. It is run for a specific confirmed receipt card, for receipt cards marked with asterisks or for receipt cards in a container. A transfer note is created for each receipt card, in the book specified by the parameter. The warehouse and zone "from" are filled in according to the receipt card, the warehouse and zone "to" first according to the parameters and, if these are not entered, according to the presetting in the corresponding Book of warehouses. The target location can also be preset by a parameter. The receipt card is set as the superior document of the transfer notes and its items are copied. The items of the receipt card can be split into several transfer notes (parameter "SplitEquipment") according to the handling equipment resulting from the stock unit of the item. In this case, the corresponding handling equipment is filled into the transfer note header. Based on the handling equipment, the Queue field is filled in the transfer note. |
||
Address in the tree: |
||
Script parameters:
BookAbbr - ' ' Book of warehouses for transfer notes. Enter the abbreviation. |
ConfirmTransferNotes - No Yes - the transfer note is confirmed. No - the transfer note is not confirmed, the items have the release flag preset. |
Description - ' ' Description of the transfer note. If the parameter is not entered, the description from the receipt card document is filled into the transfer note description; if that is not entered, the receipt card number is used. If this parameter is entered, it always takes precedence and its text is filled into the transfer note description. |
LocationTo - ' ' Abbreviation of the target location. |
Priority - ' ' Priority for the transfer note. |
Queue - ' ' The queue is filled into the transfer note automatically according to the handling equipment (only when the transfer note is split by handling equipment). If the transfer notes are not split by handling equipment or no queue is defined in the handling equipment, then it is taken from the parameter. |
SplitEquipment - No Yes - splits the items of the receipt card into several transfer notes based on the handling equipment from the stock unit of the item. |
Warehouseman - 0 Number of the warehouseman for the transfer note. Select from the Officers book. |
WarehouseTo - ' ' Warehouse to which the transfer will be made. Enter the abbreviation. If the parameter is not entered, the warehouse is taken from the Book of warehouses. |
ZoneTo - ' ' Zone to which the transfer will be made. Enter the abbreviation. If the parameter is not entered, the zone is taken from the Book of warehouses. |
Filling in the "Application identifiers" code list
Process number: |
Script Id. No.: FSKL012 |
File: LogisticLabel_Fill_AI.pas |
Script description: Fills in the Application identifiers code list used for the logistic label. A detailed description and the whole topic are given in the Catalogue of reports document for the Logistic label report. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
Picking according to the release note
Process number: |
Script Id. No.: FSKL014 |
File: Transfer_Picking.pas |
Script description: The script creates transfer notes from release notes. It is always run for a specific unconfirmed release note. The transfer note is created in the book specified by the parameter. The warehouse and zone "to" are filled in according to the release note, the warehouse and zone "from" first according to the parameters and, if these are not entered, according to the presetting in the corresponding book of warehouses. The release note is set as the superior document and its items are copied. The items of the release note can be split into several transfer notes (parameter "SplitEquipment") according to the handling equipment resulting from the stock unit of the item. In this case, the corresponding handling equipment is filled into the transfer note header. Based on the handling equipment, the Queue field is filled in the transfer note. |
||
Address in the tree: |
||
Script parameters:
BookAbbr - ' ' Book of warehouses for transfer notes. Enter the abbreviation. |
ConfirmTransferNotes - No Yes - the transfer note is confirmed. No - the transfer note is not confirmed, the items have the release flag preset. |
Description - ' ' Description of the transfer note. If the parameter is not entered, the release note number is filled into the transfer note description. |
Priority - ' ' Priority for the transfer note. |
Queue - ' ' The queue is filled into the transfer note automatically according to the handling equipment (only when the transfer note is split by handling equipment). If the transfer notes are not split by handling equipment or no queue is defined in the handling equipment, then it is taken from the parameter. |
SplitEquipment - No Yes - splits the items of the release note into several transfer notes based on the handling equipment from the stock unit of the item. |
WarehouseFrom - ' ' Warehouse from which the transfer will be made. Enter the abbreviation. If the parameter is not entered, the warehouse is taken from the book of warehouses. |
Warehouseman - 0 Number of the warehouseman for the transfer note. Select from the Officers book. |
ZoneFrom1 / 2 / 3 - ' ' Zones from which the articles will be released. The zones are searched successively from zone 1 to zone 3. Enter the abbreviation. If the parameter is not entered, the zone is taken from the Book of warehouses. |
Shipment services
Czech Post export file of type N
Process number: CRM013 |
Script Id. No.: FCRM050 |
File: ParcelCPExportN.pas |
Script description: The script is used to create a text file for submitting shipments to Czech Post. |
||
Address in the tree: |
||
Script parameters:
CashOnDeliveryServices - ' ' Parameter for entering services for a cash-on-delivery shipment. It is entered in the same way as it is to be printed on the parcel (e.g. 34+41). These services are written into the data record of cash-on-delivery shipments. |
Email_send - No Sending an email with the export file to the carrier. Yes - after the export file is created and the protocol about its creation is closed, the user is asked whether they want to send the file by email. |
Email_Address - ' ' Email address of the recipient. |
Email_Subject - ' ' Subject of the email. In the default setting, the text "Data file + file name" is filled into the message subject. If you enter your own text in the parameter and want the file name to be displayed in it as well, use the placeholder characters "%s". |
Email_Body - ' ' Text of the message body. |
Email_CopyTo - ' ' Email address for a copy of the message. |
Email_BCopyTo - ' ' Email address for a blind copy of the message. |
Email_EditMail - No Yes - the message is not sent immediately but is displayed so that it can be edited. |
MultiPieceShipmentService - Yes Multi-piece shipment service. Yes - service No. 70 is automatically added to multi-piece shipments in the data record. No - the multi-piece shipment service is not set, each shipment is considered separate. This does not apply to cash-on-delivery shipments - for these, the service is set automatically for multi-piece shipments. Note: The same parameter is also in the label reports and must be set to the same value as in the script. |
OutputPath - ' ' Parameter for entering the path to the storage location of the resulting text file. If no path is specified, the file is created in the user directory. |
RequiredServices - ' ' Parameter for entering the required services. It is entered in the same way as it is to be printed on the parcel (e.g. 54+62). These services are written into the data record for all shipments. Service No. 70 (multi-piece shipment) is filled in automatically by default for multi-piece shipments. Furthermore, adding service 70 is controlled by the "MultiPieceShipmentService" parameter. |
ShowLog - Yes Yes - after the file is created, the user is informed about its creation and whether it was sent successfully. No - after the file is created, no message or protocol is displayed. |
Czech Post supports processing of the data required for submitting commercial shipments in electronic form. Currently, the data for submitted shipments can be passed in three types of data files. These are files of type I, K, N. IS K2 supports export to a data file of type N, which allows submission of all (even the newest) products.
This script is run in the Collection book, always over a specific collection, and creates a file for submitting commercial shipments. Each run of the script is recorded in the collection header in a comment with details of when and by which user the script was run and a description of the state of the data file creation.
The data file exported in this way must be handed over on a data medium no later than together with the submitted shipments.
DPD export file
Process number: CRM013 |
Script ID number: |
File: ParcelDPDExport.pas |
Script description: The script is used to create a text file for submitting shipments to DPD. |
||
Address in the tree: |
||
Script parameters:
DepotNo - '1384 ' Number of the dispatching depot. |
DELISUserID - ' ' Client identification. |
OutputPath - ' ' Path for saving the file. |
PMAbbrForCash - ' ' Abbreviation(s) of payment methods for cash payment. |
PMAbbrForCreditCard - ' ' Abbreviation(s) of payment methods for card payment. |
FTPAddress - ' ' Address of the FTP server for sending files. |
FTPPassword - ' ' Password for logging in to the FTP server. |
FTPPort - ' ' Port for connecting to the FTP server. |
BackupPath - ' ' Path to the directory with the archive of sent files. |
Set parameters for communication with DPD
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelDPDGeoApiParams.pas |
Script description: The script is used to set up communication with the DPD server and properties for DPD shipments. The settings are saved for individual Books of shipment services. Rows of individual settings are added with the Insert key. |
||
Address in the tree: Logistics / Shipment services / Settings and configuration / Parameter settings for communication with DPD |
||
Script parameters:
Login to access the DPD app - ' ' Login name for the DPD application - assigned by the carrier. |
Password to access the DPD app - ' ' Login password - assigned by the carrier. |
Customer Id assigned by carrier - ' ' Identification of our company with the carrier DPD. The number is generated using the Customer No. button. |
Collection depot - ' ' The identification number of the collection depot according to the contract with the carrier must be entered in the field. The offer of collection depots can be displayed using the Collection depot button - then copy the selected value from the "Customer AddressId" column into the field. |
Print K2 label - No Yes - we will not use the automatic display / printing of the DPD label via API when the shipment is confirmed, but our own K2 labels. No - when the shipment is confirmed for the first time, the DPD label is automatically displayed / printed via API. Label printing can be invoked later using the DPD - Labels script (ParcelDPDGeoApiPrintLabels.pas). |
Declared sender - No Yes - The sender specified in the shipment (address and contact under the Address and Contact buttons) is stated in the data record for DPD as the declared sender and is also printed as the sender on the label. The option can be set regardless of whether all shipments created in the corresponding book of shipment services for which this option is enabled will be in the declared sender mode (a sender other than our own company) or in the classic mode (the sender is our own company - the name and address are taken from the branch defined in the book of shipment services and are not changed in the shipment). This is because the sender from the shipment is always filled into the declared sender section of the data record and is then printed as the sender on the label. No - The declared sender section is not filled in the data record. The sender on the label is identified according to our registration with DPD. |
Third-party collection parcel - No Yes - This type of shipment means that our company does not appear as the sender either in the data record or on the label. A "Sender" object is created in the data record and filled with the "third party" data. The "Sender" is primarily filled with the company specified in the Suppl./Cust. field in the Sender section. If it is not entered, the data specified under the Address and Contact buttons in the Sender section are used. For a third-party collection parcel, no label is printed (the label is printed only by the carrier DPD on its side). |
Printing labels
|
DPD Shipment communication
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelDPDGeoApi.pas |
Script description: The script is used for communication with the DPD server. The functionality of the script is set using the "CommandProcessId" parameter. The default functionality is ordering a collection and registering labels. |
||
Address in the tree: |
||
Script parameters:
CommandProcessId - 1 Parameter for selecting the script function. 1 - Ordering a collection and registering labels. 2 - Deleting a collection. Deletes the currently marked collection from the DPD server. 3 - List of shipments. 4 - Code list of collection addresses. Returns a list of possible collection addresses. 5 - DSW number. Returns the customer number based on the login data. 6 - Registering labels. Used in the case of communication via API, printing own labels and not ordering collections. |
DPD - labels
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelDPDLabelApi.am |
Script description: The script is used to obtain DPD labels for a shipment additionally when DPD labels are used via API. It also allows registering labels with DPD in the case of communication via API but printing own K2 labels. |
||
Address in the tree: |
||
Script parameters:
PrintCommandLine - ' ' Corresponds to the Command line to start printing option in the form of the script Parameter settings for communication with DPD (ParcelDPDGeoApiParams.pas). The use is described for the corresponding script or in the documentation in the chapter "DPD implementation (via API)". If the parameter is left empty, it takes the value from the Parameter settings for communication with DPD script. |
PrintCommandLineAttributes - ' ' Corresponds to the Command line parameters for printing option in the form of the script Parameter settings for communication with DPD (ParcelDPDGeoApiParams.pas). The use is described for the corresponding script or in the documentation in the chapter "DPD implementation (via API)". If the parameter is left empty, it takes the value from the Parameter settings for communication with DPD script. |
RegisterDPDLabel - No No - the script is used to obtain DPD labels via the API method. Yes - The script only registers labels with DPD in the case when we use DPD API communication but print our own K2 labels and do not order collections. In this case, the script can also be run over the Collection module. |
Geis export file type EDI
Process number: CRM013 |
Script Id. No.: FCRM050 |
File: ParcelCPExportN.pas |
Script description: The script is used to create a text file for submitting shipments to Geis Cargo. |
||
Address in the tree: |
||
Script parameters:
CardPaymentNo - 0 Number of the payment method that is to be considered a card payment. If the parameter value = 0, the "CDR - card payment" service is evaluated according to the activation of this service in the shipment. If the parameter value <> 0, the use of the "CDR" service is evaluated according to this parameter. If the shipment then uses the same payment method as specified in this parameter, the service is considered activated (the use of this service is written into the export file). |
FTP_copy - No Copying the file to the FTP server. Yes - after the export file is created and the protocol about its creation is closed, the user is asked whether they want to send the file to the FTP server. |
FTP_server - ' ' Address of the FTP server. |
FTP_user - ' ' User for logging in to the FTP server. |
FTP_password - ' ' Password for logging in to the FTP server. |
FTP_folder - ' ' Directory on the FTP server into which the file is to be copied. |
NoteType_Driver - ' ' Type of comment on the shipment that is considered a note for the driver. The text from this comment is filled into the export file. |
OutputPath - ' ' Parameter for entering the path to the storage location of the resulting text file. If no path is entered, the file is saved to the user's directory. |
RewriteFileName - Yes Yes - the file with the data record will be overwritten in the output directory. It is therefore not possible to create several different files on one day. No - the file will not be overwritten. If several files are created in the output directory within a day, the file name will be extended by a sequence number ("_01"). Existing files that are one day old or older are also deleted. The date comparison is performed only for the initial file without sequence numbering. If it is old, all the other numbered files are deleted automatically without checking their creation date. |
Additional information on the parcel weight data for Geis Cargo:
- If labels are numbered by sales items (the transported piece is a sales item), the weight of the transported items is loaded from each sales item, i.e. from the stock unit of the given article card. This is the gross weight.
- If labels are numbered by parcels (the transported piece is a parcel), the weight of the transported items is loaded from the Weight field (program field "Weight") of the parcel. This is the gross weight; the user can change it in the parcel.
Set parameters for communication with Geis
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelGeisParams.pas |
Script description: The script is used to set properties for Geis shipments. The settings are saved for individual Books of shipment services. Rows of individual settings are added with the Insert key. |
||
Address in the tree: Logistics / Shipment services / Settings and configuration / Parameter settings for Geis communication |
||
Script parameters:
Cargo by parcels (1 parcel = 1 label) - No No: labels are printed according to the number of items on the delivery note (each item is a transported piece). Yes: labels are printed by parcels (use this if several sales items form one transport item (they must be on one delivery note)). |
Cargo by parcels - unit of measure abbreviation - ' ' Abbreviation of the transport unit of measure. It is used in the handover protocol and the data record if no unit of measure is specified in the shipment or in the specific parcel. |
Take depot address from partner address - No No: The address of the collection depot and the depot identification on the Geis Cargo label are based on the sender address in the shipment (the depot belonging to the area of the sender address). Yes: The depot address is the same as the address of the partner (whose card forms the carrier card). |
Generate label codes for consignments and packages
Process number: CRM013 |
Script ID number: |
File: ParcelLabel.pas |
Script description: The script generates codes for parcels. By default, it is called at the first confirmation of a shipment. However, it can also be run over a shipment separately; it generates codes for parcels that do not have a code yet. (However, the script does not change the status of parcels or confirm delivery notes - this is done only by the first confirmation of the shipment). |
||
Address in the tree: |
||
Script parameters:
No parameters.
Check packages in the shipment collection
Process number: CRM013 |
Script Id. No.: FCRM039 |
File: ParcelCheckShipment.pas |
Script description: The script is used to check parcels in a collection. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
The user runs this script over a specific collection that has already been confirmed once. After start, the user form Collection check is displayed, into which all parcels of the corresponding collection are loaded automatically. The status of these parcels is set by the program to Ready to send. After the parcels are loaded, the operator can physically check the collection and the individual parcels and record the necessary results in the system using this script.

Picture: Form Collection check
In the upper left part of the Collection check form, there is a field for searching parcels in the collection. This search makes it easier for the user to find their way among the loaded parcels of the corresponding collection. In this field, you can enter the code by which the user wants to find the parcel in the collection. After pressing the Enter key, the script searches in the shipment codes and parcel codes and, if it finds the entered code, it automatically marks the parcel in the form with the icon
. A parcel marked in this way has been checked. A parcel checked as OK can be marked manually using the Mark button, or with the key combination Shift+Enter or Ctrl+Space.
If discrepancies are found, the parcel can be removed from the collection. The Remove package button is used for this. Pressing this button marks the corresponding parcel with the icon
and after all changes are made, it will be removed from the collection. The Cancel the package button allows marking the parcel in the collection with the icon
and cancelling it. The Cancel all button allows the user to cancel all changes made in the form.
When all items in the form, i.e. the individual packages, have been checked, removed or cancelled, the changes can be saved. The user does this by pressing the OK button. The status Ready to send, which was set on the packages in this collection before this check, changes to Controlled. Cancelled packages are removed from the collection and their status is set to Cancel, and if a package was taken out of the collection, its status is set back to Packed. Some changes made and saved by this script can be reverted. All packages of the collection are always loaded into the script form, including those that already have the status Controlled. In the form, the marking of these items can then be cancelled, and after saving, their statuses will be set to Ready to send again.
When all packages of the collection have been processed, i.e. checked, taken out of the collection or cancelled, the user is asked after saving whether to send the collection. If the user selects Yes, the collection is confirmed for the second time and all packages of this collection are set to the status Sent.
Send e-mail from collection
Process number: CRM013 |
Script Id. No.: FCRM045 |
File: ShipmentSendMail.pas |
Script description: This script enables sending emails from a collection and creating activities for these emails. |
||
Address in the tree: |
||
Script parameters:
EAddrType - ' ' Parameter for selecting the type of electronic address of the partner to which the emails will be sent. If no value is entered in this parameter, the email from the consignment is used. |
DocToActivity - 0 Parameter for entering the number of the data module of the document that is attached to the created activity. If the parameter is not set, the consignment is attached to the activity. In this way, a Consignment, a Sales order and a Delivery note can be attached to the activity. |
Using this script, a confirmation email message can be sent to all emails specified in the consignments of the corresponding collection. An activity can also be created for each email. This script can always be run over a specific collection and after start, a user form is displayed in which all consignments of the given collection are loaded. All consignments are marked with an asterisk by default. The corresponding emails will then be created and sent only for the marked consignments.

Picture: Form Sending e-mail from collection
For individual consignments, the Address column shows the email from the consignment, or the email of the partner (see the "EAddrType" parameter). The Address column is editable and the email addresses can still be changed here. Several addresses separated by a semicolon can also be entered. The email messages will be sent to the addresses specified in this column. The Subject column is also editable.
Activities are created for individual emails (or rather for individual marked consignments) only if the Create activity field is activated. Activating this option displays a new tab Activity, where values for creating the activity can be entered. The values specified in these fields are then filled into the created activities.
To send the emails, or create the activities, use the OK button.

Picture: Form Sending e-mail from collection - page 1
The Email tab is used for editing or entering the email text and for attaching an attachment. To edit or enter the text, a new form must be invoked with the F5 key. The email to be filled in automatically can be preset in the Consignment services book. On the record of a specific service, in the Email content field, you can select the text that is automatically filled into the email sent using this script. Presetting the email text in the consignment service also supports entering K2 program fields, which are then filled with a value according to the specific consignment (package) - for a detailed description, see the User manual in the section Logistics / Commercial Consignments / Consignment services.
In the lower part, attachments to the emails can be inserted. Note: The table always displays attachments to all emails.
PPL sending WS packages
Process number: CRM013 |
Script Id. No.: FCRM055 |
File: ParcelPPLWsSendPackages.pas |
Script description: The script is used for communication with the web service of the carrier PPL. It supports the operations Import of consignments (ImportPackagesExt), Return of the list of municipalities (GetCities), List of consignments ready for delivery (GetPackageToDelivery), Return of postcodes (GetZIPCodes), Consignment information (GetPackageInfo). After sending, an xml file with the export data is created in the user directory in the "PPL" subfolder. The file is overwritten each time the script is run. A time-out of 5 minutes is set for sending and receiving messages. |
||
Address in the tree: |
||
Script parameters:
No parameters.
PPL consignment communication
Process number: CRM013 |
Script Id. number: FCRM061 |
File: ParcelPPLMyApi.pas |
Script description: The script is used for communication with the PPL server. The functionality of the script is set using the "CommandProcessId" parameter. The default functionality is sending consignment data to the PPL server. |
||
Address in the tree: |
||
Script parameters:
CommandProcessId - 1 Parameter for selecting the script function. 1 - Sending consignments. After the data are sent to the PPL server, a comment of the type "PPLSendPackages" is inserted into the header of the Collection with information about the date and time the data were sent, the user and the sending status; 2 - Consignment status. Returns to the user the consignments found on the PPL server either according to the selected date range or according to the entered number of a specific consignment / package (Code 2), or according to a list of numbers separated by semicolons. For each consignment, the last status of the consignment is displayed; by expanding the record, the history of status changes can be displayed. After start, the script automatically prefills the consignment code into the form: for package transport - if it is run on page 0 of collections or consignments, it loads the list of codes of all packages, if on page 2, it loads the package code of the currently marked item; for pallet transport - the consignment code(s) are loaded. If the Automatically fill in the service price option is activated in the Parameter settings for communication with PPL (MyApi) script, the price that PPL set for transporting the consignment is saved to the Service price field in the consignment header. 3 - List of ParcelShops. Returns to the user a list of parcelshops and detailed data about them. Depending on the entry in the input form, you can obtain data about a specific parcelshop, or have data about all parcelshops in the corresponding country returned; 4 - Returns information about the options for Saturday, morning and evening delivery for the requested postcode. 5 - Loading of collection and delivery routes for PPL Sprint (DHL Freight). 100 - Creation of a file with the data to be sent without sending it to the PPL server. |
RewriteFilename - Yes Yes - the file with the sent data (in the user directory) is overwritten. Therefore, only the last created file remains available to the user. No - when the data are sent, the file name is extended by the date and time of its creation. |
ShipmentNoteType - ' ' Type of note from which the text for the "Note" element in the transferred data file will be taken. The note is searched for on the consignment. |
PPLSpring_ManipulationType - 1 Handling type: 1 - trolley; 2 - hydraulic tail lift |
PPLSpring_PickUpCargoType - 'SV' Collection type: PT - drop-off at a PPL Sprint depot; SV - Standard collection |
PPL - update service prices
Process number: CRM013 |
Script ID number: FCRM |
File: PPLUpdateServicePrice.pas |
Script description: The script is used to determine the service price for PPL transport and write it into the consignment (the Service price field).
The script is run over the Consignments book. In the book state, it processes the current consignment, in the filter state the filtered consignments, and if some consignments are marked with asterisks, then always the records marked with asterisks. The script writes the price into the confirmed consignment. Consignments that are not PPL transport are ignored. |
||
Address in the tree: |
||
Script parameters:
PPL - ordering a consignment collection
Process number: CRM013 |
Script ID number: FCRM |
File: PPLCreatePickupOrder.pas |
Script description: The script is used to order a collection of consignments for PPL. It is run over the required collection; the Date from of the collection is filled in as the date for picking up the consignments. |
||
Address in the tree: |
||
Script parameters:
Set parameters for communication with PPL (MyApi)
Process number: CRM013 |
Script Id. number: FCRM060 |
File: ParcelPPLMyApiParams.pas |
Script description: The script is used to save the configuration for communication with the PPL server and for further setting of properties for PPL services. The settings are saved for individual Books of shipment services. This is because the client can have several different accounts with different logins with the carrier PPL. Rows of individual settings are added with the Insert key. |
||
Address in the tree: Logistics / Shipment services / Settings and configuration / Parameter settings for communication with PPL (MyApi) |
||
Script parameters:
Book of shipment services - ' ' Book of shipment services for which the settings will apply. |
User name to access the PPL application - ' ' Login name for the PPL application; assigned by the carrier. |
Password to access the PPL application - ' ' The password is assigned by the carrier. |
Customer Id assigned by carrier - ' ' Enter the number that we were assigned as a client by the carrier. (The same number is also entered in the Consignment configuration record.) |
Use the PPL Parcel Connect product for the countries listed below - No Yes - If the recipient's country allows, on the basis of a contract, the PPL Parcel Connect product to be used instead of the default PPL Parcel Business Europe product, activate this option and enter the codes of these countries in the field below. Information about the PPL Parcel Connect product is transferred to the data record and to the label. |
Use the PPL Parcel SmartEurope product for the countries listed below - No Yes - Then enter in the field below the list of abbreviations of the countries for which the SmartEurope product is to be used. The product is available only when the SmartLabel label is used (the Use SmartLabel printing option) and is intended only for consignments delivered to pick-up points (ParcelShops or ParcelBoxes, etc.). It cannot be used for consignments to Slovakia. Information about the PPL Parcel SmartEurope product is transferred to the data record and to the label. |
Use SmartLabel printing - No Yes - The SmartLabel label must be used (ParcelPPLLabelMyApi2.am or ParcelPPLLabelMyApi2A4.am). Information about the use of the SmartLabel label is then also saved in the data record. (Note: The SmartLabel label can be used for all PPL products. It is mandatory for consignments to Slovakia.) |
Show weight on the SmartLabel label - No Yes - The weight of the consignment will be shown on the SmartLabel label and in the data record. This can be used only if the client has this option agreed with the carrier PPL. |
Superior registration for tracking consignment status - User name to access the PPL application - ' ' - Password to access the PPL application - ' ' - Customer Id assigned by carrier - ' ' Login data for tracking the consignment status using the subject ID (so-called joint registration). These login data are used only for tracking the consignment status across several accounts. |
PPL Sprint - weight from packages - No Yes - The weight for individual items is not loaded from the sales items; instead, the weight from the package header is loaded and divided by the number of items. Each item will then have a proportional part of the total weight in the List of packages on PPL Sprint collection report and in the data record. No - The weight of the items is loaded from the sales items (from the stock unit of the article card). |
PPL Sprint - numbering of items by packages - No No - labels are printed according to the number of items on the delivery note (each item is a transported piece). Yes - labels are printed by packages (use this if several sales items form one transport item (they must be on one delivery note)). |
PPL Sprint by packages - unit of measure abbreviation - ' ' Abbreviation of the transport unit of measure. It is used in the handover protocol and the data record if no unit of measure is specified in the consignment or in the specific package. If the entered unit of measure abbreviation is not found in the list of supported unit of measure abbreviations, the general unit of measure "Volně" (Loose, number 43) is used. |
Use PPL Sprint DHL - No Yes - Activates support for sending PPL Sprint data to DHL Freight. No - The data are sent to PPL in the old structures. |
Consignment selection
Process number: CRM013 |
Script Id. No.: FCRM053 |
File: ShipmentSelection.pas |
Script description: Script for creating a Selection of consignments. |
||
Address in the tree: |
||
Script parameters:
CodeField - 3 Parameter for specifying the consignment code by which the consignments will be searched for and included in the selection. |
CommitString Parameter for the character string which, when entered in the Code field, creates the selection of consignments. |
This script is used to create a Selection of dispatched consignments. The function can be run in the Consignments book and after start, a form is displayed in which you enter in the Code field the code of the consignment that you want to include in the selection and that has been dispatched. The codes of these consignments can be entered manually or using a code reader. The CodeField parameter specifies by which code (Consignment code 1 - Consignment code 4) the consignments will be searched for.

Picture: Form Consignment selection
Confirm the entered code with the Enter key, thereby adding the consignment to the list for the selection. Included consignments can be deleted from the form using the Delete key. After entering all required consignment codes, you can approve the list with the OK button and thus create a selection containing all consignments with the entered codes. The CommitString parameter can specify a character string which, when entered in the Code field, approves and creates the selection of consignments. If any of the entered codes is not found, the script displays an error message.
Create consignments
Process number: CRM013 |
Script Id. No.: FCRM040 |
File: ParcelCreate.pas |
Script description: The script enables creating consignments with packages and the corresponding delivery notes from items of sales documents. |
||
Address in the tree: |
||
Script parameters:
AddressType - 2 Type of address from which the data are primarily loaded. 1 - invoice, 2 - delivery, 3 - other, 4 - correspondence. |
EAddressTypeAbbrEmail - ' ' Type of electronic address for email. For a detailed description, see the Rules for loading contacts section further in the text. |
EAddressTypeAbbrPhone - ' ' Type of electronic address for phone. For a detailed description, see the Rules for loading contacts section further in the text. |
IgnoreNonstockItems - Yes Yes - non-article items are ignored. |
IgnoreNegativeItems - Yes Yes - negative items are ignored. |
IgnoreSets - No Yes - article cards of the "set" type are ignored. |
ItemsWithReleaseNoteOnly - No Yes - only items with a release note are loaded. No - all items are loaded (with and without a release note). |
MoreCustomers - Yes Yes - items of all marked documents are loaded even if they belong to different customers. No - from all marked documents, only those items are loaded that correspond to the customer from the first marked document. |
NoteType - ' ' Type of note that is loaded from the sales order for the consignment. The note text is displayed in the Create consignments form, where it can be changed or, if the note did not exist in the sales order, a new text can be entered. The note is then saved to the created consignment. |
Print - Yes Yes - the document is automatically offered for printing. If the created consignment is confirmed from the Create consignments form - with the Confirm consignment button, the Consignments book is opened directly in the "Selection" state with the given consignment, and the user can print the required report over this record. No - the current document can be prepared for printing at any time using the Print button. |
ShipBook - ' ' Book of shipment services. |
ShipmentAutoConfirm - No Automatic confirmation of consignments. Yes - Enabling the parameter is meaningful only if the "ShipmentAutoCreate" parameter is also set to Yes. In this case, the consignment is automatically confirmed after it is created. When shipment services are handled via Balíkobot, DPD Api, ČP Api, labels may be displayed or printed automatically, depending on the settings. No - Consignments are not confirmed when they are created automatically. |
ShipmentAutoCreate - No Automatic creation of consignments. Yes - A consignment and a package will be created automatically for all items of the sales order without displaying the input form of the script. In this case, the "ShipBook" parameter (book of shipment services) must be entered. No - The input form will be displayed and the user must specify how many packages and consignments will be created and from which items. |
ShipmentAutoDisplay - No Automatic display of the consignment. Yes - Enabling the parameter is meaningful only if the "ShipmentAutoCreate" parameter is also set to Yes. In this case, the consignment is automatically displayed after it is created. No - Consignments are not displayed when they are created automatically. |
ShowFrmHandlingUnit - No Yes - when creating consignments numbered via the Balíkobot company and when using pallet transport (selected carriers or their specific services), a form is displayed for each package being created, allowing you to enter the selected handling unit, the quantity of this unit, and the dimensions and weight for the given package. The records of handling units that we want to use for individual carriers must first be entered in the corresponding code list (e.g. via the package record, the Handling unit field). These data are then saved to the package. For each package, as many labels are printed as there are transport units entered (e.g. pallets). |
ShowFrmSwap - No Yes - when creating consignments numbered via the Balíkobot company and for carriers that support swap consignments, a form is displayed for each package being created, allowing you to set the swap consignment flag for the package (the "SwapServiceCalc" field on the package - it is not displayed in the standard form). |
Using the Create consignments script, consignments with packages and the corresponding delivery notes can be created from sales documents. The script can be run over sales orders or over documents subordinate to the sales order, except for the delivery note. The script does not work over free documents (without a superior sales order). After the script is started (with the default parameter settings), a user form is displayed into which the items of the sales documents are loaded. Only those items for which delivery notes have not yet been created are displayed. In the "book" table state, the function processes the current document, if documents are marked with asterisks, it processes these marked documents, and in the "filter" or "container" state, the selected documents.

Picture: Form Create consignments
The upper part of the Create consignments form lists all suitable items from the documents over which the function was run. These items can be inserted into delivery notes and packages and consignments can be created for them. The "Množství O" column shows the total quantity of the article (the quantity stated on the document). The value in the "Množství R" column indicates the number of pieces of the article that can be added to the package. The quantity to be included in the package can be adjusted using the Change quantity button.
The article items for which we want to create a package must be included in the lower part of the form. The total content of the package being created is displayed here. The user has the following options:
- Use the Change quantity button to adjust the quantity of the item for which the package is to be created. By changing the quantity, the item is automatically moved to the package.
- Mark the item / items with an asterisk (using the buttons in the Marking section) and then include them in the package with the Add to package button. Article items of different customers cannot be included in one package.
- Mark all items and automatically move them to the package at once using the Select all and add to package button.
After the articles are included in the package, some fields in the lower right part of the form must still be filled in. The Method of transport and Payment method fields are always filled in automatically from the document of the first item included in the package, in this order: if an invoice exists for the item, from the invoice, otherwise from the sales order.
- The Carrier field is filled in according to the Consignment configuration.
- The Type of address field is used to select the address to which the consignment is intended. It can be preset with the "AddressType" script parameter.
- The Book of shipment services field specifies the document book in which the consignment will be created. It can be preset with the "ShipBook" script parameter.
When the user has included article items from the documents in the package and filled in the necessary fields, the consignment can be created using the New consignment button. Pressing this button always creates a consignment with a package containing the articles selected in the lower part of the form. A delivery note is also always created for the specific package.
The package being created can also be attached to an already existing consignment. This consignment must be selected in the Current consignment field. In this case, the Add package to consignment button becomes available. After pressing the button, the package is added to the selected existing consignment and a delivery note is created for it.
After the documents are created, the fields in the right part of the form remain filled in so that you can continue creating another consignment.
After the consignment is created, the consignment number is filled into the Current consignment field of the form. The consignment can be confirmed immediately with the Confirm consignment button. If the "Print" parameter = Yes, the current consignment is displayed and the user can print the required report (label). The current document can be prepared for printing at any time using the Print button. When consignment communication is handled via Balíkobot, DPD Api, ČP Api, the label is displayed or printed automatically when the consignment is confirmed (according to the settings for the given solution).
Rules for loading addresses into the consignment
The address is first searched for in the sales order, in the addresses according to the type of address in the settings (the Type of address field, the "AddressType" parameter).
- If the "delivery" type is selected and this address is not entered in the document, the addresses follow in this order: Invoice -- Correspondence.
- If the "invoice" type is selected and this address is not entered in the document, the addresses follow in this order: Delivery -- Correspondence.
- If the "correspondence" type is selected and this address is not entered in the document, the addresses follow in this order: Delivery -- Invoice.
If no address is found on the sales order, the basic address of the customer of the sales order is loaded.
Note: If the address type "Other" is selected, the address is loaded directly from the customer card.
Rules for loading contacts
Email, phone of the addressee
Contact information (phone, email) is loaded in this order:
- first from the sales document, namely from the simple address according to the type of address setting (the Type of address field, the "AddressType" parameter);
- if the corresponding data (phone or email) is not entered in the simple address of the document, it is loaded from the contact person, from the type of electronic address specified in the parameters. If a contact person is filled in the sales order, it is always automatically filled into the consignment as well.
- if the corresponding data (phone or email) is not entered in the contact person, it is loaded from the customer (according to the type of electronic address setting) entered in the addresses of the sales order (according to the type of address setting);
- finally, the contact is loaded from the customer of the document (according to the type of electronic address setting).
Email, phone of the sender
Contact information (phone, email) is loaded from the Branch (entered in the Book of shipment services), from the type of electronic address specified in the parameters.
Change package status
Process number: CRM013 |
Script Id. No.: FCRM049 |
File: ChangeInPackage.pas |
Script description: The script enables changing the statuses of packages in the Packages book. |
||
Address in the tree: |
||
Script parameters:
ShowForm - Yes Yes - after the script is started, a form for selecting the required package status is displayed. No - the Package statuses form is not displayed (the change is made according to the status set in the "StatusNumber" parameter). |
StatusControl - Yes Yes - when changing the package status, the script checks the logical sequence of statuses, i.e. it does not allow the package status to be changed to any status, but only to the one that corresponds to the logical sequence. |
StatusNumber - 8 The required package status that we want to set in the selected packages. |
Using this script, the statuses of packages can be changed. The script allows entering only those statuses that the system does not set automatically when working in the Consignments module. The script is run in the Packages book over records marked with an asterisk. After the script is started, a form is displayed with a list of available package statuses.

Picture: Form Statuses of package
The status can be changed only for packages whose initial status is "Sent" (which means that the package is included in a collection confirmed twice). Depending on the setting of the "StatusControl" script parameter, the package status can be changed either to any status regardless of the sequence of statuses, or, on the contrary, only to the status corresponding to the course of statuses.
A detailed description of the statuses and a picture of the sequence are given in the User documentation, in the Logistics section, in the chapter Consignments / Items (page 2).
Parameter settings for communication with In Time
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelExportInTimeParams.pas |
Script description: The script is used to save the configuration for communication with the In Time server. The parameters are filled in in the input form. The script can also be used to preset the filling of services for consignments. |
||
Address in the tree: Logistics / Shipment services / Settings and configuration / Parameter settings for communication with IN TIME |
||
Script parameters:
URL address of the AZ InTime application - ' ' Internet address of the application server that communicates with the core of the "Zásilky" application using the XML protocol. Provided by the carrier. |
User name to access AZ InTime - ' ' Login name for the AZ application; assigned by the carrier. |
Password to access AZ InTime - ' ' The password is assigned by the carrier; the client can change it later. |
Import is performed only if it is successful for all consignments - No Yes - the import to AZ InTime is performed only if it is successful for all consignments. No - the import is performed for each individual consignment. |
Enter consignment weight - No Yes - when the consignment is confirmed, a form for entering / correcting the consignment weight is displayed. The weight is saved to the package. If the consignment contains several packages, the entered value is divided by the number of packages and this average weight is saved to each package. Based on the weight, the InTime product is then determined for the consignment (it is shown on the labels and passed in the data record). |
Enter information for additional services - No Yes - when the consignment is confirmed and the consignment has additional services set that allow entering an additional note (text), a form for entering additional information for these services is displayed. The information is added to the xml file sent to the carrier's server. |
Using the Services button, the filling of services for consignments can be preset. Services are preset for individual Books of shipment services. On saving, the file "InTimeAdditionalServices.xml" is created in the K2 directory (K2\SupportFiles\Parcel\Intime).
Send consignments to IN TIME
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelExportInTimeCompleteArticle.pas |
Script description: The script is run over a collection and moves the consignments of the collection into batches in the "AZ InTime" application. In this way, the consignments are designated for processing by the carrier. (The script changes the consignment status in the application from "Odesláno" (Sent) = "Ne" (No) to "Odesláno" (Sent) = "Čeká" (Waiting); the consignments are moved from the "Moje zásilky" (My consignments) section to the "Moje dávky zásilek" (My consignment batches) section). |
||
Address in the tree: |
||
Script parameters:
No parameters.
Searching packages
Process number: CRM013 |
Script Id. No.: FCRM048 |
File: SearchPackage.pas |
Script description: Script for searching packages, or rather delivery notes. |
||
Address in the tree: |
||
Script parameters:
SearchIn - 0 Place where codes are searched. 0 - in packages; 1 - in consignments; 2 - in both packages and consignments. |
SearchTypeLike - No Yes - search for a part of the code. No - search for the whole code. |
This script is intended for searching packages, or delivery notes for packages, by their codes. The script can be run either in the Packages book or in the Delivery notes book. After start, a form is displayed for entering the code (the whole code or a part of it - see the "SearchTypeLike" parameter) by which we want to find the package. Depending on the setting of the "SearchIn" parameter, the code is searched for either in packages or in consignments, in the Code 2 / 3 / 4 fields. The result is a filter of the found records (packages or delivery notes).
Balikobot - Check consignment before confirmation
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotCheckShipment.pas |
Script description: The script checks the correctness and completeness of the data on the consignment for the given carrier. |
||
Address in the tree: |
||
Script parameters:
Balíkobot - Package status
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotTrackShipment.pas |
Script description: The script returns the status of the packages of the current consignment with the carrier. |
||
Address in the tree: |
||
Script parameters:
Balikobot - Labels
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotShipmentLabels.pas |
Script description: The script returns the labels for the given consignment. |
||
Address in the tree: |
||
Script parameters:
ShowInBrowser - No Yes: Always displays the label in the web browser (regardless of the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters).
No: If the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are not entered, the print settings are taken from the settings in the Balíkobot – carrier settings script. If the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are entered, printing / display in the PDF viewer behaves according to these parameters.
|
PrintCommandLine - ' ' Reference to the executable file of the PDF program in which the labels are to be displayed. (Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe) |
PrintCommandLineAtributes - ' ' Parameter for sending the label print from the PDF program to the printer. (Example entry for PDF Viewer: /printto :\\ANUP.k2.int\M452nw_5p: "%s"; example for Acrobat Reader: /t "%s" :\\ANUP.k2.int\M452nw_5p:)
Wildcards can also be used in the printer name, e.g.: /printto :\\ANUP.k2.int\M452*: "%s".
If we only want to display the label in the selected PDF viewer, fill in the "PrintCommandLine" parameter and enter in this parameter: "%s". |
PrintAS - No The parameter is meaningful only for web K2 and is used only if the "ShowInBrowser" parameter is not activated. Yes: Printing on the application server to the printer according to the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters or, if they are not entered, according to the settings of the Command line to start printing and Command line parameters for printing parameters in the Balíkobot – carrier settings script. The AS service must run under an account that has the right to print, to run programs and, above all, to the location where the PDF file is downloaded. No: The PDF file is sent to the client, which handles the printing. For K2 run in a web browser, a print dialog for selecting the printer is displayed; for K2 running in a web application installed on the computer (WebNative), printing is performed according to the print settings in the given application. |
Balikobot - Order collection
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotOrderBulkPickUp.pas |
Script description: The script sends a request to order a collection. It is run over a collection. |
||
Address in the tree: |
||
Script parameters:
ShowDocByBrowser - No Yes - Always displays the report (list) in the web browser (regardless of the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters).
No - if the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are not entered, the print settings are taken from the settings in the Balíkobot – carrier settings script. If the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are entered, printing / display in the PDF viewer behaves according to these parameters. |
PrintDocCommandLine - ' ' Reference to the executable file of the PDF program in which the report (list) is to be displayed. (Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe) |
PrintDocCommandLineAtributes - ' ' Parameter for sending the print from the PDF program to the printer. (Example entry for PDF Viewer: /printto :\\ANUP.k2.int\M452nw_5p: "%s"; example for Acrobat Reader: /t "%s" :\\ANUP.k2.int\M452nw_5p:)
Wildcards can also be used in the printer name, e.g.: /printto :\\ANUP.k2.int\M452*: "%s".
If we only want to display the report in the selected PDF viewer, fill in the "PrintCommandLine" parameter and enter in this parameter: "%s". |
PrintDocAS - No The parameter is meaningful only for web K2 and is used only if the "ShowInBrowser" parameter is not activated.
Yes - printing on the application server to the printer according to the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters or, if they are not entered, according to the settings of the Command line to start printing and Command line parameters for printing parameters in the Balíkobot – carrier settings script. The AS service must run under an account that has the right to print, to run programs and, above all, to the location where the PDF file is downloaded.
No - the PDF file is sent to the client, which handles the printing. For K2 run in a web browser, a print dialog for selecting the printer is displayed; for K2 running in a web application installed on the computer (WebNative), printing is performed according to the print settings in the given application. |
Balikobot - Shipping methods - services
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotServices.pas |
Script description: The script returns the list of services for the carrier of the current consignment. |
||
Address in the tree: |
||
Script parameters:
Balikobot - Handling units
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotManipulationUnits.pas |
Script description: The script returns the list of allowed handling units for the carrier of the current consignment. |
||
Address in the tree: |
||
Script parameters:
Balikobot - List of packages in collection
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotOrderView.pas |
Script description: The script returns the carrier's handover protocol for the current collection; the labels for the packages in the collection can also be printed again. |
||
Address in the tree: |
||
Script parameters:
PrintLabels - No Yes - in addition to the handover protocol, it also prints the labels for the packages in the collection. |
ShowDocByBrowser - No Yes - Always displays the report (list of packages) in the web browser (regardless of the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters).
No - if the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are not entered, the print settings are taken from the settings in the Balíkobot – carrier settings script. If the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are entered, printing / display in the PDF viewer behaves according to these parameters. |
PrintDocCommandLine - ' ' Reference to the executable file of the PDF program in which the report (list of packages) is to be displayed. (Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe) |
PrintDocCommandLineAtributes - ' ' Parameter for sending the print from the PDF program to the printer. (Example entry for PDF Viewer: /printto :\\ANUP.k2.int\M452nw_5p: "%s"; example for Acrobat Reader: /t "%s" :\\ANUP.k2.int\M452nw_5p:)
Wildcards can also be used in the printer name, e.g.: /printto :\\ANUP.k2.int\M452*: "%s".
If we only want to display the report in the selected PDF viewer, fill in the "PrintCommandLine" parameter and enter in this parameter: "%s". |
PrintDocAS - No The parameter is meaningful only for web K2 and is used only if the "ShowInBrowser" parameter is not activated.
Yes - printing on the application server to the printer according to the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters or, if they are not entered, according to the settings of the Command line to start printing and Command line parameters for printing parameters in the Balíkobot – carrier settings script. The AS service must run under an account that has the right to print, to run programs and, above all, to the location where the PDF file is downloaded.
No - the PDF file is sent to the client, which handles the printing. For K2 run in a web browser, a print dialog for selecting the printer is displayed; for K2 running in a web application installed on the computer (WebNative), printing is performed according to the print settings in the given application. |
ShowInBrowser - No Yes - Always displays the labels in the web browser (regardless of the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters).
No - if the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are not entered, the print settings are taken from the settings in the Balíkobot – carrier settings script. If the "PrintCommandLine" and "PrintCommandLineAtributes" parameters are entered, printing / display in the PDF viewer behaves according to these parameters. |
PrintCommandLine - ' ' Reference to the executable file of the PDF program in which the labels are to be displayed. (Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe) |
PrintCommandLineAtributes - ' ' Parameter for sending the label print from the PDF program to the printer. (Example entry for PDF Viewer: /printto :\\ANUP.k2.int\M452nw_5p: "%s"; example for Acrobat Reader: /t "%s" :\\ANUP.k2.int\M452nw_5p:)
Wildcards can also be used in the printer name, e.g.: /printto :\\ANUP.k2.int\M452*: "%s".
If we only want to display the label in the selected PDF viewer, fill in the "PrintCommandLine" parameter and enter in this parameter: "%s". |
PrintAS - No The parameter is meaningful only for web K2 and is used only if the "ShowInBrowser" parameter is not activated.
Yes - printing on the application server to the printer according to the settings of the "PrintCommandLine" and "PrintCommandLineAtributes" parameters or, if they are not entered, according to the settings of the Command line to start printing and Command line parameters for printing parameters in the Balíkobot – carrier settings script. The AS service must run under an account that has the right to print, to run programs and, above all, to the location where the PDF file is downloaded.
No - the PDF file is sent to the client, which handles the printing. For K2 run in a web browser, a print dialog for selecting the printer is displayed; for K2 running in a web application installed on the computer (WebNative), printing is performed according to the print settings in the given application. |
Set parameters for communication with Balikobot
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelBalikobotApiParams.pas |
Script description: The script is used to save the configuration for communication with the Balikobot server. The settings are saved for individual Books of shipment services. Rows of individual settings are added with the Insert key. |
||
Address in the tree: Logistics / Shipment services / Settings and configuration / Parameter settings for communication with Balikobot. |
||
Script parameters:
Book of shipment services - ' ' Book of shipment services for which the settings will apply. |
User name - ' ' Login name for Balíkobot; assigned by the Balíkobot company. |
Password to access the app - ' ' The password is assigned by the Balíkobot company. |
Balíkobot – carrier settings
Process number: CRM013 |
Script ID number: FCRM |
File: ParcelBalikobotSettingsRun.pas |
Script description: Script for setting the services of individual carriers. The settings are made for individual books of shipment services. |
||
Address in the tree: |
||
Script parameters:
General settings for carriers
Type of comment: consignment description - ' ' Abbreviation of the type of comment on the consignment whose text will be considered the consignment description. If no such type of comment is entered on the consignment, the preset text from the Consignment description (default) field in the General settings is used for the consignment description. |
Consignment description (default) - ' ' Default consignment description. However, if an abbreviation of a type of comment is preset in the Type of comment: consignment description field and such a comment exists on the consignment, the text from that comment takes precedence. |
Type of comment: note for the carrier - ' ' Abbreviation of the type of comment on the consignment whose text will be considered the note for the carrier. If no such type of comment is entered on the consignment, either the preset text from the Note for the carrier field, which is located in the settings of some specific carriers, is used, or, if it is not entered for the specific carrier or this option does not exist, the text from the Note for the carrier (default) field in the General settings. |
Note for the carrier (default) - ' ' Default note for all carriers. It is used only if there is no comment on the consignment of the type that can be filled in the Type of comment: note for the carrier field and, furthermore, if no note text is preset in the settings for the specific carrier or this option of entering a note text does not exist for the given carrier. |
Ignored customers Numbers of customers separated by a semicolon that will be ignored and will not be passed in the data record in the "Rec_Firm" element. This is used for consignments created from e-shop sales orders, where the customer is a "fictitious anonymous company" and the actual customer is entered only in the free address. The label then shows only the given natural person (name). |
Type of comment: DHL Postnummer Used to enter the type of comment that will be inserted on the relevant consignments with the Postnummer value of the recipient. The value of the comment is filled into the Rec_Id element in the data record. (To use the option of sending to parcel lockers in Germany, the addressee (recipient) must be registered on the German DHL website. After registration, they receive their unique "Post Number", which is required for sending to parcel lockers. Without this ID, it is not possible to send to parcel lockers.) |
Do not display or print when confirming the consignment - No Appears in the Printing labels section. Yes - when the consignment is confirmed, the label will be neither displayed in the viewer nor sent to the printer. |
Show preview in browser - No Appears in two sections - for Printing labels and Documents print (of the handover protocol). Yes: When the consignment is confirmed, the labels are displayed in the web browser / when a collection is ordered, the handover protocol is displayed in the web browser. No: The labels / handover protocol are displayed and printed according to the settings of the Command line to start printing and Command line parameters for printing parameters. For web K2, the behaviour according to the setting of the Print on AS parameter applies. |
Print on AS - No Appears in two sections - for Printing labels and Documents print (of the handover protocol). The parameter is meaningful only for web K2 and is used only if the Show preview in browser option is not activated. Yes: Printing on the application server to the printer according to the settings of the Command line to start printing and Command line parameters for printing parameters. The AS service must run under an account that has the right to print, to run programs and, above all, to the location where the PDF file is downloaded.' No: The PDF file is sent to the client, which handles the printing. For K2 run in a web browser, a print dialog for selecting the printer is displayed; for K2 running in a web application installed on the computer (WebNative), printing is performed according to the print settings in the given application. |
Command line to start printing - ' ' Appears in two sections - for Printing labels and Documents print (of the handover protocol). Reference to the executable file of the PDF program in which the labels / handover protocol are to be displayed. If no such viewer exists, they are displayed in the default viewer set on the given computer. The parameter is used only if the Show preview in browser parameter is not activated. (Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe) |
Command line parameters for printing - ' ' Appears in two sections - for Printing labels and Documents print (of the handover protocol). Parameters for sending the print of the label / handover protocol from the PDF program to the printer. (Example entry for PDF Viewer: /printto :\\ANUP.k2.int\M452nw_5p: "%s"; example for Acrobat Reader: /t "%s" :\\ANUP.k2.int\M452nw_5p:) Wildcards can also be used in the printer name, e.g.: /printto :\\ANUP.k2.int\M452*: "%s". If we only want to display the label / handover protocol in the selected viewer, fill in the Command line to start printing parameter and enter in the Command line parameters for printing parameter: "%s". |
Package statuses Statuses that a package (consignment) can obtain during its transport to the recipient. The statuses have a preset text that the user can modify. To be used, the status texts must be saved - with the Save status description button. The statuses can be filled into packages with the Balíkobot - Writing package statuses script. |
Settings for individual carriers - description of selected items
Display a form with settings when confirming the consignment |
When the consignment is confirmed, displays a form with the settings for the given carrier so that the settings can be modified before the data are sent to Balíkobot.
|
Handling unit |
Option to preset the handling unit that will be reported in consignments. The handling unit is filled in using the List of HU button in the lower part of the form. It applies to cargo (pallet) transport.
Handling units can also be entered directly into packages and consignments. The handling unit used is then determined first from the package, if it is not entered there, then from the consignment, and if it is not in the consignment either, then from this setting. If the handling unit is not entered even in this setting, a form for selecting the handling unit is displayed at the first confirmation of the consignment, and the user must select a handling unit. |
List of returnable handling units |
If the client has a pallet account agreed with the carrier, they enter here the list of handling units that are recorded for this account. The units are filled in with the List of returnable HU button. The number of these units used in individual packages is then passed to the carrier in the data record. |
Order No., Additional services, Customer reference |
In addition to entering a preset text, these fields also support inserting, in square brackets, a field from the consignment (including a link to another module) from which the data are to be loaded. |
Bank account |
IBAN of the bank account to which the selected cash on delivery is to be sent. Instead of the account number, a field from the consignment (including a link to another module) from which the account is to be loaded can also be entered in square brackets. If no bank account is specified, it is not filled into the data record for Balíkobot, and the default account selected in the carrier administration in the customer section of the Balíkobot website is then applied. |
Additional insurance |
For additional insurance, the value of the consignment must be entered into the consignment, in the Declared value (additional insurance) field. |
Date of collection / Date of collection automatic Date of delivery to the addressee / Date of delivery to the addressee automatic |
So that it is not necessary to display the form with the field and service settings and fill in the dates manually each time a consignment is confirmed, a rule in the form of a number of days from the current date can be entered in the fields with the text suffix "automatic". The calculated date is then filled into the data record. If the date were to fall on a Saturday or Sunday, the date of the following Monday is passed. If the date fields are not entered and a rule in the form of a number of days is entered, and the user displays this form when confirming the consignment, the date fields already show the calculated dates, which the user can still change if necessary. |
Note for the carrier |
If the note text for the carrier is filled in for specific carriers, this text is primarily passed (and displayed on the label). The field does not support entering a value via the program name of a field. If no note text for the carrier is entered, or this setting does not exist for the carrier, the text from the Type of comment on the consignment is passed, which is defined in the General settings section in the Type of comment: note for the carrier field. If no Type of comment is entered or such a comment does not exist on the consignment, the text entered in the Note for the carrier (default) field is passed as the note. |
Notes and specifics for individual carriers
Czech Post |
Additional services: Required additional services. Enter individual numbers or letters (size S, M, L, XL) of services separated by "+". Services (in the same format) can be entered directly into a selected field (even an external one) directly in the consignment and the name of the program field can then be given here in square brackets. A link is defined with the ";" character. Services for cash on delivery and multi-piece consignments do not need to be handled; they are passed automatically. |
Zásilkovna |
In the case of delivery to a specific address within the Czech Republic when using a service that allows such delivery outside pick-up points, the code of this service must be entered in the Pick-up point field on the consignment. In the case of a delivery that is not to a pick-up point in the Czech Republic but the consignment is taken over abroad by a foreign carrier, the code of the foreign carrier must be entered in the Pick-up point field on the consignment. |
Dachser, Toptrans |
Support for ADR units is not implemented. |
DHL Freight Euroconnect |
Payment by recipient: can be applied only for international consignments. |
Balíkobot - writing package statuses
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotTrackV2Shipment.pas |
Script description: The script returns information about the package status during its delivery and saves it to the packages. The last current status is saved to the package header. The statuses must first be saved, possibly with their text modified before saving. This is done in the Balíkobot - carrier settings script. The script is run over the Consignments book; it can be run manually or included in the Scheduled tasks administration. The status of the first package of the consignment is also displayed in the consignment. |
||
Address in the tree: |
||
Script parameters:
Balíkobot - Get the shipping price for a shipment
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotTransportCosts.pas |
Script description: The script is used to determine the transport price for the current consignment. It can also be run before the first confirmation of the consignment, i.e. before the consignment data are sent to Balíkobot. The service is supported by these carriers: Top Trans, DHL Express, TNT, FedEx. |
||
Address in the tree: |
||
Balíkobot - Administrator - shipment confirmation without communication with Balíkobot
Process number: CRM013 |
Script ID number: FCRM |
File: BalikobotServiceShipmentUndoconfirmation.pas |
Script description: A service script that unconfirms a consignment without communicating with Balíkobot. It can be used to unconfirm a consignment that was confirmed without Balíkobot generating a code for it |
||
Address in the tree: |
||
Česká pošta - Set parameters for communication
Process number: CRM013 |
Script ID number: FCRM |
File: CeskaPostaApiSettings.pas |
Script description: The script is used to save the configuration for communication with Czech Post and to set consignment properties. The consignment property values entered here take precedence over the values entered in a specific consignment (e.g. Type of letter (to hand, to post office)). The settings are saved for individual Books of shipment services. Rows of individual settings are added with the Insert key. |
||
Address in the tree: Logistics / Shipment services / Settings and configuration / Czech Post - Parameter settings for communication. |
||
Selected script parameters:
Display a form with settings when confirming a consignment - No Yes: Upon the first confirmation of a consignment, when data are sent to Czech Post, a form with selected fields is displayed; for the data record being created, these fields can be filled with data that are not filled in the current consignment or that are to be changed. |
Book of shipment services - ' ' Book of shipment services for which the settings will apply. |
Sender identification section
The required fields must be filled in with data that the client obtains from Czech Post:
|
Posting point number - ' ' With the Create submission point button, you must register your company (submission point) with Czech Post. It is mandatory to fill in the sender address and also the address of the addressee of the cash-on-delivery amount. Caution: Once the submission point is created, it cannot be edited afterwards, e.g. to add further data. Only a new submission point can be created. Therefore, we recommend filling in the form properly with all data. Close the form and register the submission point with the OK button. The submission point number is filled in automatically in the Submission point number field in the main form. Note: The list of other posting points we have registered can be called up with the Show list of posting points button. Invalid or unused posting points can be cancelled using the Czech Post - Cancel selected posting point script. |
Settings for fields and services section
Type of letter (prefix) - ' ' E.g. DR, NB, NP, or the program name of a field from the Consignments module from which the value is to be loaded can be given in square brackets. External fields and also links can be entered (a link is defined with the ";" character). If it is not filled in, the value is read from the Kind field on the consignment. The type of consignment is mandatory for sending the data. |
Default cash-on-delivery service - ' ' Option to enter a default cash-on-delivery service for all consignments. If no default cash-on-delivery service is specified, the "paperless cash on delivery" service is automatically added to the data record for cash-on-delivery consignments. |
Additional services - ' ' Required additional services. Enter individual numbers or letters of services separated by "+". Services (in the same format) can be entered directly into a selected field (even an external one) directly in the consignment and the name of the program field can then be given here in square brackets. A link is defined with the ";" character. For cash-on-delivery consignments, either the cash-on-delivery service specified in the "Default cash-on-delivery service" parameter (see above) is automatically written into the data record or, if it is not specified, the "paperless cash on delivery" service is used automatically. For multi-piece consignments, the "multi-piece consignment" service is passed automatically. Services defining the consignment size (S, M, L, XL) do not have to be specified if the client has a uniform price contracted. Note: It is advisable to discuss the use of services with the Czech Post sales representative with whom the client deals. |
Reference number - postal order - ' ' Reference number for matching received cash-on-delivery payments. It is mandatory for paperless cash on delivery. By default, the data record is filled with the reference number of the invoice. If a different value needs to be applied, the data can be written directly into this field, or it can be entered directly into a selected field (even an external one) directly in the consignment and the name of the program field can then be given here in square brackets. |
Printing labels section
Do not display or print when confirming the document - No Yes: Upon the first confirmation of the consignment, the label is neither displayed in the PDF viewer nor sent to the printer. No: Display or printing is governed by the "Show preview" parameter. |
Show preview - No Yes: Displays a preview of the label in the PDF viewer. Either in the viewer specified in the "Command line for starting printing" parameter or, if it is not specified, in the default viewer. No: Printing is performed directly to the printer. |
Name of printer - ' ' Wildcards can also be used in the printer name, e.g.: :\\ANUP.k2.int\M452* |
Command line for starting printing - ' ' Link to the executable file of the PDF program in which the labels are to be displayed. Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe |
Command line parameters for printing - ' ' Specification for sending the label print from the PDF program to the printer. Example entry for PDF Viewer: /printto "%s" "%s" |
Label type Selection of the required label. |
Česká pošta - Cancel the selected posting location
Process number: CRM013 |
Script ID number: FCRM |
File: CeskaPostaAPIDeleteLocation.pas |
Script description: The script is used to cancel the required submission point that was registered with Czech Post. The submission point number is entered in the parameter. |
||
Address in the tree: |
||
Script parameters:
LocationId - 0 Number of the submission point to be cancelled |
Česká pošta - Labels
Process number: CRM013 |
Script ID number: FCRM |
File: CeskaPostaApiShipmentLabels.pas |
Script description: The script is used for additional printing of labels over consignments (the current consignment or consignments marked with asterisks). The print parameters can be defined using the script's own parameters; if they are not entered, the settings are taken from the Czech Post - Parameter settings for communication script. |
||
Address in the tree: |
||
Script parameters:
ShowInBrowser - No Yes: no printing to the printer is performed; instead, the labels are displayed in the PDF viewer. No: only printing to the printer is performed. |
PrintPrinterName - ' ' Printer name. Wildcards can also be used in the printer name, e.g.: :\\ANUP.k2.int\M452* |
PrintCommandLine - ' ' Command line to start printing. Reference to the executable file of the PDF program in which the labels are to be displayed. Example entry: C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe |
PrintCommandLineAttributes - ' ' Command line parameters for printing. Entry for sending the label print from the PDF program to the printer. Example entry for PDF Viewer: /printto "%s" "%s" |
Transport
Initialization of Travel orders code lists
Process number: DOP006 |
Script Id. No.: FDOP005 |
File: TravelOrder_Init.PAS |
Script description: The script imports records according to the applicable legislation from csv files into the code lists Statutory personal allowance, Domestic food allowance, Foreign food allowance, Reduction of domestic food allowance, Reduction of foreign food allowance, Fuel prices - domestic and Mileage rate table. If values for the given date are already entered in the code lists, the import does not take place. |
||
Address in the tree: [Logistics] [Transport] [Travel orders] [Basic Settings] |
||
Script parameters:
Interactive - Yes Yes - a message is displayed after the import is finished. |
Route planner
Process number: DOP007 |
Script Id. No.: FDOP007 |
File: Routeplanner.PAS |
Script description: Based on GPS coordinates, the script compiles a route which, using third-party functions (RouteXL or SolverTech-Triss), it can also sort optimally and calculate its length both in time and in kilometres. The time spent stopping at individual stops can also be taken into account. The script can be run over any module that contains addresses. The original purpose of the script was the optimization of stops in the Delivery orders and Transport lines modules. The calculation and optimization are provided by a third party via API; the integrated optimization software tools are: the tool of the Czech company Solvertech called Triss and the tool of the Dutch company RouteXL of the same name. The choice of service is given by a parameter of the routeplanner.pas script. |
||
Script parameters:
pAPI - Software used for sorting (1 = RouteXL, 2 = SolverTechTriss) pBranchFrom - Beginning of the route (Depot - RID) pBranchTo - End of the route (Depot - RID) pEndTime - End time of the route pRouteXLAPIPassword - Login for RouteXL - password pRouteXLAPIUsername - Login for RouteXL - username pServiceTime - Length of stop (m) pShowAll - Display stops including stops without determined GPS coordinates pShowForm - Display a form (False = non-visual sorting and saving of the order (only over the book of delivery orders and planned delivery orders)) pSchedulingMode - Stop planning mode (0 = regardless, 1 = loading first, then unloading) pSolverTechTrissAPIClientId - Login for SolverTechTriss - client id pSolverTechTrissAPIClientSecret - Login for SolverTechTriss - client secret pSolverTechTrissAPIPassword - Login for SolverTechTriss - password pSolverTechTrissAPIUsername - Login for SolverTechTriss - username pStartTime - Start time of the route pTransferNoteAddress - Stop for transfer notes in the delivery order (0 = loading and unloading, 1 = loading, 2 = unloading)
|
Load items of delivery order by document type
Process number: |
Script ID number: |
File: LoadItemsByDocumentType.PAS |
Script description: using this script, documents can be loaded into the items of a delivery order in a simplified way. The script parameters must be filled in so that it is defined which data module and which book the script is to offer. Then a list of documents in the given module is displayed. The list can be filtered. |
||
Address in the tree: [Logistics] [Transport] [Delivery orders] |
||
Script parameters:
DocType - Data module selection (number) BookId - Book in the data module (number) FilterId - number of the saved filter in the data module - if it is empty, all documents are displayed. |
Vehicle logbook
Conversion of old Vehicle logbook records
|
|
File: VehicleLogbookConversion.PAS |
Script description: The script creates vehicle logbook document(s) by vehicles and adds all records found according to the records in the original module for recording vehicle drives - Vehicle logbook. The method of creation depends on the script parameters, but new documents are always created; in the default setting, the books do not need to be created, they will be created automatically according to the vehicle numbers (a prefix of the book abbreviation can be added with a parameter). |
||
Script parameters: |
||
Create books by vehicle numbers (CreateBooksByVehiclesId): YES by default - when records from the old vehicle logbook are determined, new records are created in the administration of Books of vehicle logbooks and a new book is created for each vehicle number. Then, in each newly created book, one record is created - one document that will contain all drives according to the old module. If the parameter is set to NO - books will not be created and the user will be prompted to select a default book in which the new documents by vehicles are to be created. |
||
Prefix for new books (PrefixForNewBooks): a text value that can be used to influence the abbreviation of the newly created book by vehicle numbers. The book abbreviation will therefore consist of this prefix and the vehicle number. |
||
Sort into books by vehicles (SortIntoBooksByVehicle): NO by default; if YES - if books for individual vehicles have been created in advance, these books are found while the script is running and then a record - a new Vehicle logbook document - is created in the given book. If the books have not been created in advance, the script will require entering one default book in which it will create new documents for the different vehicles. |
||
Convert for invalidated vehicles (convertForInvalidVehicles): NO by default; if yes - books are created and filled also for invalidated ("Discarded") vehicles." |
||
Fill description into drive purpose (FillDescriptionIntoPurposeld): NO by default; if yes - the value from the Drive description field (description) is automatically inserted into the Drive purpose field." |
||
Select default driver if not found in the original data (SelectDefaultDriver): NO by default; if yes - and the driver is not found, the value entered in the parameter ("expression") is inserted. |
||
Create drives by stages
|
|
File: CreateJourneysBasedOnStages.PAS |
Script description: After the script is run over a specific vehicle logbook document, the user is offered the Travel orders book, where, after a Travel order is selected, Drives are created according to the available Stages of the Travel order, Drive = Stage. The script can also be run from the Travel orders side, where it is necessary to mark, over a specific travel order, the Stages according to which the user wants to create Drives in the Vehicle logbook. After start, conversely, a List of vehicle logbooks is offered and, when one is selected, Drives are created according to the selected stages.
The Means of transport are checked so that drives are not created, for example, from stages made by train or by a private car. |
||
Script parameters: EnabledTransportMeans - Allowed means of transport (separate with ";") = AUS; CheckVehicle - Check vehicle - False = do not check the vehicle in the Travel order header against the vehicle in the Vehicle logbook header when importing data |
||
Creation of an int. document and a wage component - private km
Process number: CRM013 |
Script ID number: |
File: CreateDocuments_PrivateKm.PAS |
Script description: Based on the vehicle logbook items marked as Private journey, the script creates an internal document for each vehicle logbook document and a wage component in the Wage data of the corresponding employee. The Company that is entered on the Officer card in the Supplier for invoicing by other liabilities field is inserted into the internal document. The prerequisite is that the Private km rate is entered on the Vehicles card and an employee is specified in the Crew 1 field. In the script, the parameters Book of internal documents, Internal document card (the VAT rate must be defined on the card) and Wage component must be set. |
||
Address in the tree: |
||
Script parameters:
BookOfInternalDocument - Book of internal documents - abbreviation. |
CardOfInternalDocument - Internal document card - abbreviation. |
ConfirmInternalDocument - Yes Confirm the internal document. |
WageComponent - 9490 Wage component - abbreviation. |
Running a mobile terminal function
|
|
File: RunMTModule.PAS |
Script description: The script runs a specific Mobile terminals function, with the parameter filled with the numeric identifier of the RID field of the specific mobile terminal function. |
||
Script parameters: |
||
Function No. (ARID): The value is the number of the specific function of the mobile terminals module. |
||