Book Contents

Book Index

Recalculation

The Recalculation menu is intended for service interventions in cases where data has been corrupted in some way and it is necessary to recalculate cash desk balances, account turnovers and stock levels. With a larger volume of data, the run is expected to take overnight or over a weekend.

pic_102_2021.png

Picture: Opened menu of the Administrator – Recalculation module

When recalculating warehouses, it is important to rule out the possibility of negative stock levels. Negative stock levels can arise, e.g., by confirming release notes before confirming receipt cards, by releasing articles without entering receipt cards, or by swapping a specific article for another. We prevent this by not checking the Negative stock level allowed field on page 2 of the Article card. After a stock recalculation, the user is always warned about such levels. In such cases, the problem must be analysed and corrected, either by changing the confirmation date, by tracing the missing receipt cards, by correcting the articles (they may have been swapped), etc. This requires reviewing the primary documents and comparing them with the actual stock level in the warehouse.

Stock recalculation

The Stock recalculation function is used to check and correct stock records and warehouse prices. From the user's point of view, it is a single function, which internally consists of these partial recalculations:

As part of the stock recalculation, the ordered and reserved quantities are also recalculated, and the stock records for batch parameters are recalculated as well.

pic_1023_2024

Picture: Stock recalculation form

Description of fields:

Blocking period

The period up to which recalculations are blocked for the current own company.

Company

Displays the name of the current own company. The stock recalculation runs for this company unless the Recalculate all companies option is activated. The recalculation always processes warehouses and documents belonging to the given own company as well as warehouses without an own company entered.

Period from

The period from which the recalculation will be performed. Movements before this period are not recalculated. As a rule, we set the period following the blocking period. Blocked periods cannot overlap with recalculated ones – blocked periods cannot be recalculated.

Recalculate all companies

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

Container of articles

If this option is switched on, the recalculation runs on the current container of articles. If the option is not switched on, it runs on the entire Article code list.

Automatic creation of article queue for recalculation

When this option is switched on, the recalculation automatically selects the articles that need to be recalculated. These are articles that had a movement in the given period or that are in stock.

Other options

Expands the form and displays further recalculation options. However, these options are only accessible to users with the Administrator – Recalculation – Set / clear check boxes related with recalculations right. The field settings are not remembered; each time the function is started, the fields are set to their defaults. A registered point exists for changing the default field settings according to customer requirements.

 

Recalculate stock price on document items

Ensures recalculation and correction of warehouse prices on documents.

 

Insert the price from the invoice into the warehouse price on receipt cards

Ensures that the price from the confirmed invoice in is inserted into the warehouse price of the item.

 

Recalculate cost price on document items

Ensures recalculation of the cost price on documents.

 

Insert the price from the invoice into the cost price on receipt cards

Ensures that the price from the confirmed invoice in is inserted into the cost price of the item.

 

Calculate product price on job card

Calculates the product prices from the prices of items on page 4 of job tickets according to the costing formula.

 

Value faulty and recyclable products

If page 4 of a job ticket contains the same product as the job ticket header, but with a negative quantity and a different batch, these are faulty or recyclable products. They are valued according to how much material or other resources were consumed in their production (they are valued at a proportional price relative to the product price). The price is calculated only from the items placed before the faulty product item!

 

Recalculate all levels

If the warehouse price of a job ticket item changes, the article from the job ticket header is also recalculated, even though it may not originally have been included in the recalculation. The recalculation runs from materials through semi-finished products to products.

 

Calculate daily stock levels

Calculates daily stock levels of articles in warehouses both in quantity and in monetary value. The data is filled into the "DailyInventory" table.

Note: If daily balances need to be calculated for the first time, including blocked periods, the Recalculation of daily stock levels function must be run, which can be found in the tree menu in the Administrator / Recalculation section.

 

Do not recalculate stock records

If this option is checked, the recalculation does not correct the stock records. Stock tables are not deleted or filled.

 

Post changed documents to log

