Book Contents

Book Index

Sale / Sales Order Processing

Book Contents

Book Index

Anonymization of Suppliers/Customers data

Process number: CIS004

Script ID number: FCIS004

File: AnonymizeCustomer.PAS

Script description: The script is used to anonymize personal data in the Suppliers - Customers module. When it is run, the values in selected fields containing personal data are deleted. The script can be run in the Suppliers/Customers module, and only in the container state. If the anonymized customer is linked to a Partner, the corresponding anonymization changes are also made in that module.

 

The script deletes only the values of the fields defined in its parameters.

 

During anonymization, the age of the confirmed documents of the given Supplier/Customer is checked (e.g. the age of an invoice, sales order, etc.). The CheckAllDocumentsPeriod parameter specifies the number of years for which the documents must be kept and during which anonymization cannot be performed. The retention period can also be set individually for the individual document types. If an individual period is defined for a specific document, it takes precedence over the value of the CheckAllDocumentsPeriod parameter.

 

If the CheckAllDocumentsPeriod parameter is not filled in and at least one confirmed document exists for the anonymized record, anonymization is not performed.

Address in the tree:

Script parameters:

Abbr 1 - no

Yes - erases the value in the Abbreviation 1 field

Abbr 2 - no

Yes - erases the value in the Abbreviation 2 field

ActivityAll - no

Yes - erases the whole activity tree

ActivityType

Erases the required activity type

Addresses - no

Yes - erases the values in the fields intended for entering the Address

All - no

Yes - sets all boolean parameters to yes

AttachmentType

Erases the required attachment type

Banks - no

Yes - deletes the values on the Banks tab

BusinessID - no

Yes - erases the value in the Comp. Reg. No. field

CommentType

Yes - adds the defined type of comment to the automatically created comment

Company - no

Yes - deletes the value in the Company field

ContactPerson -no

Yes - deletes the Contact persons field

EAddress - no

Yes - erases the values in the fields for Electronic addresses

CheckAdvancesProvidedPeriod - -1

Number of years for checking the existence of a provided advance

CheckAdvancesReceivedPeriod - -1

Number of years for checking a received advance

CheckAllDocumentsPeriod - -1

Value -1 ... if at least one confirmed document exists for the anonymized supplier or customer, the script does not perform anonymization.

 

Value > -1 ... specifies the number of years for which the documents must be kept and during which anonymization cannot be performed. The script checks whether a confirmed document younger than the specified number of years exists for the anonymized record. If such a document exists, the script reports this and does not perform anonymization. For example, with the value 6, it will not be possible to anonymize a record if there is a confirmed document younger than 6 years.

 

Note: If an individual period is filled in for a document, this individual value takes precedence.

 

CheckDeliveryConfirmPeriod - -1

Number of years for checking delivery notes / delivery confirmations

CheckInvoiceInPeriod - -1

Number of years for checking invoices in

CheckInvoiceOutPeriod - -1

Number of years for checking invoices out

CheckOrderConfirmPeriod - -1

Number of years for checking received orders

CheckOtherLiabilitiesPeriod - -1

Number of years for checking other liabilities

CheckOtherReceivablesPeriod - -1

Number of years for checking other receivables

CheckPurchaseOrderPeriod - -1

Number of years for checking purchase orders

CheckReceiptCardsPeriod - -1

Number of years for checking receipt cards

CheckReleaseNotesPeriod - -1

Number of years for checking release notes

CheckRemindersPeriod - -1

Number of years for checking reminders

CheckReservingCardsPeriod - -1

Number of years for checking reservation cards

CheckSalesOrderPeriod - -1

Number of years for checking sales orders

CheckServiceSheetsPeriod - -1

Number of years for checking service sheets

PraSk

Adds a right to the record

TaxID - no

Yes - erases the value in the VAT Reg. No. field


Records of facultative compensation - export of documents to CSV

Process number: ZAK011

Script ID number: FZAK044

File: FAV_FacultativeCompensation.PAS

Script description: Export of invoices out to a *.CSV file for passing the data to the central register of facultative compensation. It is used by suppliers of facultative compensation.

This script is run over the factory filter "Facultative compensation mode" according to these conditions:

 

- a document with at least one sales item with the "Facultative compensation mode" flag

- the document is fully paid

- the payment date is within the from-to interval (filled in manually)

 

If "Facultative compensation mode" is checked in the header of the Invoice out, the whole invoice is taken; otherwise, the items are gone through and the amounts are summed.

 

The script then exports the documents to a *. CSV file.

 

Address in the tree:

Script parameters:

ElectronicAddressTypeAbbr - Type of electronic address that is exported to the file as the email column

(by default = "EMAIL")

PathForExport

Setting of the path for the file export.

Book Contents

Book Index

Blocking for sales orders, preview pane

Process number:

Script ID number:

File: SUB_F_ContractBlocking.PAS

Script description: Used for blocking sales items for the required contract code.

Address in the tree:

Script parameters:

No parameters.

The script works with sales documents (Sales orders, Reserving cards), purchase documents (Purchase orders) and stock documents (Transfer notes).

The form displays 3 kinds of records related to a particular item (Stock levels, Orders, Reservations).

Stock levels

By default, it displays information about the stock level, or the level on the contract code. Here you can change the level on the required contract code by transferring the necessary quantity from another contract code (Transfer note).

Using the Change button, located to the right of the table, we open a form for entering the quantity for the transfer. The Contract code to field is automatically switched on and pre-filled according to the currently marked item of the document. After pressing the OK button, a Transfer note document is created. The change is immediately reflected in the Stock levels table. After pressing the Cancel button, the quantity transfer is not performed.

Linked Graphics K2_SKRIPT

Picture: Transfer quantity form

Purchase orders

In the orders window, a purchase order item can be re-blocked within the ordered quantity to another contract code. The quantity change to the required contract code is performed similarly to the previous case. The Change button again opens the same form, but this time for entering the quantity for re-blocking the order item.

If, e.g., 10 pcs are ordered for the contract code "-" and we have a sales order for 3 pcs for the contract code "2007/07", we re-block 3 pcs to the new contract code. The Purchase order will then contain the original item for 7 pcs with the contract code "-" and a new item for 3 pcs with the contract code "2007/07".

Reserving cards

The script also displays the issued Reserving cards for the given item. Here you can create a new Purchase order document with the quantity according to the Reserving card.

