Finances
Banker's order from the Invoice in filter
Process number: FIN003 |
Script ID number: FFIN040 |
File: INVOICE_IN_ORDER.PAS |
Script description: The function is used for quick creation of a banker's order from a container of invoices in, advances provided, payroll payables and other liabilities. |
||
Address in the tree: [Finances] [Functions] [Finances] [Bank] [Wages] [Payroll payables] |
||
Script parameters:
AdvancesProvided - No Yes - processes advances provided if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables. |
BookOfBo - Abbreviation of the book in which the banker's order is created. |
DateDue - 0 Due date. The parameter is not taken into account if the parameter NewDailyOrder = Yes. |
DaysToMat - 0 Number of days by which the payment date is shifted. |
InvoicesReceived - Yes No - processes invoices in if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables. |
NewDailyOrder - No Yes - inserts the documents into orders according to the due date; No - inserts all documents into one order. |
OtherLiability - No Yes - processes other liabilities if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables. |
PayrollLiab - No Yes - processes payroll payables if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables. |
The function is used for quick creation of a banker's order. Invoices in (advances provided, payroll payables, other liabilities) from the current data module (marked with asterisks, from the container, from the book) are loaded into the order. The due date of the order is set by default according to the current date.
Mark with an asterisk the documents in the book of invoices in (advances provided, payroll payables, other liabilities) that you want to pay from one bank account. Over these documents, run the script Banker's order from the PF, VZ, MZ and OV filter. Select the bank account book in which you want to create the order. If you do not want to pay the documents exactly on the due date but earlier or later, set the "DaysToMat" parameter as well. Enter the number of days by which you want to shift the payment date. A positive value means that the payment will be made x days before the due date, a negative value means that the invoice will be paid x days after the due date.
After the function is started, a message is displayed about the number of documents in the filter, stating for how many documents payment can be made. An obstacle to payment may be finding that the document has already been paid, the amount to be paid is negative, or the supplier's bank account is not entered.
The result is one or more banker's orders created in the selected book. After the order is created, information about the documents that could not be inserted into the order is displayed.
Export of receivables for KB
Process number: FIN015 |
Script ID number: FFIN057 |
File: FAV_ExpKBSUM.PAS |
Script description: The function is used to create a message in the ckm format required by Komerční banka within its Electronic pledge of receivables service. It is run from the Open items as at book, where the date for the evaluation is set, and then the script is run. The script creates a message (file) containing the data required by KB from invoices out and other receivables. The data are created only from invoices out/other receivables that are unpaid and not cancelled. |
||
Address in the tree: [Finances] [Open items] [Export of receivables for bank] |
||
Script parameters:
NoOfContract - cisloZsml Number of the pledge agreement. |
FilePath - Place where the created file is saved.
|
FileName - Name given to the created file.
|
Export of receivables for ČSOB bank
Process number: FIN015 |
Script ID number: FFIN058 |
File: FAV_ExpCSOB.PAS |
Script description: The function is used to create a message in the XLS format required by ČSOB bank within its Import of receivables service. It is run from the Open items as at book, where the date for the evaluation is set, and then the script is run. The script creates a message (file) containing the required data from invoices out and other receivables. The data are created only from invoices out and other receivables that are unpaid and not cancelled. |
||
Address in the tree: [Finances] [Open items] [Export of receivables for bank] |
||
Script parameters:
DateOfCreate Date of creation of the file |
NoOfContract - cisloZsml Number of the pledge agreement. |
FilePath - Place where the created file is saved. |
FileName - Name given to the created file. |
Export of receivables for ČS
Process number: FIN015 |
Script ID number: FFIN061 |
File: FAV_ExpCS.PAS |
Script description: The function is used to create a message in the csv format required by Česká spořitelna bank for the export of receivables. It is run from the Open items as at book, where the date for the evaluation is set, and then the script is run. The script creates a message (file) containing the required data from invoices out and other receivables. The data are created only from invoices out and other receivables that are unpaid and not cancelled. |
||
Address in the tree: [Finances] [Open items] [Export of receivables for bank] |
||
Script parameters:
DateOfCreate Date of creation of the file |
NoOfContract - cisloZsml Number of the pledge agreement. |
FilePath - Place where the created file is saved. |
FileName - Name given to the created file. |
UserRefNo - Yes Exports the reference number |
DateOfContract Contract date |
SupplementNo Contract Addendum Number |
Export of receivables for CITI
Process number: FIN015 |
Script ID number: FFIN062 |
File: FAV_ExpCITI.PAS |
Script description: The function is used to create a message in the xls format required by CITI bank for the export of receivables. It is run from the Open items as at book, where the date for the evaluation is set, and then the script is run. The script creates a message (file) containing the required data from invoices out and other receivables. The data are created only from invoices out and other receivables that are unpaid and not cancelled. |
||
Address in the tree: [Finances] [Open items] [Export of receivables for bank] |
||
Script parameters:
DateOfCreate Date of creation of the file |
LoanNumber - Export number. It is filled into the Loan Number column in Excel. Number of the pledge agreement. |
FilePath - Place where the created file is saved. |
FileName - Name given to the created file. |
Homebanking
HB - banker's order
Process number: FIN003, ZAS015 |
Script ID number: FFIN052 |
File: HB_ORDER.PAS |
Script description: The script is used to create banker's orders for all bank systems in use. |
||
Address in the tree: [Finances] [Bank] [Homebanking] [Banker's orders] |
||
The parameters are described in the documentation Finances / Bank / Homebanking / Export of banker's order.
HB - bank statement
Process number: FIN002, ZAS015 |
Script ID number: FFIN053 |
File: HB_STATEMENT.PAS |
Script description: The script is used to import bank statements of all systems in use into IS K2. |
||
Address in the tree: [Finances] [Bank] [Homebanking] [Bank statements] |
||
The parameters are described in the documentation Finances / Bank / Homebanking / Import and matching of bank statement.
HB - grouping of items
Process number: FIN003 |
Script ID number: FFIN054 |
File: HB_GROUPORDER.PAS |
Script description: The script is used to group payments to individual suppliers within one order. The script form is described in the documentation Finances / Bank / Homebanking / Grouping of items. |
||
Address in the tree: [Finances] [Bank] [Homebanking] [Banker's orders] |
||
The parameters are described in the documentation Finances / Bank / Homebanking / Grouping of items.
HB - set matching of bank statement items
Process number: FIN002 |
Script ID number: FFIN060 |
File: HB_GROUPORDER.PAS |
Script description: The script can be used to enter reference numbers that you want to exclude from matching by the HB - bank statement script. The entered reference numbers will not be searched for in orders. |
||
Address in the tree: [Finances] [Bank] [Homebanking] [Bank statements] |
||
Script parameters:
No parameters. |
HB - Signing of order I.CA
Process number:not assigned |
Script ID number: FFIN055 |
File: HB_SignIca.pas |
Script description: The script can be used to add a 2nd signature to an exported order (file) |
||
Address in the tree: [Finances] [Bank] [Homebanking] [Banker's orders] |
||
Script parameters:
No parameters. |
HB - Configurator of bulk payments
Process number: |
Script ID number: FFIN064 |
File: HB_RefNoLoaderConfig.PAS |
Script description: The script can be used to set the configuration of bulk payments. The script can save it to or load it from an external file, depending on which parameter is entered. |
||
Address in the tree: |
||
Script parameters:
InputFile Parameter for loading a saved configuration from a file. |
OutputFile Parameter for saving the configuration to a file. |
Matching of payments by card
Process number: FIN008, ZAS015 |
Script ID number: FFIN019 |
File: PARPLKAR.PAS |
Script description: The function adds a comment to each cash document from the filter containing a link to the bank statement with the payment from the payment card operator. At the same time, the function creates two items in the bank statement whose amount corresponds to the difference between the sum of the amounts of the cash documents from the filter and the amount of the matched bank statement item. |
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
ArticleCode Article code that is filled into the bank statement items (into the changed item as well as the newly created ones). |
Code1 Code 1 that is filled into the bank statement items (into the changed item as well as the newly created ones). |
Code2 Code 2 that is filled into the bank statement items (into the changed item as well as the newly created ones). |
ContractCode Contract code that is filled into the bank statement items (into the changed item as well as the newly created ones). |
CostCentre Cost centre that is filled into the bank statement items (into the changed item as well as the newly created ones). |
Device Device that is filled into the bank statement items (into the changed item as well as the newly created ones). |
Officer Officer who is filled into the bank statement items (into the changed item as well as the newly created ones). |
Ucet_Prijmu - 311000 Account that is filled into the bank statement item of the receipt type. |
Ucet_Vydeje - 568000 Account that is filled into the bank statement item of the expenditure type. |
Matching of card payments with the statement
Process number: FIN008, ZAS015 |
Script ID number: FFIN059 |
File: CardPaymentPairing.PAS |
Script description: Based on the statement of the payment card provider (from Česká spořitelna - xml format), the function makes it possible to split a bank statement item into individual payments and match them with cash / internal documents. For each card payment, a receipt item in the amount of the payment and an expenditure item in the amount of the card payment fee are created on the statement. The function is run over a bank statement item (type P or N). After starting, it is necessary to select the xml file with the payment card statement. The function form is displayed, where the left part shows the unmatched items of the payment card statement and the right part shows the cash/internal documents that have not been matched yet. The cash/internal documents are automatically assigned to the statement items based on the reference number. The items can also be matched manually. After the function form is confirmed, the BS item is split into items according to the card statement, and a comment with the bank statement number is inserted into the matched cash/internal documents. |
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
CardCompanyBacc Bank account of the payment provider. |
CardCompanyBank Bank code of the payment provider. |
CashbackAccount Account for cash withdrawal. |
CurrentUFContext User interface context (do not enter). |
DocBook Books of cash / internal documents for card payment (separated by a semicolon). |
DocType - 2 Document type for card payment: 1 - internal document, 2 - cash document. |
FeeAccount Fee account. |
FileMask - *.xml File mask. |
IncomeAccount Income account. |
InputFileType - -1 Input file type. |
PathToFile Directory with input files. |
Cash Discount
Update terms of payment in sales orders and purchase orders
Process number: FIN007 |
Script ID number: FFIN050 |
File: SKONTO_CHANGE_BY_BAZ.PAS |
Script description: The function updates the payment terms on unconfirmed sales orders or orders if the payment terms on the card of the selected supplier/customer change. The function must be run on a container of sales orders or orders. |
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
No parameters. |
Credit notes
Mutual deduction of advance and credit note
Process number: EXP014 |
Script ID number: FEXP019 |
File: ADV_MutualDeduction.PAS |
Script description: The script is used for mutual deduction of an advance and a credit note. The script can be run over one advance credit note or in bulk over a container of advance credit notes or over documents marked with asterisks. |
||
Address in the tree: [Finances] [Credit notes] |
||
Script parameters:
CorrTaxTypes - No Yes - an advance and a credit note with different tax types can be mutually deducted (used for Slovak legislation). |
CheckActualRate - No Yes - it is checked whether the advances have the same current exchange rate; No - it is checked whether the advances were issued with the same exchange rate. |
Cancel mutual deduction of advances and credit notes
Process number: EXP014 |
Script ID number: FEXP020 |
File: ADV_MutualDeductionC.PAS |
Script description: The script is used to cancel the mutual deduction of an advance and a credit note. |
||
Address in the tree: [Finances] [Credit notes] |
||
Script parameters:
No parameters. |
Cancel advances - CTD
Process number: EXP014 |
Script ID number: FEXP018 |
File: ADV_StornoODD.PAS |
Script description: The script is used to cancel an unpaid advance - credit note. The original advance is then offered for deduction again. |
||
Address in the tree: [Finances] [Credit notes] |
||
Script parameters:
No parameters. |
Penalization
Penalization - creation of penalty invoices
Process number: EXP012 |
Script ID number: FEXP004 |
File: InvoicePenalty.PAS |
Script description: The script creates penalty invoices for invoices and other receivables. In the script form, the documents to be penalized can be filtered according to the specified criteria. It creates cross-references between the penalty invoice and the penalized invoice and between the payment and the penalty invoice. |
||
Address in the tree: |
||
Script parameters:
ArticleName - OTH.GOODS PENALTY Article abbreviation to be used when creating penalty invoices. |
BookForPenalInvoices Abbreviation of the book in which the penalty invoices are to be created. The entered book is preset in the form for creating penalty invoices. |
DueDateP Due date for the created penalty invoices. If not entered, it is calculated from the current date + the number of due days on the customer card. |
Reminders
Automat for creating and sending reminders
Process number: EXP011 |
Script ID number: FEXP017 |
File: RemindersCreateAndSend.PAS |
Script description: The script creates reminders according to the specified configuration and sends them by e-mail, via data box, or both. In the script, it is necessary to set the ReminderConfigGuid parameter with the set configuration of reminders and the RemStatusSended parameter for entering the abbreviation of the status for sent reminders. In the script, you can set the ReminderReportGuide parameter, which sets the Guide of the Reminder report to be sent to the customer. The AttachmentDocType parameter ensures that a copy of the reminded invoice, stored in DMS in the specified document type on the invoice, is sent together with the reminder. The DocumentType parameter makes it possible to save the sent reminder report to DMS for the reminder document. In the script, you can set the sending of script notifications using the NotificationActionId parameter with the setting of the script notification subtype. The notifications will be sent to the contact person specified in the NotificationContactPersonID parameter. After the reminder is sent, an activity about the sent reminder is created. |
||
Address in the tree: |
||
Script parameters:
ActivityType = REM Type of activity linked to the reminder |
AttachmentDocType = PDFDOC Document type for attachments in DMS that are attached to the sent reminder. E.g. if a .pdf with a copy of the printed invoice is stored with the invoice, this attachment is attached to the e-mail (data box message) together with the sent reminder. |
AttchmentFileName = Upomínka - Zkratka firmy Text used as the name of the file attached to the e-mail. The protocol for replacing text with field values works for this parameter. You can therefore enter text in which field names (or link paths) are given in square brackets, and the actual value of the given field is substituted for them. |
CompanyID = 0 Forces switching of the company. The value 0 means that the current own company is used. |
DocumentType Document type in DMS for attaching the sent PDF with the reminder to the reminder document in K2. |
InteractiveDataBox = No Yes = when sending, the client for sending is displayed. |
InteractiveMail = No Yes = when sending, the client for sending is displayed. |
MailType = EMAIL Address type. |
Mode = 1 Mode: 1-create and send, 2-create and do not send, 3-only send the current records. |
NotificationActionId = 0 Subtype of the script notification. |
NotificationContactPersonID = 0 Identification number of the contact person for notifications. |
PostEnvelopeBookForISDS Book of letter mail for sending to the data box. The parameter must be set when sending via data boxes, otherwise sending via data boxes does not work. |
ReminderConfigGuid Configuration GUID of the reminders. Mandatory parameter for the script to work. |
ReminderReport = REM_DOC01.AM Reminder report that is sent to the customer. |
ReminderReportGuide GUID of the reminder report that is to be sent to the customer. |
RemStatusCreated = 0 Abbreviation of the reminder status for created reminders. |
RemStatusSended = 0 Abbreviation of the reminder status for successfully sent reminders. Mandatory parameter for the script to work. |
SendVia = 2 Send via: 1-Email, 2-Mailbox, 3-Both |
SubjectOfMail = Upomínka č. Parameter for setting the e-mail subject. The protocol for replacing text with field values works for this parameter. You can therefore enter text in which field names (or link paths) are given in square brackets, and the actual value of the given field is substituted for them. |
SuperiorActivityId = 0 Superior Activity ID |
TextForAnnotation Text used for the annotation of the message in the data box. |
TextForMail Text used in the e-mail. The protocol for replacing text with field values works for this parameter. You can therefore enter text in which field names (or link paths) are given in square brackets, and the actual value of the given field is substituted for them.
The text may contain %ZkratkaDodatkuMandanta%, which is replaced with the text of the given client addendum, including the corresponding language version. The text of the addendum may again contain data module fields in [ ]. |
Import of exchange rate list
Process number: FIN009 |
Script ID number: FFIN043 |
File: EXCHANGELISTIMPORT.PAS |
Script description: Imports currency exchange rates from the specified web address into the Currencies book. |
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
AktDatum - No Yes - load the exchange rate list as at today's date and save it with the list date; No - load yesterday's exchange rate list and save it with today's date. |
CompanyId - 0 Number of the own company - entered only if the own company uses its own exchange rate list. |
FromToDate - No Yes - you can specify the "from" date and the "to" date. All exchange rate lists for this period will be downloaded; No - the exchange rate lists are downloaded from the beginning of the year until today. |
ListDate - 0.0.0000 Date as at which the exchange rate list is to be downloaded. |
PathExList - K_CURR.TXT Path to the exchange rate list downloaded from the web - by default in the user directory. |
ProxyAuthorizat - No Yes - the proxy requires authorization; No - it does not. |
ProxyPassword Password. |
ProxyPort - 0 Proxy port. |
ProxyServer Proxy server. |
ProxyUsername User name. |
ShowLog - No Yes - display messages about errors and exceptions; No - do not display. |
ShowMessages - No Yes - display script messages; No - do not display. |
ReWrite - No Yes - if an exchange rate list already exists in K2 as at the date specified for downloading the list, the rate as at this date is overwritten; No - it is not overwritten. |
WWW - http://www.cnb.cz/cs/financni_trhy/devizovy_trh/kurzy_devizoveho_trhu/denni_kurz.txt Internet address referring to the exchange rate list. |
Import of the CNB exchange rate list of the base currency - monthly
Process number: FIN009 |
Script ID number: FFIN065 |
File: ExchangeListImportMonthlyCZ.PAS |
Script description: Intended for use as a scheduled task. Imports the rate into the Currencies book according to the setting of the WorkDayPositionInMonth parameter. The script can only be run after 14:36, i.e. after the exchange rate list for the current day has been published. The script requires the Calendar of days off and holidays to be set in the client parameters. According to the set WorkDayPositionInMonth parameter, it is tested whether it is the right day to download the exchange rate list. When run from the Functions and reports ribbon, a log named K2Export.txt is saved to the user directory.
|
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
WorkDayPositionInMonth - 0 Value 0 - imports the rate valid on the last working day of the month with the date of the 1st of the following month. Value 1 - imports the rate valid on the first working day of the month with the date of the 1st of the current month.
|
Import of the exchange rate list of other currencies
Process number: FIN009 |
Script ID number: FFIN063 |
File: ExchangeListImportOther.pas |
Script description: Imports the exchange rates of other currencies into the Currencies book from the address https://www.cnb.cz/cs/financni-trhy/devizovy-trh/kurzy-ostatnich-men/kurzy-ostatnich-men/. The rates are published once a month, always as at the last day of the month. |
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
AktDatum - No Yes - load the exchange rate list as at today's date and save it with the list date; No - load yesterday's exchange rate list and save it with today's date. |
CompanyId - 0 Number of the own company - entered only if the own company uses its own exchange rate list. |
FromToDate - No Yes - you can specify the "from" date and the "to" date. All exchange rate lists for this period will be downloaded; No - the exchange rate lists are downloaded from the beginning of the year until today. |
ListDate - 0.0.0000 Date as at which the exchange rate list is to be downloaded. |
ProxyAuthorizat - No Yes - the proxy requires authorization; No - it does not. |
ProxyPassword Password. |
ProxyPort - 0 Proxy port. |
ProxyServer Proxy server. |
ProxyUsername User name. |
ReWrite - No Yes - if an exchange rate list already exists in K2 as at the date specified for downloading the list, the rate as at this date is overwritten; No - it is not overwritten. |
ShowLog - No Yes - display messages about errors and exceptions; No - do not display. |
ShowMessages - No Yes - display script messages; No - do not display. |
WWW - https://www.cnb.cz/cs/financni-trhy/devizovy-trh/kurzy-ostatnich-men/kurzy-ostatnich-men/ Internet address referring to the exchange rate list for other currencies. |
Import of exchange rate list Ukraine
Process number: FIN009 |
Script ID number: FFIN064 |
File: EXCHANGELISTIMPORTUKRAINE.PAS |
Script description: Imports the rates of the Ukrainian exchange rate list from the specified web address into the Currencies book. It always fills in the date from the file. |
||
Address in the tree: |
||
Script parameters:
AktDatum - No Yes - load the exchange rate list as at today's date and save it with the list date; No - load yesterday's exchange rate list and save it with today's date. |
CompanyId - 0 Number of the own company - entered only if the own company uses its own exchange rate list. |
FromToDate - No Yes - you can specify the "from" date and the "to" date. All exchange rate lists for this period will be downloaded; No - the exchange rate lists are downloaded from the beginning of the year until today. |
ListDate - 0.0.0000 Date as at which the exchange rate list is to be downloaded. |
PathExList - K_CURR.TXT Path to the exchange rate list downloaded from the web - by default in the user directory. |
ProxyAuthorizat - No Yes - the proxy requires authorization; No - it does not. |
ProxyPassword Password. |
ProxyPort - 0 Proxy port. |
ProxyServer Proxy server. |
ProxyUsername User name. |
ShowLog - No Yes - display messages about errors and exceptions; No - do not display. |
ShowMessages - No Yes - display script messages; No - do not display. |
ReWrite - No Yes - if an exchange rate list already exists in K2 as at the date specified for downloading the list, the rate as at this date is overwritten; No - it is not overwritten. |
WWW - https://bank.gov.ua/NBUStatService/v1/statdirectory/exchange?json Internet address referring to the exchange rate list. |
Import exchange rates - Poland
Process number: FIN009 |
Script ID number: FFIN064 |
File: ExchangeListImportPolandDaily.PAS |
Script description: Imports the rates of the Polish exchange rate list from the specified web address into the Currencies book. It always fills in the date from the file. |
||
Address in the tree: |
||
Script parameters:
AktDatum - No Yes - load the exchange rate list as at today's date and save it with the list date; No - load yesterday's exchange rate list and save it with today's date. |
CompanyId - 0 Number of the own company - entered only if the own company uses its own exchange rate list. |
FromToDate - No Yes - you can specify the "from" date and the "to" date. All exchange rate lists for this period will be downloaded; No - the exchange rate lists are downloaded from the beginning of the year until today. |
ListDate - 0.0.0000 Date as at which the exchange rate list is to be downloaded. |
ProxyAuthorizat - No Yes - the proxy requires authorization; No - it does not. |
ProxyPassword Password. |
ProxyPort - 0 Proxy port. |
ProxyServer Proxy server. |
ProxyUsername User name. |
ReWrite - No Yes - if an exchange rate list already exists in K2 as at the date specified for downloading the list, the rate as at this date is overwritten; No - it is not overwritten. |
ShowLog - No Yes - display messages about errors and exceptions; No - do not display. |
ShowMessages - No Yes - display script messages; No - do not display. |
WWW - https://api.nbp.pl/api/exchangerates/tables/a/ Internet address referring to the exchange rate list. |
Import of statutory interest rates
Process number: FIN014 |
Script ID number: FFIN059 |
File: ImpStatInterest.pas |
Script description: Fills the Legal latecharges code list according to the values filled in the file K2/SupportFiles\Legislation\CZE\Zakonny_urok.csv for a Czech company and from the file K2/SupportFiles\Legislation\SVK\Zakonny_urok.csv for a Slovak company. The .csv files are updated by K2. |
||
Address in the tree: [Finances] [Functions] |
||
Script parameters:
no parameters |