The error protocol will contain detailed information about the recalculation performed and the changed documents. Otherwise, the protocol contains only basic information about the start of the recalculation and information about negative stock levels.

 

Post warnings on more receipts per batch to log

Information about multiple receipts of one batch is written to the error protocol.

 

Post articles with negative stock level allowed to log

Off (default): situations where a negative stock level occurs for article cards that have the Negative stock level allowed option active are not written to the log. (Permission of a negative stock level in the Article data / warehouse item and on the Batches card is not evaluated.) The message about going negative that results from the accounting recalculation for the moving price is always displayed.

On: negative stock levels are written to the log even if the article card allows negative stock levels.

 

Write the recalculated article cards to the log (file in the user's directory)

Creates a file in the user directory with detailed information about the recalculated article cards (recalculation pass level, start and end of card processing, processing time).

 

Period count

The number of periods that will be recalculated from the set Period from. It can be used with a large volume of data for gradual recalculation period by period.

However, recalculations must always be completed up to the current period! When recalculating periods other than the current period, only turnovers are recalculated; the state of stock records is calculated only in the current period.

Note: If the recalculation function does not complete correctly for any reason, the user is asked the next time the function is started whether they want to continue the unfinished recalculation. Clicking the Yes button continues the interrupted processing; clicking the No button starts a new recalculation run.

Scheduling a recalculation run on the application server

The Schedule button can be used to schedule a one-off recalculation run on the application server (via the Task scheduler). The output of the action is a simplified protocol, which can be sent in the standard way using notifications (using the "Scheduled task" action). This protocol contains information about the run of the action and, on the 2 - Output tab, a simplified overview of errors as well as the number of the standard error protocol.

Recalculation of daily stock levels

The function is used to calculate daily stock levels in warehouses from the specified period. A period within blocked periods can also be entered. The purpose of this recalculation is a one-off calculation of daily balances, including in blocked periods.

For regular updating of daily balances, the Stock recalculation function with the Calculate daily stock levels option activated is then used.

pic_4274_2024

Picture: Recalculation of daily stock levels form

Recalculation of invoicing

The recalculation of invoicing includes:

pic_7953

Picture: Recalculation of invoicing and payments form

Recalculation of preliminary balance sheet

This function is used to recalculate turnovers and balances in the preliminary balance sheet. In the form, it is necessary to enter the period from which the recalculation is to be performed.

pic_871_UI.png

Picture: Recalculation of preliminary balance sheet form

Error logs

The book of error protocols records the start and progress of various user actions (recalculations, calculations, etc.) in the K2 program. Each such action is assigned to a certain protocol type. The display can be filtered to the required type only via Display settings by checking the Filter field and selecting the required protocol type.

Detailed data on the processed records and the course of each protocol can be displayed on the Protocol detail tab. The error protocol is interactive; from the individual items, buttons can be used to switch to the corresponding record in the program (each protocol type contains different buttons depending on the nature of the protocol and the information displayed). In some protocols, record filters (of documents, articles, serial numbers) can also be created. When creating filters of documents and articles, marking of records with asterisks is also taken into account.

Protocols can be deleted with the Delete logs button and then entering the Date to. Error protocols older than the specified number of days can be deleted using the Delete error logs shortcut, which can be run manually or set up as a scheduled task.

The book is available to users from the tree menu Administrator / Recalculation / Recalculation – error logs.

pic_1025_UI.png

Picture: Error logs – Display settings book

pic_1024_UI.png

Picture: Error protocol – Stock recalculation book

Stock recalculation

Description of selected columns:

Number

Numeric expression of the error type; it corresponds to the error (action) in the Description column. The column can be used for quick sorting by error type.

Type

Error protocol type.

Name

Error protocol name.

Parameters

 

Created by

Name of the user who created the error protocol.

Created on

Date and time the error protocol was created.

No. of warnings, Error count, Fatal errors

Number of warnings, number of errors and number of fatal errors.