Rights

The script respects the rights for working with all documents. I.e. a user who does not have rights set in purchase cannot freely change orders.

Parameter settings

In the upper right part, there is the P. button for setting the parameters:

Description of fields

Update button

Recalculates all updates.

Contract code check box

If it is switched on, it filters the given contract code.

Contract code

If the pane is run over a sales order item, the contract code of the item is loaded.

Available, Assigned, Reserv., Ordered (in green)

Contains information on the selected contract code

Missing (in red)

Displayed only if the coverage of the required item for the relevant contract code is insufficient.

Order button

Creates purchase orders according to the records in the Reserving cards table that are marked with a yellow asterisk, by calling the standard script Creating orders for the requested quantity.

Yellow asterisk buttons

Mark the Reserving cards according to which we want to create a Purchase order.

Linked Graphics K2_SKRIPT

Picture: Sales order with the Blocking preview pane

Book Contents

Book Index

Edi K2 - PriCat

Process number: ZAK011

Script ID number: FZAK040

File: EDI_PRICATexp.PAS

Script description: The script makes it possible to export information from the Articles book. This information is intended for exchange between the customer and the supplier via electronic communication - EDI. The output of the script is an "*.xml" file, the so-called "PriCat" message. The "PriCat" message exports articles with their catalogue prices and with the prices intended for a specific customer (recipient) in a structured form suitable for automatic processing.

Address in the tree:

Script parameters:

NoInteractive - No

No - the forms for entering/changing data for the "PriCat" message are displayed, Yes - the forms are not displayed. In the forms, you can enter the supplier and the recipient, and change/add selected article fields.

Receiver - 0

The customer ID from the Suppl./Cust. book is entered here if we want it to be pre-filled as the Recipient when exporting the "PriCat" message.

RequiredFields - Yes

Yes - after the export, a message is displayed stating that not all required fields are filled in. A file is created containing the fields that need to be filled in; No - the message is not displayed.

Supplier - 0

The customer ID from the Suppl./Cust. book is entered here if we want it to be pre-filled as the Supplier when exporting the "PriCat" message.

XmlFile - C:\K2Xml\

The location where the "*.xml" message is saved on the disk. If the directory does not exist, a dialog box is displayed when saving the "*.xml" message, where we can choose whether we want to create the directory; if we do not, a dialog box for selecting the path for saving the file is displayed.

Description of the script properties:

Description of the script forms:

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Message header

Description of fields:

Document number

The document number of the "PriCat" message is filled in in the format "yymmdd_sequence number" of the message sent on that day.

External document type

Pre-filled: "9" - prices and logistics. Other options: "24E" - logistics, "25E" - prices.

Ext. document functions

Pre-filled: "9" - original.

Date of issue

The current date of the export is pre-filled.

Number of previous document

Number of the PriCat message that was exported last.

Date of creation of the prev. document

The date of the "PriCat" message that was exported last is pre-filled.

Document validity from

Validity of the "PriCat" message from.

Document validity to

Validity of the "PriCat" message to.

Currency

Currency of the recipient specified in the Suppl./Cust. book in the Currency field.

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Recipient detail

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Article item

Description of fields:

Line No.

Line number of the article item.

Action type

"1" - the article is exported for the selected recipient for the first time; "2" - the article is deleted (invalidated); "3" - the article has already been exported and has been changed. (If an article that is invalidated and has not yet been exported is exported, it does not appear in the items of exported articles.)

Valid from

Validity of the article from. The current date is filled in.

Release date of items for publ.

Release date of items for publication; the current date is filled in.

Target market

The abbreviation of the recipient's country is pre-filled.

GLN point of sale

The abbreviation of the recipient's country and the Comp. Reg. No. are pre-filled.

Nomenclature

The value from the Nomenclature field of the Articles book is pre-filled.

Article No.

The Article No. from the Articles book is pre-filled.

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Article description

Description of fields:

Article name

Name of the article from the Articles book.

Country of origin

Country of origin from the Articles book.

Brand

Brand of the article from the Articles book.

Abbreviation 1 (12)

Recommended abbreviation for cash register systems (12 characters) - from the Abbr 1 field of the Articles book.

Abbreviation 2 (20)

Recommended abbreviation for cash register systems (20 characters) - from the Abbr 1 field of the Articles book.

Batch

Batch of the article specified in the Articles book.

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Next

.

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Alternate units

Description of selected fields:

Basic unit

Checked if the alternate unit is marked as "Basic" for the article.

Consumer u.
Transport u.
Ordering u.
Invoicing u.

Checked if the alternate unit of the article has the "Default for sale" option checked.

Article EAN

The article EAN specified for the specific unit of measure of the article is filled in, namely the one that has the "EDI" option checked. If no such EAN exists, the first one entered for the unit of measure is filled in, even if it does not have the "EDI" option checked.

Linked Graphics K2_SKRIPT

Picture: "PriCat" message - Price list

Description of fields:

Type of price (catalogue / inv.)

Two types of price are displayed:

  • "AAA": catalogue - the current price, always for one unit of the article as of today for the given customer.
  • "INV": invoice - all other prices for the given customer that are valid from today onwards, depending on quantity and date.

Quantitative basis for price

Value of the Valid from quantity field from the Articles book. The price specified in the Unit price field applies from the quantity specified in this field.

Price UM

The price specified in the Unit price field applies to this unit.

Unit price

Price of the article per the specified unit for the selected customer.

Price start date

The current date is filled in by default.

Price expiration date

The current date is filled in by default.

Export of AM reports to email

Process number: ZAK014

Script ID number: FZAK036

File: AM_EXPORT.PAS

Script description: The script enables exporting a report to email and sending it in bulk to recipients.

Address in the tree:

Script parameters - default value:

DefaultExport - No

Yes - original export; No - new export to email.

Export_Abbr

Activity abbreviation. The value is pre-filled in the field in the form.

Export_AddNoteAfterExport - No

If the parameter is set to "Yes", a note about the export is added to the document.

Export_AddressType

Activity type. The value is prefilled in the field in the form.

Export_AttachementDocType

External document types from page 9 of the document that will be exported as email attachments. The individual types must be separated by a semicolon.

Export_AttachementFileName

Text that will be used as the name of the file attached to the email

In this parameter, the protocol for replacing text with the values of data module fields works:

- The DM field name must be specified in the text in square brackets, e.g. [DocumentIdentification]

- Link paths separated by a semicolon can also be used [CDo;Zkr]

- The data module from which the fields are taken depends on the export type. For the "By document" export type, it is the data module of the given document; for the "By supplier/customer" export type, it is the data module of the given suppl./cust. (TD_Baz)

 

Furthermore, a reference to a client addendum can be specified, whose text will be inserted:

- The abbreviation of the addendum is specified in percent signs, e.g. %ZkratkaDodatku%

- The text of the addendum is automatically taken in the correct language version

- The text of the addendum can again contain the names of data fields in [] and they will be replaced by their values.

Export_AutogenerateSubject - No

Yes - the e-mail subject is created according to the document number.

Export_Campaign

Activity campaign. The value is pre-filled in the field in the form.

Export_Comment

Activity comment. The value is prefilled in the field in the form.

Export_CreateAct - No

Yes - an activity is created for the e-mail.

Export_DateFrom - Current date

Date from. The value is prefilled in the field in the form.

Export_DateTo - Current date

Date to. The value is prefilled in the field in the form.

Export_Description

Activity description. The value is prefilled in the field in the form.

Export_DetailProt - No

Yes - a detailed protocol is displayed after the e-mail is sent.

Export_EditAct - No

Yes - activities can be edited.

Export_EditMail - No

If the parameter is set to "Yes", the Edit mail field is checked automatically.

Export_EmailFromCust - Yes

Yes - use the email from the customer during the export. No - the email from the partner.

Export_LogoPictureFooter - Footer.wmf

Name of the company logo for the e-mail footer.

Export_LogoPictureHeader - Header.wmf

Name of the company logo for the e-mail header.

Export_NoInteractive - Yes

No - the form for export to email is not displayed.

Export_NoteType - 1

Parameter for choosing the note type.

Export_Offer

Activity opportunity. The value is pre-filled in the field in the form.

Export_pdfDirectory

Selection of the directory with the exported "*.pdf" files.

Export_PlaceInAFolder

Folder for storing the activity.

Export_ReferencerDocActivity - Yes

Yes - transfers the activity reference to the 1st page of the document.

Export_ResponsiblePreson

Responsible person of the activity. The value is prefilled in the field in the form.

Export_SavedExPdf

Yes - saves the "*.pdf" from the export to email.

Export_ShowLogoFooter - No

Yes - the logo is displayed in the e-mail footer.

Export_ShowLogoHeader - No

Yes - the logo is displayed in the e-mail header.

Export_SubjectOfMail

Parameter for setting the email subject. The value entered in this parameter is always filled in the subject of the email being sent. The text in this parameter can be set so that values from specific fields of the customer or the document are automatically filled in the email subject.

In this parameter, the protocol for replacing text with the values of data module fields works:

- The DM field name must be specified in the text in square brackets, e.g. [DocumentIdentification]

- Link paths separated by a semicolon can also be used [CDo;Zkr]

- The data module from which the fields are taken depends on the export type. For the "By document" export type, it is the data module of the given document; for the "By supplier/customer" export type, it is the data module of the given suppl./cust. (TD_Baz)

 

If the user wants a value from a customer field to be filled in the email subject, the exact name of the relevant field must be specified in square brackets in this parameter (e.g. [ICO]). The export type must be set to 1 - by Supplier/Customer.

If we want to generate a value from a document field into the e-mail subject, the export type must be set to 2 - by Document and the name of this field must be entered in the Export_SubjectOfMail parameter, again in square brackets.

Links of individual fields can also be used. The parameter value must then be, for example, in the form [KodZ;Zkr1]. The e-mail subject can be generated by combining several fields at once. In this case, we must list the individual fields in the parameter (e.g. [ICO] [Mena]).

Export_TexForMail

Parameter for setting the e-mail text.

In this parameter, the protocol for replacing text with the values of data module fields works:

- The DM field name must be specified in the text in square brackets, e.g. [DocumentIdentification]

- Link paths separated by a semicolon can also be used [CDo;Zkr]

- The data module from which the fields are taken depends on the export type. For the "By document" export type, it is the data module of the given document; for the "By supplier/customer" export type, it is the data module of the given suppl./cust. (TD_Baz)

 

Furthermore, a reference to a client addendum can be specified, whose text will be inserted:

- The abbreviation of the addendum is specified in percent signs, e.g. %ZkratkaDodatku%

- The text of the addendum is automatically taken in the correct language version

- The text of the addendum can again contain the names of data fields in [] and they will be replaced by their values.

Export_Type

Export type: 1 - by Supplier/Customer; 2 - by Document.

Export_TypeOfActivity

Activity type. The value is prefilled in the field in the form.

Export_ISDOCFormat - No

Yes - the export is made to the "ISDOC" format, not to "*.pdf". The parameter can be used for the Invoice out report.

Using this script, a report can be exported to email and thus sent to selected recipients. This function can be run from the standard reports in which it is included, using the Linked Graphics K2_IKONY icon. The Export parameters form is displayed, in which some aspects of the export can be set.

Linked Graphics K2_SKRIPT

Picture: Export parameters form

Description of fields:

Edit email

Displaying the email before sending with the option of editing it.

Create activities

Checking this option makes it possible to create activities for the relevant emails. Page 2 becomes available, where basic data about the activity can be entered.

Edit activity

After each email is sent, the preset activity can be edited. If we send further emails automatically, the activity can no longer be edited.

Generate email subject

If this option is checked, the number of the exported document is inserted into the email subject. This option works only if the By document export type is set.

Detailed protocol

Provides information not only on the number of sent emails and created activities, but also on the addresses to which the emails were sent and for whom the activities were created. If the addresses are changed only in the mail form of the email client, this change will not be recorded in the log.

Create note

If this option is checked, a note with the sending date and the email recipient is added to the specific document after the email is sent.

In this form, the user can also choose the Export type. Two options are available here:

Page 1 of the form (Email) is used to set the Subject and Message of the email.

Page 2 (Activity) is used to predefine the fields for creating activities. This page is displayed only if the Create activities field is checked on page 0 of the form. The user can fill in the relevant values in the fields on this page of the form, and these are then inserted into the newly created activities. These are the fields Type of activity, Abbreviation, Description, Place in folder, Campaign, Opportunity, Date, Time, Responsible person and Comment.

