Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Stock entries and batch tracking with FIFO and expiration dates

Get full traceability of every movement in your stock. How stock entries and batch tracking work in Shoporama, including FIFO picking, expiration dates, and lot traceability.

Reading time: about 38 minutes
Store owner

Stock entries and batch tracking give you full control and traceability over every movement in your inventory. You can see exactly when products came in, what they cost, when they were sold, and whether they belong to a specific delivery with its own batch number and expiration date. That is invaluable for accounting, audits, and day-to-day operations, and essential if you sell products with a shelf life.

This article explains how stock entries work in Shoporama, what batch tracking can do, how the two fit together, and how to get started. It is written for store owners who want to understand the system without diving into technical details.

What are stock entries?

A stock entry is a record of one specific movement in your stock. Every time a product is added to or removed from stock, an entry is created automatically with the quantity, cost price, sales price, date, any linked order, and location. Think of it as a ledger, just for your inventory.

The entries give you a complete history. You can always go back and see when a specific product came into stock, what you paid for it, and when it was sold. That is exactly the documentation you need when you close your books or when your accountant has questions.

When is a stock entry created?

Shoporama automatically creates stock entries in every situation where the stock quantity changes:

  • When a customer completes an order, a negative entry is created that deducts the product from stock
  • When a customer returns products, a positive entry is created that puts the product back in stock
  • When you adjust stock manually, for example after a stock count or for shrinkage
  • When you import stock quantities from a file
  • When stock is synchronized between several of your stores

You find the entries under Stock → Stock movements in the admin. The list shows all movements across your entire inventory with the newest at the top, and from here you can open and edit each entry if something was recorded incorrectly.

Stock movements in the Shoporama admin with the total stock value and the Quick restock field at the top, and the columns order number, product, movement with a red down arrow for sales, cost price, sales price, time, location, and batch
The Stock movements overview shows each stock entry with order number, product, movement, cost price, sales price, time, and location. At the top is the total value of your stock, calculated at cost price excl. VAT.

Tip

The entries form the basis for calculating your inventory value. Shoporama uses a weighted average of the cost prices on the entries, so you always have an accurate picture of what your stock is worth. Read more in the article on calculating inventory value.

Can I turn off stock entries?

Yes. Click the Settings button (the gear) at the top of Stock → Overview or Stock → Stock movements. In the Stock settings window, the Use stock management with entries checkbox is in the Stock management section. If you clear the checkbox and save, only the current stock quantity is updated, and no history of the individual movements is kept. Note that batch tracking is turned off at the same time, because batches build on the entries.

Important: We recommend turning off entries only if you have a very specific reason. Without entries, you lose traceability, and your inventory value cannot be calculated correctly. For the vast majority of stores, entries are a big advantage.

Additions and deductions: how to read the sign

All entries follow the same template, and the only thing that separates the two types is the sign in the Movement column. A positive number is an addition, meaning products coming into stock. A number with a minus in front is a deduction, meaning products leaving stock.

The direction is also shown with color and an arrow. An addition has a green up arrow and a plus sign in front, and a deduction has a red down arrow. This applies both on Stock → Stock movements and on the product's own pages Stock, Add to stock, and Adjust entries, so you can see at a glance whether products have come in or gone out.

Your current stock quantity is simply the sum of all entries on the product. If you have received 50 units, sold 12, and had 2 returned, there are three entries: +50, -12, and +2, and the product shows 40 in stock. That is why you should never "correct the stock figure" directly. You add a new movement, and the figure follows automatically.

The other columns tell you where the movement comes from and what it is worth:

  • Order no. is filled in when the movement belongs to an order, for example a sale, a credit note, or a cancellation. You can click straight through to the order. If the field is empty, the movement was made in your stock outside the order system, typically goods receiving or a stock count.
  • Cost price is the price per unit the product is booked at on that particular entry. Your inventory value is calculated from the cost prices on the entries.
  • Sales price is only filled in on deductions that come from a sale, and is the price excl. VAT the product was actually sold for. That way you can see both what the product cost and what it brought in on the same line.
  • Time is the moment the movement was recorded. It is also the date the entry keeps, even if you edit it later.
  • Location shows where the product is kept, if you use warehouse locations.
  • Batch is only shown when batch tracking is turned on, and links to the delivery the movement belongs to.

