Skip to main content

How is the valued stock calculated?

Shopware 6 — Valued stock is calculated from current stock and goods receipts. Purchase prices are applied differently depending on the method (LIFO, FIFO, weighted average).

In general, the valuation is based on the stock currently in the warehouse and all goods receipts within a valuation period. The carry-over from the previous period (if available) also counts as a goods receipt. In the first valuation period, all goods receipts before the reporting day are taken into account accordingly.

The stock value (SV) is the total of quantity × purchase price of the goods receipts taken into account:

BW = Σ nᵢ · ekᵢ

Here, nᵢ is the quantity and ekᵢ is the purchase price of goods receipt i. The total is calculated over all N goods receipts taken into account (i = 1 to N).

For the calculation, the purchase prices on the goods receipt line items of the valuation period are used; however, only line items with a purchase price set are taken into account. If you increase stock via free goods receipts, you have to add the purchase price to the line items manually so that they are included in the valuation. For goods receipts from supplier orders, a purchase price is usually already stored.

If the prices of a goods receipt are in a foreign currency, the valuation uses their value in your shop's default currency. The conversion uses the exchange rate stored on the goods receipt. You can find out more in the article How can I purchase from suppliers in a foreign currency?.

For the portion of stock that cannot be assigned to a specific goods receipt, Pickware uses the product's current purchase price as the valuation basis. If no purchase price is stored on the product, the average price from the previous period's carry-over is used instead.

Depending on the valuation method, the valuation works as follows:

LIFO

Here it is assumed, as a simplification, that the newest goods, i.e. those received last (= last in), are removed from the warehouse first (= first out). The older goods receipts therefore remain in the warehouse and are added up for the calculation of the valued stock until the current stock is reached.

FIFO

Here, again as a simplification, it is assumed that the oldest goods, i.e. those received first (= first in), are removed from the warehouse first (= first out). The newer goods receipts therefore remain in the warehouse and are added up until the current stock is reached.

Weighted average

The current stock is multiplied by the weighted average price of the period. The price is calculated as follows:

ekØ = Σ (nᵢ · ekᵢ) ÷ Σ nᵢ

The weighted average price ekØ is therefore the total of quantity × purchase price of all goods receipts in the period, divided by the total of their quantities. In the example below for 2022: (100 × €5 + 50 × €4 + 70 × €6) ÷ 220 = €5.09.

Calculation example

For clarification, here is a concrete example.
​

Booking date

Booking type

Quantity

Purchase price

04.07.2022

Initial stock

100

€5

01.09.2022

Goods receipt

50

€4

15.11.2022

Goods receipt

70

€6

31.12.2022

Closing stock 2022

80

01.01.2023

Carry-over 2022

80

05.02.2023

Goods receipt

20

€7

10.05.2023

Goods receipt

30

€6.50

01.10.2023

Goods receipt

100

€3

31.12.2023

Closing stock 2023

110

01.01.2024

Carry-over 2023

110

Depending on which method was selected, the calculation works as follows:

LIFO

LIFO

Closing stock 2022

80*€5 = €400

Carry-over 2022

80 units at €5

Closing stock 2023

80*€5 + 20*€7 + 10*€6.50 = €605

Carry-over 2023

110 units at €5.50

FIFO

FIFO

Closing stock 2022

70*€6 + 10*4 = €460

Carry-over 2022

80 units at €5.75

Closing stock 2023

100*€3 + 10*€6.50 = €365

Carry-over 2023

110 units at €3.32

Weighted average

Weighted average

Closing stock 2022

(100*€5 + 50*€4 + 70*€6)
/ 220*80 = €407.27

Carry-over 2022

80 units at €5.09

Closing stock 2023

(80*€5.09 + 20*€7 + 30*€6.50 + 100*€3) / 230*110 = €498.44

Carry-over 2023

110 units at €4.53

Correcting an incorrect purchase price retroactively

A valued stock that has already been saved via Save as report is a fixed carry-over ("carry-over") into the next valuation period and is not recalculated retroactively.

If the underlying purchase price was incorrect — for example, because no purchase price was set on a stock booking and the product's current purchase price was therefore used as a fallback — this value cannot be edited directly in reports that have already been saved.

To correct the valuation, you have two options:

  • Remove the affected stock from the warehouse with a note and then perform a goods receipt with the correct purchase price. This corrects the valuation from the current point in time onward, but leaves previously saved reports from the past unchanged.

  • Delete all valued stocks since the time of the incorrect valuation and recreate them with the corrected purchase price.

Correcting the purchase price in the goods receipt

If a supplier's purchase price is not correct, you correct it in the goods receipt, not on the product. To do so, open the relevant goods receipt under Warehousing → Goods receipts and adjust the Unit price (net) on the line item.

If the goods receipt is already part of a saved valued stock, it is locked and can no longer be changed. In that case, clarify the correction outside of Pickware with your accounting department or rebuild the reports as described below.

Rebuilding reports

A saved report is the carry-over for the next valuation. If an incorrect value is saved in it, all following reports continue to calculate with it. Here is how to rebuild the reports:

  1. Export all saved reports as a CSV file so that you have a backup.

  2. Delete all reports starting from the first incorrect report.

  3. Recreate the reports year by year, each with the same reporting days and the same valuation method as before.

You proceed in the same way if you have accidentally deleted a report from a previous year.

Frequently asked questions

Why is a product valued at €0 even though the purchase price is correct?

There are two typical reasons for this. An already saved report valued the product at €0, and the quantity has not changed since: In that case, the value 0 is carried over from the carry-over, even if the purchase price on the product is now correct. In this case, rebuild the reports.

Or it is a variant without its own purchase price, for which inheritance from the main product has been disabled. Such variants are valued at €0. In that case, enter a purchase price on the variant.

Is reserved stock also valued?

Yes. The valuation covers the physical stock including reserved quantities, because the goods are part of your inventory assets until they leave the warehouse.

Did this answer your question?