Export of invoices to the ISDOC format

Process number: ZAK015

Script ID number: FZAK040

File: FAV_ExportXML.pas

Script description: The script enables exporting invoices out to the ISDOC format, which is a fixed-structure "*.XML" file. Drawn advances are also exported.

Address in the tree:

Script parameters:

Path - C:\

Setting of the path to which the file(s) are to be exported.

PaymentsInCash

Value settings for cash payment (separated by a semicolon).

TransferToAccount

Value settings for payment By transfer (separated by a semicolon).

NonTaxedType - N

Tax type abbreviation for the Do not include in tax return tax type.

PaymentsByCheck

Parameter for specifying the payment method - Payment by cheque (separated by a semicolon).

DocSupplementType - ALL

Type of documents that will be exported from page 9 of the invoice (separated by a semicolon in the parameter).

OnlyConfirmed - Yes

The parameter determines whether only confirmed invoices are exported.

PaymentsByCreditCard

Parameter for specifying the payment method - Card payment (separated by a semicolon).

AccountsBetweenPartners

Parameter for specifying the payment method - Posting between partners (separated by a semicolon).

AlternativeItemDescription - No

Yes - the name from the invoice is filled in the item description.

DeliveryNoteType - 1

Link from the invoice item: 1 - delivery note, 2 - release note.

GenerateOnlyISDOCFile - No

Yes - only the ISDOC file is generated.

PrimarySellersItemIdField

Name of field with the primary item identifier.

SecondarySellersItemIdField

Name of field with the second item identifier.

TertiarySellersItemIdField

Name of field with the third item identifier

AddNoteToDoc

After the export, inserts a note about the export into the document.

DescriptionFrom - 0

the parameter affects the filling of the ISDOC element for the article description. If the value is 0, a field from the article card whose value will be filled in the description element can be specified in the related DescriptionField parameter. If the value is set to 1, the value from the specified field of the sales items will be filled in the description element.

DescriptionField

If the AlternativeItemDescription parameter is set to Yes and the DescriptionFeld parameter is empty, the value from the NameCalc field (the Name column from the invoice items) is filled in the description element.

 

If AlternativeItemDescription is set to Yes and the value of the DescriptionFrom parameter is 1, a progfield from the sales items can be entered in the DescriptionField parameter (e.g. ArticleNameId.Description100Calc - the Description field from the invoice items). If the value of the DescriptionFrom parameter were 0, a progfield from the article could be entered.

Before running the script, the user should set some parameters for it to work correctly. These are:

The script loads information about the own company from the Client parameters. The RegisterIdentificationType/Preformatted element (identification of the document issuer) is filled with the text from the client addendum of the OR type.

Documents that are to be exported using this function must be marked with an asterisk. If the user runs the script on a page other than page 0 of the document, only this specific document is loaded into the form. Drawn advances are also exported.

After the script is started, a form with two tables is displayed. The upper part of this form shows the loaded documents, i.e. those that the user marked with an asterisk, and the lower part of the form shows the documents loaded from pages 9 of these documents. These documents are loaded according to the setting of the DocSupplementType parameter. Using the Document button, the user can always switch from the form to page 1 of the specific exported invoice on which the cursor is placed.

If the document has not yet been exported, it is marked with an asterisk in the form and has no other flag. If the document has already been exported, it has the flag. A document that has already been exported once can be exported again by marking it for export again.

Only the documents that are marked with an asterisk in the form will always be exported. One of the possible attachments can be a document (e.g. PDF, DOC) that represents a preview of the invoice. Using the Mark as preview button, the operator can mark such an attachment, thereby specifying in the exported file that it is a preview of the invoice. The Display button is used to open and display an attachment of the exported invoice directly from the Export of invoices form.

Linked Graphics K2_SKRIPT

Picture: Export of invoices form

When the user has marked all the required documents and attachments, the export can be performed using the OK button. The files including attachments will be exported to a file with the ISDOCX extension. The location of the exported file can be set using the PATH parameter.

Each file in the ISDOCX format always contains one document and an unlimited number of attachments, i.e. a new file is always created for each document that the user exports.

The user can open and view the created ISDOC files using the ISDOCReader program. This program is available for download at www.isdoc.cz, and it is also distributed with the K2 information system and stored in K2\SupportFiles\Lang5.

Book Contents

Book Index

Export of invoices to the TImport object

Process number: ZAK011

Script ID number: FZAK041

File: ExportInvOutToTImport.pas

Script description: Export of invoices to the K2I format.

Address in the tree:

Script parameters:

ExportFilepath

Setting of the path for the file export.

FieldCustomerAbbr

Parameter for setting the field from which the supplier abbreviation will be exported.

FieldGoodsAbbr

Parameter for setting the field from which the article abbreviation will be exported.

This function is used to export invoices out to the K2I format. This is an internal invoice format that can be published in a script and is used for data exchange between IS K2 systems. An example of use is given in the Export of invoice to the TImport object script (ExportInvOutToTImport.pas) and requires modification by a consultant.

Book Contents

Book Index

Filter of sales orders by items

Process number: EXP013

Script ID number: FEXP016

File: ContractFilterByItems.PAS

Script description: Filters sales orders by the existence of subordinate documents or by articles in the items.

Address in the tree:

[Sale / Sales Order Processing] [Sales Orders] [Overviews] - Sales orders by items on subord. documents

[Sale / Sales Order Processing] [Sales Orders] [Overviews] - Subordinate documents on the sales order

Script parameters:

CheckContractItems - Yes

Yes - articles in the sales order items are checked; No - only the existence of subordinate documents is considered.

DeliveryNoteC - Yes

Checks the Confirmed delivery note on the form flag.

DeliveryNoteU - Yes

Checks the Not confirmed delivery note on the form flag.

InvoiceC - Yes

Checks the Confirmed invoice on the form flag.

InvoiceU - Yes

Checks the Not confirmed invoice on the form flag.

ItemAll - No

Yes - use the article filter.

ItemDeliveryNotePresent - No

Checks the flag Article must be on the Delivery note on the form.

ItemInvoicePresent - No

Checks the flag Article must be on the Invoice on the form.

ItemJobCardPresent - No

Checks the flag Article must be on the Job card on the form.

ItemOrderPresent - No

Checks the flag Article must be on the Order on the form.

ItemReleaseNotePresent - No

Checks the flag Article must be on the Release note on the form.