If the movement comes from a stock synchronization between several of your stores, From shared stock appears next to the quantity, and if it comes from an import file, it says From import. That way you know right away that the entry was not made by an employee but came in automatically.

What triggers a stock entry automatically

You rarely need to create entries by hand. Most of them happen on their own when you use your store as usual. Here are the situations that trigger each of the two types.

Entries that add stock

  • Goods receiving. When you register a delivery under Stock → Batches → Goods Receiving, the batch and the related addition are created in one and the same step.
  • Add to stock on the individual product. The Add to stock button at the top of the product, or at the bottom of the product's Stock page, opens a page with the product name as the heading and Add to stock above the form. Here you create an addition with the quantity and purchase price you enter. When you click Add to stock, you stay on the page, and below the form is Latest entries with the five newest movements on the product, so you can see that the addition went through. The link below the list takes you to the product's Stock page with all the entries.
  • Quick restock with barcodes. Under Stock, Quick restock, you scan the product's barcode or SKU and land directly on an addition for the right product. If the variant has its own code, the right variant is also preselected, so you only need to enter the quantity. If you scan the product's shared code on a product with variants, you choose the variant in the list yourself, and you cannot save until you have done so. Warehouse location and batch are selected in the same place, and the purchase price is prefilled with the variant's own cost price when the code matched a variant. See Quick restock.
  • Quick change in the stock overview. The Quick change field in the stock overview takes a change, not a final quantity. If you enter 5, 5 units are added, and you can process many products on one screen.
  • Returns and credit notes. When you credit order lines on an order, the product is put back in stock, and the addition gets the credit note's order number. If the product should not go back on the shelf because it is defective, check Don't add to stock, and no addition is created.
  • The customer's own return. If the customer returns products through your store, the product is put back in stock automatically if Automatically restock returned items is turned on in the return center settings (the Settings button on Orders → Return center). If you have also selected Do not restock the item until the return has been marked as received, the entry is created only when the package has physically arrived.
  • Canceling an order. If you set an order to canceled, all the order's products are put back in stock with one addition per order line, and the entries keep the order's number.
  • Importing a stock file. If you import a file with SKU and quantity, Shoporama compares it with the quantity in your store and books only the difference. If the file reports 30 units and you have 22, one addition of 8 is created.
  • Shared stock between several stores. If you run several online stores with the same products, the synchronization creates entries marked From shared stock.

Entries that deduct stock

  • Sale. By far the most common deduction. When the customer completes the order, each order line is deducted from stock right away, not when the package is shipped. The entry gets the order number and the actual sales price excl. VAT.
  • Exchange. An exchange creates two documents: a credit note for what the customer sends back, and a new order for what the customer gets instead. The returned product creates an addition, and the replacement product creates a deduction.
  • Reopening a canceled order. If you move a canceled order back to an active status, the products are deducted from stock again, so the stock figure reflects that the order will be fulfilled after all.
  • Manual reduction. A negative number in Quick change creates a deduction. This is the right way to book shrinkage, breakage, samples, and products you take out of stock yourself.
  • Stock count. If you change the stock quantity directly on the product (you can do this when you do not use warehouse locations), Shoporama calculates the difference and creates one entry for it. If you count 18 units on the shelf where the system says 23, a deduction of 5 is booked. For the count itself, you can print a count list from Stock → Overview, for example one supplier at a time. See Stock overview.
  • Import with a lower quantity. If your stock file reports fewer units than your store has, the difference is booked as a deduction, exactly as in the opposite situation.

Good to know

Because the deduction happens when the order is placed and not when it ships, your stock figure is always the quantity you can actually sell. That is also why a sale can take stock below zero if you have allowed it on the product. The negative figure is not an error, but a back order you still need to get in.