ItemReservingCardPresent - No

Checks the flag Article must be on the Reservation card on the form.

JobCardC - Yes

Checks the Confirmed job card on the form. flag

JobCardU - Yes

Checks the Not confirmed job card flag on the form.

NoNoGoods - No

Checks the Do not include non-stock items flag.

OrderC - Yes

Checks the Confirmed order on the form flag.

OrderU - Yes

Checks the Not confirmed order on the form flag.

ReleaseNoteC1 - Yes

Checks the Release note - 1st confirm. on the form flag.

ReleaseNoteC2 - Yes

Checks the Release note - 2nd confirm. on the form flag.

ReleaaseNoteU - Yes

Checks the Not confirmed release note on the form flag.

ReservingCardC - Yes

Checks the Confirmed reservation card on the form flag.

ReservingCardU - Yes

Checks the Not confirmed reservation card on the form flag.

Save - No

Yes - shows the saved components.

UseFilterArticle - No

Checks the Use article filter flag.

With the default settings, the following form is displayed:

Linked Graphics K2_SKRIPT

Picture: Sales order items on documents form

In it, the user can select one specific Article card from the list, or check the Use filter option, which allows searching by a set of articles. The Create filter button opens a form with predefined filter conditions. The Display filter button switches the user to the evaluation filter of the Articles book, where they can specify in any way which Article cards they want to test. The next option determines whether one or all Article cards from the selected set in the filter must be in the document. If one Article card is being selected, the Filter items option changes to Document items. The options then determine whether the selected card is the only item or one of several items.

Then it is possible to choose on which subordinate documents the article must be and on which, on the contrary, it must not be. The form allows a combination of any subordinate documents in any confirmation state.

The Save check box displays a section for setting how values are saved to the parameters.

If the CheckContractItems parameter is set to No, the user can search for sales orders regardless of the articles, according to the completeness of the subordinate documents. Compared to the default settings, the part for selecting articles is missing here; instead, a part is displayed where you can check whether non-stock items are to be included in the evaluation. If the check box is checked, non-stock items will not be included in the evaluation, i.e. if, for example, every stock item is on an invoice, the sales order will be evaluated as fully invoiced even though it still contains non-stock items without an invoice. If the check box is not checked, all items will be evaluated regardless of the article type.

Linked Graphics K2_SKRIPT

Picture: Documents linked with sales order form

Book Contents

Book Index

Bulk setting of the officer abbreviation

Process number:

Script ID number: FCIS014

File: SetOfficerAbbr.pas

Script description:

The script changes the values in the Abbreviation field in bulk. A table of all Officers is displayed. Pressing the All by surname button fills the Abbreviation field with the officers' surnames. Pressing the All by personal number button fills the Abbreviation field with the value from the Personal number field.

Address in the tree:

Script parameters:

Book Contents

Book Index

Bulk change of sales book settings

Process number: SPR006

Script ID number: FSPR031

File: SaleBooksBulkChange.pas

Script description:

The script allows you to change the settings of sales books in bulk. The user selects the book to which the changes are to be applied and then sets the values of the fields they want to change.

Address in the tree:

Script parameters:

Book Contents

Book Index

Import of customers

Process number: CIS011

Script ID number: FCIS010

File: IMBAZ.PAS

Script description: The script allows you to import Customers from a spreadsheet.

Address in the tree: [Sale / Sales order processing] [Basic data] [Customers] [Customer functions]

[Purchase / Supply] [Basic data] [Suppliers] [Supplier functions]

Script parameters:

FindByAbbr1 - Yes

If the parameter is set to "Yes", the script searches for partners by Abbreviation 1 and then, if necessary, by name; if the parameter is set to "No", the partner is searched for only by "Abbreviation 2".

XMLFile - ImportPart.xml

Parameter for specifying the name of the "*.xml" file in which the current settings and field pairing are saved.

Spreadsheet - 0

Parameter for choosing 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 LibreOffice spreadsheet application for the import.

This script can be used to import customers into IS K2 from a "*.xls" file and thus simplify entering them into the system. Together with the customers, their electronic addresses and notes can also be imported.

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.

Import settings:

Do not import duplicate records

Only companies whose company name is not in the K2 database are imported.

Allow to import duplicate records

All records are imported regardless of matching company names in the database.

Overwrite duplicate items

All records are imported. Records of companies that are in the database will be changed, the others will be created as new.

Rewrite duplicate records only (do not import new ones)

Only duplicate items are imported, i.e. records that are already in the K2 database. These records are overwritten.

Import of subordinate modules

By default, set including the import of subordinate modules. If the field is checked, subordinate modules can be imported, i.e. electronic addresses and notes.

pic_120_2024

Picture: Data Import form

By selecting and loading the input file, the 1st row of the imported file is loaded in the Input columns section. The With header option means that the data will be imported from row 2, otherwise from row 1.

Assigning fields:
  1. Select the Column name in the Input columns section.
  2. Select the Field in the Field in K2 – Customers section.
  3. Press the Link button.

The Input name and Input column columns in the Field in K2 section display the names of the assigned columns from the imported file, and at the same time the number of assignments is shown in the Input columns section. To detach fields, simply select the Field in the K2 field – Customers section and press the Detach button.

Required field:

The pic_100i flag in the PP column marks the required fields in K2 to which columns from the Input file must be assigned and a Def. value entered.

Def. value :

Update of code lists :

pic_234_2024

Picture: Field assignment of the import

Using the Import of customers script, it is also possible to import their electronic addresses or comments together with the customers. In the script form, the required module must be clicked in the Item modules section. The Import of subordinate modules form is displayed.

pic_235_2024

Picture: Import of subordinate modules form (Bank accounts)

In this form, it is again necessary to link the relevant K2 fields with the columns of the input file, or to assign their default value to these fields. Linking is done using the Link button. Once the individual fields are matched or have a default value set, the user must save this linkage. This is done with the Save button.

When working with this function, it is always possible to save the form settings, i.e. the assignment of individual fields, using the Saving Settings option.

Book Contents

Book Index

Blanket sales orders

Process number: ZAK001

Script ID number: FZAK002

File: CT_ORDER.PAS

Script description: The script creates, in a special sales book, a contract that specifies the agreed content of the business with the customer (articles, prices, delivery terms, etc.) for the selected period, and handles its execution including the creation of documents in the regular sales book.

Address in the tree:

Script parameters:

BookContract

The book in which contract sales orders will be saved.

BookDocument

The book in which the actual documents will be created.

History - Yes

Remembering the history of ordered items.

By default, the script is assigned to the Joint Contracts sale button on the K2 desktop. The standard contract buttons on the desktop have the behaviour of their scripts preset by the parameters from the factory so that they can also be run on the program's demo data. Therefore, before using contracts for the first time, the script parameters must be set according to the conditions of each client. Before running the contract books, the parameters must be set using the Contract settings function, which is located under the contract books in the tree menu.

Book Contents

Book Index

Contract of purchase - export to RTF

Process number: ZAK006

Script ID number: FZAK037

File: SALES_AGREEMENT.PAS

Description: The script exports the Contract of purchase report, saves the file to the specified location and opens it for editing. Using a parameter, the created file can be attached to the Sales order or to the Order confirmation. If a contract is already attached, the new file will be created, but it will not be attached to the document.

Address in the tree: [Sale/Sales order processing] [Order confirmations] [Documents print - lists]

Script parameters:

NoInteraktiv - Yes

Yes - saves according to the parameter settings. No - opens the usual form for saving files.

AddFileToPage9 - 0

Adds the created file to page 9 of the documents. 0 - to no document; 1 - to the Order confirmation; 2 - to the Sales order.

FileName - kupnismlouva

File name for non-interactive execution.

TypeOfDoc - OFO

The document type to which the file will be assigned when saved to page 9.

SavePath

Path for saving in non-interactive execution.

Partner - Customer

Process number: CIS004

Script ID number: FCRM042

File: ExportPartBaz.pas

Script description: The script creates customers for the selected partners.

Address in the tree: [Sale / Sales order processing] [Basic data] [Customers] [Customer functions] [Partner - Customer]

[Purchase / Supply] [Basic data] [Suppliers] [Supplier functions] [Partner - Supplier]

Script parameters:

PravoNaRec - Yes

If the parameter is set to "Yes", it ignores records to which the user has no rights.

This script can be used to synchronize the Partners and Customers databases. For the selected partners (those that are not linked to a corresponding customer), the function creates records in the customer card.

Book Contents

Book Index

Continue with the previous date price

Process number: CIS009

Script ID number: FCIS008

File: ZBO_CENYDATPOKR.PAS

Script description: The script is used when date prices are used for promotional prices with a limited validity period (i.e. the valid to date item is filled in in K2). The script creates a new date price valid after the end of the promotion and copies the prices valid before this promotion. However, only the row in the upper part of page 5 of the Article will be created. It is necessary to run the recalculation of article prices so that the corresponding customer prices and the prices of price groups predefined by the product group are also created.

Address in the tree:

Script parameters:

No parameters.

 

Book Contents

Book Index

Add sales orders to blanket orders

Process number:

Script ID number: FCRM022

File: ZAKTOCONTRACTS.PAS

Script description: The script creates a contract according to the offer abbreviation. It goes through all activities of the OFO offer type. From the activities on page 9 it determines the attached sales orders and inserts them into the contract.

Address in the tree:

Script parameters:

No parameters.

Book Contents

Book Index

Insert e-waste fee into sales order

Process number: EXP005

Script ID number: FEXP013

File: VLOZ_EO_ZAK.PAS

Script description: Inserts e-waste fee items into the sales order. A more detailed description is in the Financing of e-waste collection methodology.

Address in the tree:

Script parameters:

No parameters.

Book Contents

Book Index

VPFilFaV

Process number: ZAK013

Script ID number: FZAK034

File: VP_FILFAV.PAS

Script description: Filter of invoices out by interim period. The script adds non-cancelled invoices between the specified dates to the filter.

Address in the tree:

Script parameters:

DatumOd - -693594.0

Date of invoice out from.

DatumDo - -693594.0

Date of invoice out to.

Creating an other receivable from an invoice

Process number: ZAK019, FIN016

Script ID number: FZAK019

File: FA_CreateOtherRelation.PAS

Script description: We run the script on an invoice out. After start, a form is displayed in which the Company, Cost centre, Contract code, Payment method and Description are set according to the invoice. We enter the book in which the receivable is to be created, the dates, the net amount, the VAT rate or the other receivable card, and possibly other data. After the form is confirmed, an other receivable document is created.

If the Tax type and Account are not entered, they are filled in according to the settings of the book in which the document is created.

The Tax point date is filled in depending on the Tax point date parameter set in the book.

Address in the tree: [Sale] [Other Receivable]

Script parameters:

Account -

Account of the other receivable / liability.

Amount - 0

Net amount of the document.

AmountFromInvoice - No

Yes - the amount is set according to the net amount of the invoice.

Bank - bank code of the received invoice

Bank code of the other liability.

BankAccount - bank account of the received invoice

Bank account of the other liability.

Book -

Abbreviation of the book of other receivables / liabilities.

Card -

Abbreviation of the other receivable / liability card.

Confirm - Yes

Yes - the created document is confirmed.

ContractCode - contract code from the invoice

Contract code abbreviation.

CostCentre - cost centre from the invoice

Cost centre abbreviation.

Description - description from the invoice

Document description.

DimensionsFromInvoice - Yes

Yes - Take over the analytical dimensions from the invoice.

Firm - company from the invoice

Company of the document.

InvoiceDate - current date

Accounting transaction date of the document.

MaturityDate - current date

Due date of the document.

NoInteractive - No

Yes - the input form is not displayed.

PayMethod - payment method from the invoice

Document description.

RateOfVat -

VAT rate abbreviation for the document item.

TypeOfTax -

Tax type of the document.

Vat - No

Yes - the VAT flag in the document header is checked.

Book Contents

Book Index

Import of sales order/order items from Excel

Process number:

Script ID number: FZAK045

File: ImportSalePurchItems.pas

Script description: The script is run in change mode on a sales order or purchase order document and imports document items prepared in Excel.

 

After the script is run, the input Excel file is selected. It has filled-in columns which must contain at least information identifying the article (number, abbreviation or EAN); it may also contain information on the quantity, unit of measure, price and planned stock price. The Excel file must not contain column headers describing the information. In the Type of price field we specify whether the values in Excel are entered as net or gross, or whether prices will not be filled from Excel (they will be filled according to the pricing). If the prices are imported from Excel, the Price calculation flow button displays the information "User-entered price". If the option not to fill prices is selected, prices are filled according to the current price list and this information will also be displayed in the Price calculation flow button.

 