Do it with the AI assistant

If you have connected Claude to your store, the AI can also add products to stock, for example when a delivery has arrived. The stock figure is set to the quantity you write, and the difference is recorded as a stock entry. For example, write: "Our tea delivery has arrived: 40 of each of the five new teas. Add them to stock."

Example of a conversation with Claude (simplified): the stock figure is set on five products in one message, and each change is recorded as a stock entry. Afterwards, the product page is shown with In stock.

See how to connect the AI to your store, and what else it can do, in Control the shop with AI.

All entries for one product

The combined list of stock movements is good for keeping up with what is happening in your store right now. If you need to dig into one specific product, there is a dedicated page. Open the product, click Stock at the top of the product, and then click the Edit stock entries manually link at the bottom of the page. This opens the Adjust entries page.

It has the product name as the heading, Stock is still highlighted at the top of the product, and Adjust entries appears above the table. The Back to stock link at the top takes you back to the product's Stock page. The page shows up to 1,000 entries for the product with the newest at the top. Here, the columns are set up for troubleshooting rather than overview:

  • Time of the movement
  • Variant ID, so you can see which variant the entry belongs to, or whether it has none at all
  • Quantity with a green up arrow and a plus in front of additions, and a red down arrow and a minus in front of deductions
  • Cost price per unit
  • SKU the entry was booked on

What makes this page special is that you can select several entries at once with the checkboxes on the left, or select all of them with the checkbox in the table header, and then clear them out with the Delete selected button. It is the fastest way through a cleanup where an import or an integration has added a few hundred incorrect lines.

The page is also used to fix stock errors

If Shoporama detects entries that do not match the product's setup, a yellow warning appears at the top of the product's Stock page. There are two kinds:

  • The product has variants, but there are entries without a variant reference. They do not count toward any size or color, so the total and the variant lines cannot match.
  • The product does not have variants, but there are entries with a variant reference. This typically happens if the variants were removed from the product after stock was booked.

The Correct error button in the warning takes you straight to the product's Adjust entries page, where you can correct the variant reference on individual lines, or delete them and book the stock again from scratch. The stock figure is recalculated automatically when you are done.

Important: A deleted entry cannot be undone, and the stock figure changes immediately. If you delete an addition of 50 units, stock drops by 50. Only delete entries you are sure are wrong, and consider writing down what you removed if it concerns a closed fiscal year.

How to correct an old incorrect entry

Sooner or later, you will find an entry that is wrong. An incorrect quantity in a goods receiving, a cost price entered including VAT, or a product placed in the wrong location. You have two options, and they are not equally good in every situation.

Option 1: edit the entry directly

Find the entry on Stock → Stock movements, on the product's Stock page, or on the product's Adjust entries page, and click Edit (on the Adjust entries page, it is the pencil). You land on the Edit stock status page, where you can change:

  • Quantity, if something was counted or entered incorrectly
  • Cost price per piece, if the cost price is wrong
  • Warehouse location, if the product should be kept somewhere else
  • Variant, if the movement ended up on the wrong size or color
  • Batch, if the wrong delivery was selected and you use batch tracking

When you save, the product's stock figure is recalculated immediately. The Delete button on the same page removes the entry completely if it should never have been there.

The important thing to understand is that the entry's time does not change. If you correct a goods receiving from March today, it still appears as a movement in March, just with new figures. In other words, the history is rewritten retroactively. That is exactly what you want if the error was caught quickly and no one has used the figures for anything yet.

Option 2: create an offsetting entry

The other option is the one a bookkeeper will recognize: leave the incorrect entry in place and add a new movement that offsets the error. If 100 units were booked when only 90 arrived, you add a deduction of 10 today. The effect on the stock figure is the same, but both the error and the correction remain visible afterwards.

You create the offsetting entry with Quick change in the stock overview or with Add to stock on the product, depending on whether it should deduct or add.