The individual columns from Excel are mapped to the corresponding fields on the form. For the article, you select whether it will be imported by the internal number in the database, abbreviation 1, abbreviation 2 or by the EAN code.

 

If the article abbreviation or unit of measure does not exist, the items are not imported and an error message is displayed.

Address in the tree:

Script parameters:

PriceType - 0

1 - the net price is filled, 2 - the gross price is filled.

pic_9771

Picture: Input form

pic_9772

Picture: Sample Excel file

EKOKOM - Export do excelu 2021

Process number: EXP008

Script ID number: EXP023

File: EkokomToExc2021.pas

 

Script description: The script is run on the Packaging production - EkoKom function and is intended only for the legislation valid from 1 January 2021. It exports the calculated data to the current Excel report. The script automatically downloads the current Excel form for the specified period.

 

The script is intended only for the legislation valid from 1 January 2021.

Address in the tree:

Script parameters:

MyFirm -

Number of the own company.

NoOfOrder -

Fills the Your order number field in Excel.

EkokomId -

Fills the EKOKOM - ID field in Excel.

Correction - No

The value Yes adds the text Corrective to the 1st page in Excel.

EmailInv -

Fills the E-mail for receiving invoices field in Excel.

ContactPerson -

Fills the Contact person field in Excel.

Phone -

Fills the Phone field in Excel.

Fax -

Fills the Fax field in Excel.

Email -

Fills the E-mail field in Excel.

ExistingFile -

If not filled in, the Excel file is downloaded from the EKOKOM website. The path to the file can be entered in the parameter if the file is already saved (e.g. C:\EKOKOM).

Price list export

Process number: CIS008a

Script ID number: FZAK047

File: PriceListExport.pas

Script description: The script exports price list items (the Definition items part). The user selects the file type and enters a name. Information about the number, article abbreviation, unit of measure, quantity and prices is exported. Optionally, fields for the article description, its EAN, selling price, abbreviation 2 or its language name can also be checked.

Address in the tree:

Script parameters:

No parameters.

Price list import

Process number: CIS008a

Script ID number: FZAK046

File: PriceListImport.pas

Script description: The script imports price list items in xls or xml format. The records from the file are imported as items into the Other price list items part (the Price lists module). When importing from Excel, the user maps the columns in the form displayed after the function is run. The user chooses whether to import by article number, abbreviation 1, abbreviation 2 or EAN, and whether to import the net price or the gross price. The flags Apply price list item only when selling in the entered unit, Only for a multiple of the quantity and Do not apply additional discounts can be set, and Valid from-to can also be set.

 

The mapped fields can be saved using the Save settings button.

 

When importing from an xml file, the information is not mapped.

 

If the Price list confirmation after import field is checked, the price list is confirmed automatically.

 

If the imported Excel file does not have column names in the first row, but the first row already contains imported data, the First row does not contain column names field must be checked.

 

If an already existing combination of article, quantity and unit of measure is found in the price list items, checking the Overwrite price for combination of article, quantity, unit field overwrites the original values.

 

When a master card is imported into a price list and the Import all master card variants field is checked, all its variants are imported at the same time.

 

During mapping, it is necessary to check whether any column is incorrectly set for multiple data items. In such a case, the import does not take place.

Address in the tree:

Script parameters:

RewriteItems - No

Yes - allows items to be overwritten if the combination of article, unit of measure and quantity is already found in the price list. No - imports only items that do not yet exist in the price list for the given article, unit of measure and quantity.

ConfirmPriceList - No

Yes - confirms the price list after the import.

ImportMasterCardVariants - No

Yes - If the article is of the master card type, all variants are imported.

FirstRowIsData - No

Yes - The imported Excel file does not contain column names.

Linked Graphics K2_SKRIPT

Picture: Form after running the Price list import script with mapped columns (see the Excel picture below)

pic_7236

Picture: Sample Excel file (without column names)

pic_7237

Picture: Sample Excel file with column names

Book Contents

Book Index

Consignment note

Process number:

Script ID number: FZAK048

File: CMR.pas.pas

Script description: The script creates a Consignment note document. The file is created in xls format. The consignment note template (CMR.xls) is stored in the K2/SupportFiles/Lang5 directory. The script can be run on release notes or on delivery notes out.

Address in the tree:

Script parameters:

FilePath -

Setting of the file location

Freighter - 0

Customer card number of the carrier. Fills box 16.

InstructionCMR - CMR

Type of comment which, if entered on the document, causes the content of the comment to be displayed in the Sender's instructions (field 13).

OpenExcel - Yes

Excel is opened automatically. If the script is run for multiple records, the corresponding number of Excel files is opened.

Language - 0

If it is run from a page other than page 0 (or the List tab in the universal interface) and Language = 0, the Excel file is displayed in the customer's language (the Language field in Suppl./Cust.).

If it is run from a page other than page 0 (or the List tab in the universal interface) and Language has a value other than zero, the Excel file is printed in the language according to the value of the Language parameter.

If it is run on page 0 (or the List tab in the universal interface), the Excel file is printed in the language according to the value of the Language parameter. The customer's language is not taken into account.

Note: Only the article name, unit of measure and names of attached documents are printed in the required language.

Book Contents

Book Index

Notification of an invoice before maturity or overdue

Process number:

Script ID number: FZAK049

File: OverdueInvoiceNotification.PAS

Script description: The script allows you to send notifications about invoices that are a certain number of days overdue or before maturity. The script runs in the task scheduler and is linked to a script action in the notification.

Address in the tree:

Script parameters:

NotifyActionForDayBeforeDuteDate -

Notification action number for maturity notifications

NotifyActionForDaysOfDelay -

Notification action number for overdue notifications

NumberOfDaysBeforeDuteDate -

Number of days before maturity

NumberOfDaysOfDelay -

Number of days overdue

WatchNumberOfDayBeforeDuteDate - No

Turns on monitoring of days before maturity

WatchNumberOfDaysOfDelay - No

Turns on monitoring of days overdue

Book Contents

Book Index

Deactivation of price lists

Process number: CIS008a

Script ID number: FZAK052

File: DeactivationOfPriceLists.pas