Which one should you choose?

  1. The error is from today or yesterday, and the month has not been closed: edit the entry directly. It is fastest, and no one has built anything on top of the incorrect figure yet.
  2. The error is in a closed month, a closed fiscal year, or in figures already sent to your accountant: create an offsetting entry. That way, the inventory value as of the cutoff date stays untouched, and the correction falls in the period when it was discovered.
  3. The entry belongs to an order: think twice. If the product was never shipped, it is usually more correct to cancel or credit the order, so stock, invoice, and accounts stay in line, rather than only correcting the stock entry.
  4. There are many incorrect entries on the same product: use the product's Adjust entries page, select the lines, and delete them in one go. Then book the correct quantity as one clean addition.

Important: The cost price on the entries is part of your inventory value. If you correct cost prices retroactively on many products, you also change the inventory value you may already have reported. Agree with your bookkeeper or accountant on how to handle such corrections before you start a larger cleanup.

What is batch tracking?

A batch is a specific delivery or production run of a product. Two deliveries of the same product are two different batches, even if they have the same SKU. Each batch has its own batch number and can have its own production date, expiration date, received date, supplier, and notes.

Batch tracking is essential if you sell products where it matters which specific delivery each item comes from. This typically applies to:

  • Food with a best-before date
  • Cosmetics and skincare with an expiration date
  • Medicine and dietary supplements where traceability is required by law
  • Technical products with lot numbers for quality control
  • Products where you need to be able to recall a specific production run

With batch tracking, you can instantly answer questions like "Which orders contain products from batch 12345?" or "How many units of this batch have we sold?". That is invaluable if, for example, you need to recall a specific production run from the market.

The FIFO principle in picking

When batch tracking is turned on, Shoporama automatically selects the oldest batch as soon as an order deducts products from stock. This is called FIFO (First In, First Out). The system looks at the expiration date first and selects the batch that expires soonest. If several batches have the same expiration date (or none), the batch with the lowest batch number is selected. The selection is ready on the pick list, where you can switch to another batch if the item should be picked from a different delivery.

This means that as a store owner, you do not have to think about the order in which products go out. The system automatically makes sure that products with the shortest shelf life are sold first, so you minimize waste and avoid being left with expired products.

Good to know

A single order line can be split across several batches, but you do the split yourself. If a customer orders 10 units and your oldest batch only has 6 left, you add an extra batch line on the pick list with the plus button and put the last 4 on the next-oldest batch. The split is saved on the order line.

How stock entries and batches fit together

Stock entries and batches work together. When you receive a new delivery and create a batch, stock entries are created on the batch. When something is sold, a negative entry is created and linked to the batch it is picked from. If a product is returned, however, a regular addition without a batch is created, and you assign the right batch to it afterwards.

This gives you two layers of information: the entries tell you what happened, and the batches tell you which specific delivery each movement belongs to. Together, they give you full traceability from supplier to end customer.

You can filter stock entries by batch, so you can quickly see all movements for a specific delivery. This is useful if, for example, you need to find out how many units of an expired batch are still in stock, and how many have already been shipped to customers.

Getting started

Step 1: Turn on stock management

Stock entries and batches require stock management to be enabled in your store. You turn it on with Use stock management with entries under the Settings button (the gear) at the top of Stock → Overview or Stock → Stock movements in the admin. Once stock management is turned on, stock entries are created automatically from that moment on.

Step 2: Enable batch tracking (optional)

If you want to use batches, check Use batch management in the same place, just below stock management. The option is only shown when stock management is turned on. Once batch management is saved, the Manage Batches link appears in the help text, and Batches appears in the menu under Stock.

Step 3: Create and receive batches

When a new delivery comes in, go to Stock → Batches → Goods Receiving and register the delivery as a new batch. You fill in one line per product:

  • Product, which you search for
  • Batch No., so you can recognize the delivery later
  • Quantity received
  • Expiration Date, if the product has a shelf life

At the bottom, you set the supplier and date of manufacture for the entire shipment at once, and the received date is set automatically to the time you save.

When you save, the batch and the related stock entries are created in one go. Goods receiving does not ask for a cost price, so if your inventory value needs to be correct, you enter it afterwards on the entry. You edit the name and notes of a batch under Stock → Batches, where you can also change the other details.

Daily use

Keep an eye on expiration dates

Under Stock → Batches, you can filter by expiration date. You can choose between:

  • Expired, so you see which batches have expired
  • Expires within 30 days, so you can react in time, for example with offers or a sale
  • Not expired, so you focus on the batches that can still be sold normally
  • No expiration date, for products without a shelf life

Expired batches are not automatically hidden from picking. They are still visible in the list, but clearly marked, so your warehouse staff know they must be handled manually. This lets you decide for yourself whether a batch may be sold or should be discarded.

The pick list shows which batch to use

On the pick list, your warehouse staff can see exactly which batch an order line should be picked from. It removes the guesswork and makes sure FIFO is followed in practice, not just on paper.

Returned products are assigned to a batch manually

When a product is returned, it is put back in stock as a regular addition without a batch. If you want traceability all the way around, open the return entry under Stock → Stock movements and, in the Batch field, select the delivery the product was originally shipped from. The order shows which batch was picked, so you can look it up.

Tips and best practices

  1. Use consistent batch numbers. If your supplier provides a batch number, use it. That makes it much easier to trace products back to the source if an error or a recall occurs.
  2. Always record the cost price. The cost price on your entries is used to calculate your inventory value and gross margin. If you use incorrect figures, your reporting will be wrong too.
  3. Check "Expires within 30 days" regularly. Make it a fixed routine, for example weekly. That gives you time to set up offers or move the products before they go to waste.
  4. Avoid ad hoc manual adjustments. Every time you adjust stock manually, it adds "noise" to the history. Use goods receiving for incoming products instead, and only make adjustments for an actual stock count or shrinkage.
  5. Combine with warehouse locations. If you have several locations (for example a retail store and a remote warehouse), you can register batches at the right location and keep track of where the products physically are. Read more about warehouse locations.
  6. Use the reorder list actively. Once your entries are in order, you also get a better overview of which products you need to reorder. See the reorder list in stock management.

Using variants?

If your products have variants, Shoporama makes sure stock and batches are handled correctly at the variant level. Read more about stock synchronization with variants.

The value for your store

With stock entries, you get full traceability: you can see when products came in, what they cost, and when they were sold. That is exactly what your accountant and your accounting system need, and it makes your inventory valuation accurate and documented.

Add batch tracking, and you get the extra dimension that is essential for products with a shelf life or traceability requirements. FIFO picking reduces waste, and if the worst happens and a delivery has to be recalled, you can find every order that contains that batch in minutes. That security protects both your customers and your business.

Frequently asked questions

What is the difference between stock entries and the current stock quantity?

The current stock quantity is just the number shown on the product right now. Stock entries are the history behind that number, meaning all the movements that have made your stock larger or smaller. Every time you sell, receive products, process a return, or adjust manually, an entry is added with the quantity, cost price, and date. That way, you can always go back and see why your stock looks the way it does.

Where do I find my stock entries in the admin?

You find them under Stock → Stock movements, where all movements across your stock are listed with the newest at the top. If you only want to see the movements for one specific product, open the product and click Stock at the top of the product, and if you use batch tracking, you can click from a batch to the entries for that specific delivery. Negative entries are deductions from stock (typically sales or shrinkage), and positive entries are additions (purchases or returns).

My accountant is asking about inventory value. How is it calculated?

Inventory value is calculated from your stock entries as a weighted average of the cost price. Every time you receive products at a new price, the average is adjusted, so the inventory value reflects what you actually paid for what is on the shelf. That is why it is important to have stock entries turned on if you want to be able to document your inventory value to your accountant.

What happens if I turn off stock entries?