Script description: The script can only be run over the Price lists book. The script goes through the price lists and, if it finds a price list whose validity has ended, it unchecks the Active and Direct price entry fields.

Address in the tree:

Script parameters:

no parameters

Book Contents

Book Index

Bulk change of pricelists

Process number: CIS008a

Script ID number: FZAK052

File: PriceListBulkChange.PAS

Script description:

The script can only be run over the Price lists book. For the marked price list documents, or those in the container or in the filter, a form is opened with a list of available actions in the ribbon.

 

Pressing the functions in the ribbon displays the corresponding form for each action, and after entering the conditions and values, a record is created in the Action table. The Action table can contain several records with combinations of different or identical actions. For the Change discount and Definition deletion actions, it is possible to load the current definition from the price list. If the cursor is on a price list record in the Definition part, this record is preset for the subsequent Change discount or Definition deletion action after pressing the Load current definition button. The Definition deletion action has two buttons: one for loading the Item source, the other for loading the Price source.

 

If it is an action in which conditions are entered (e.g. Change discount, Definition deletion) and this condition is found in the changed price lists, then after pressing the Change price lists button, the price lists are changed according to the required values. The script gradually processes all rows. The list of changed, added or deleted records is displayed in the form log named List of changes made. If a condition is entered that is not found in the changed price lists, the corresponding information is displayed in the List of changes made form.

Address in the tree:

Script parameters:

no parameters

After the script is run, an empty form is displayed with a menu of the actions offered by the script (top bar/ribbon).

Linked Graphics K2_SKRIPT

Picture: Form after running the script

The following actions are available in the menu:

Change discount

After pressing the Change discount function, the Change of discount in definition. form is displayed. In the form, the user sets a condition; when it is met/found in the price lists marked for the bulk change, the new discount set in the New value part is applied.

The Load current definition button is used to quickly fill in the form according to the selected definition. The button is active only if the script is run over one of the changed price lists on the Definition tab. After pressing the button, the form values are filled in according to the definition on which the cursor is positioned.

Example: There are several price lists with the product key Chocolates with a 12% discount.

Linked Graphics K2_SKRIPT

Picture: Price list with the product key Chocolates with a 12% discount.

For these price lists, we need to change this discount to 10% in bulk. We mark the relevant price lists and run the script. After pressing the Change discount action, we set the conditions Product key and 12% and the new discount of 10%, or we press the Load current definition button.

Linked Graphics K2_SKRIPT

Picture: Definition of conditions and the new discount

After pressing the OK button, a new record is inserted in the Action part. After pressing the Change price lists button, the discount for the product key Chocolates is changed to the required value of 10% in the changed price lists, and a log is displayed in the List of changes made form with a recapitulation of the changes made.

Linked Graphics K2_SKRIPT

Picture: List of changes made form

Linked Graphics K2_SKRIPT

Picture: Price list with the changed discount

Adding definition

After pressing the Adding definition action, the same form is displayed as when pressing the Ins key in a price list record in the Price lists module in the upper table on the Definition tab. By setting the values in this form and then running the script with the Change price lists button, the definition is added to all price lists over which the action is performed.

Linked Graphics K2_SKRIPT

Picture: Adding definition

Definition deletion

After pressing the Definition deletion action, a form is displayed with a selection of conditions for deleting the definition. The form is divided into the Item source and Price source conditions. If both conditions are checked and entered, the definition that meets both conditions is deleted. It is also possible to set only one condition, i.e. either only the condition for Item source or only for Price source.

The Load current definition button for both conditions is used to quickly fill in the form according to the selected definition. The button is active only if the script is run over one of the changed price lists on the Definition tab. After pressing the button, the form values are filled in according to the selected definition on which the cursor is positioned.

Linked Graphics K2_SKRIPT

Picture: Form of the Definition deletion action

Example: If the conditions for deleting the definition are set as in the picture, all definitions with the product group Beverages that at the same time have the value Catalogue price set in the Price source field are deleted.

Changing the price list

After pressing the Changing the price list action, a form is displayed in which the original price list to be replaced by a new price list is defined.

Linked Graphics K2_SKRIPT

Picture: Changing the price list form

New item

This action gradually adds article cards to the price list records, into the Other price list items part on the Definition tab. After pressing the action, a form is displayed for adding another price list item, with the option to select an article and to set other information such as the price, discount, quantity, validity from-to and more.

Linked Graphics K2_SKRIPT

Picture: Form for inserting an item into the Other price list items part

Item deletion

After running the Item deletion action, a list of articles is displayed. If the user marks article cards with an asterisk, then after confirming the execution of the action, these article cards will be deleted from the price lists if they are found in the price lists in the Other price list items part on the Definition tab.

Linked Graphics K2_SKRIPT

Picture: List of articles in the price list in the Other price list items part

Linked Graphics K2_SKRIPT

Picture: Selection of articles for deletion (marked with an asterisk)

Linked Graphics K2_SKRIPT

Picture: Marked article cards intended for deletion

Change VAT rate

The action is intended for cases where the VAT rate changes on article cards and at the same time the article cards are added to the price list in the Other price list items part, or Original price source = Not entered is entered in the price list definition. If an article is entered in the price list in this way, neither the VAT rate change nor the price list recalculation changes this rate automatically. The change must be made precisely with this action.

Note: For other ways of entering items into the price list, this action is not needed, and the subsequent price list recalculation ensures the currently valid VAT rate.

Example Article A has a rate of 15%. If the article is defined in the Definition and the Original price source is Not entered, and the valid rate at the time the price list is created is 15%, the net and gross prices are calculated according to this rate.

Linked Graphics K2_SKRIPT

Picture: Definition of the article price via Original price source = Not entered

If the VAT rate changes on the Article A card, the price list recalculation in this case (i.e. Original price source = Not entered) does not recalculate the rate, and it is necessary to run the Change VAT rate action. After it is run over this price list, the article rate is recalculated.

Linked Graphics K2_SKRIPT

Picture: Rate change after performing the Change VAT rate action

The procedure is similar if the article is inserted into the price list in the Other price list items part. In this case too, the Change VAT rate action must be run so that the VAT rate is updated according to the article card.

Linked Graphics K2_SKRIPT

Picture: Definition of an article in the Other price list items part

Only after running the Change VAT rate action is the VAT rate recalculated.

Linked Graphics K2_SKRIPT

Picture: Result after running the Change VAT rate action