If you clear the Use stock management with entries checkbox under Settings (the gear) on Stock → Overview, the system only updates the current quantity on the product and does not keep a history of the movements. You save a little space and a little work in the database, but you lose the ability to see when something was sold or received, and you can no longer get an accurate inventory value calculation. Only turn it off if you really do not need the history.

I sell cosmetics with a shelf life. How do I get started with batches?

Click Settings (the gear) at the top of Stock → Overview, and check "Use batch management" (this requires regular stock management to be turned on as well). After that, you can create batches under Stock → Batches with batch number, expiration date, production date, supplier, and notes. When you receive a new delivery, you use goods receiving, so each delivery gets its own batch number and its own expiration date.

Which batch is picked first when an order comes in?

The system uses FIFO (First In, First Out) and automatically selects the batch that expires first. If several batches have the same expiration date (or none), the one with the lowest batch number is selected. If the oldest batch is not enough for the whole order line, you can add an extra batch line on the pick list and split the rest, so you do not ship new products before the old ones.

What do I do when a batch is about to expire or has already expired?

In the batch list, you can filter on expired, expires within 30 days, not expired, and no expiration date, so you can easily find the batches that need attention. Expired batches are clearly marked, but they are not automatically hidden from picking, so you decide whether to sell them off, make a manual adjustment for shrinkage, or remove them from stock.

A supplier has recalled a batch. How do I find out who bought it?

Because a sale is booked both on the order and on the batch it is picked from, you can filter the stock entries by that batch and see exactly which orders received products from it. That gives you full lot traceability, so you can quickly contact the affected customers in a recall without having to guess.

What happens to a batch if the customer returns the product?

When you process a return on an order, the product is put back in stock as a regular addition without a batch. If you want the batch history to add up, edit the return entry afterwards under Stock → Stock movements and select the batch the product was originally picked from. This is especially worthwhile for products with a short shelf life, so they do not end up at the back of the queue and get forgotten.

Can I edit a stock entry if I made a mistake?

Yes, stock entries can be edited directly from the list, for example if you entered the wrong quantity or the wrong cost price on an addition. Remember that a correction also affects inventory value going forward, so it can be a good idea to talk to your bookkeeper if the change is large or falls in a closed fiscal year.

Should I edit the incorrect entry or create an offsetting entry?

It depends on whether the period is closed. If the error was caught right away and the month has not been closed, edit the entry directly with Edit. If the error is in a closed fiscal year or in figures already passed on, create an offsetting entry dated today instead. Remember that a correction keeps the entry's original time, so it changes the history retroactively, while an offsetting entry leaves both the error and the correction in place and can be explained to your accountant.

There is a negative entry on a product we haven't sold. What could it be?

First, look at the Order no. column. If it is filled in, the deduction belongs to an order, for example an exchange or a canceled order that was reopened. If it is empty, the movement was made outside the order system, and the typical causes are a manual reduction after a stock count, a stock file that reported fewer units than your store had, or a synchronization from another of your stores. If From shared stock or From import appears next to the quantity, you have your answer right away.

I need to see all movements for one specific product. Where do I find them?

Open the product, and click Stock at the top of the product. There you see the product's own movements, and at the bottom is the Edit stock entries manually link, which opens the Adjust entries page with up to 1,000 entries, newest at the top. The combined overview under Stock → Stock movements, on the other hand, shows the whole store, so it is best when you want to follow today's activity rather than investigate one product.

I clicked Add to stock on the product. How can I see that it went through?

Your addition appears at the top under Latest entries with a green up arrow and a plus in front of the quantity, and the In stock column in the form shows the new quantity. Latest entries is only shown when Use stock management with entries is turned on.

Why do only some of the entries have a sales price?

The sales price is only saved on deductions that come from an actual sale, and it is always excl. VAT. A goods receiving, a stock count, or a returned product has no sales price, because nothing was sold. The cost price, on the other hand, is set on all types of entries and is the figure your inventory value is based on. If you need to document your margin for a period, look at sales price minus cost price on the sales deductions.

If you have questions about stock entries or batch tracking, feel free to contact us at support@shoporama.dk.