# Stock accounting in Numera

> Warehouses, stock articles and stock documents in Numera: receipts, issues, transfers, opening balances and stock counts, returns from customers and to suppliers, cost by FIFO, warehouse entries in the general ledger, stock on hand and stock control.

The **Warehouse** module shows which goods are in stock, how many there are and what they cost.
You enter a stock document for every movement of goods: goods come into a warehouse, go out of
it or move from one warehouse to another. From these documents Numera calculates the stock on
hand and the stock value as of any date.

Numera costs the goods that leave a warehouse by FIFO: the goods that came in first go out
first. Each stock article has its own FIFO order in each warehouse.

> [!NOTE]
> Purchase and sales invoices change the stock once stock is on the books. Until then, goods come
> into and go out of a warehouse only through stock documents. See
> [Purchase invoice with a stock article](#purchase-invoice-with-a-stock-article) and
> [Sales invoice with a stock article](#sales-invoice-with-a-stock-article).

## Getting started

1. **Add a warehouse**

   Open **Warehouse → Warehouses** and click **Add warehouse**. Enter the warehouse's name and
   code. The first warehouse becomes the default warehouse at once.

2. **Add stock articles**

   Open **Warehouse → Stock articles** and click **Add stock article**. Enter the item's name and
   code, and choose its unit.

3. **Enter the opening balance**

   Open **Warehouse → Stock movements**, click the arrow next to **New receipt** and choose
   **Opening balance**. Enter the goods in stock: the quantity and unit cost of each item. For
   the date, choose the day your stock accounting starts.

4. **Take stock onto the books**

   Open **Settings → Documents → Warehouse settings** and click **Take stock onto the books**
   (see [Stock in the general ledger](#stock-in-the-general-ledger)).

## Warehouses

A warehouse is a place where goods are kept, and each warehouse has its own stock. The
warehouse window has these fields:

- **Warehouse name** and **Code** — two warehouses cannot have the same code.
- **Address**.
- **Inventory account** — leave it empty to use the stock article's, its group's or the company's
  inventory account. A warehouse's own inventory account applies to all goods in that warehouse,
  even when an item has an inventory account of its own.
- **Default warehouse** — new stock documents and stock articles use this warehouse. There is one
  default warehouse: when you make another warehouse the default, the previous one is no longer
  the default.
- **Active** — switching it off archives the warehouse.

> [!NOTE]
> A warehouse that has stock documents cannot be deleted. Switch off **Active**: an archived
> warehouse cannot be chosen on new stock documents, and earlier documents stay as they are. The
> default warehouse cannot be archived, so make another warehouse the default first.

## Stock articles

A stock article is an article whose **Type** is **Stock item**: Numera tracks its quantity and cost
in stock. Stock articles are on the **Warehouse → Stock articles** page; the article list holds
services only. A service article becomes a stock article through the **Type** field on the article
form.

Besides the other article fields, the stock article form has:

- **EAN code** — the number of the item's barcode.
- The **Stock accounting** section with **Default warehouse**, **Inventory account** and **Cost
  of goods sold**. If you leave one of them empty, the article group's or the company's default
  applies, and the form shows which one that is.

The company's default accounts are under **Settings → Automatic entries → Inventory movements**.

### Article groups

A group gives its articles default accounts and VAT types: **Sales account**, **VAT type for
sales**, **Expense account**, **VAT type for purchase**, **Inventory account** and **Cost of goods
sold**. When the article's own field is empty, the group's value applies. On the article form it
is grey, with a note naming the group it comes from. When the group has none either, the company's
default applies. Both stock articles and service articles can have a group.

Groups are on the **Warehouse → Article groups** page; when Warehouse is not in your menu, on the
**Invoices & transactions → Article groups** page. The **Add group** button opens
the group window: enter the name, choose the defaults and click **Add**. You choose an article's
group in the **Group** field on the article form; the **Add group** button under that field's list
adds a new one.

- A change to a group's default applies at once to every article in the group whose field is
  empty. An earlier sales invoice's revenue entry changes too, the next time you save the invoice.
- When a stock article has stock on hand posted to the general ledger, you cannot choose another
  group for it or change the group's **Inventory account** if that would change the item's
  inventory account. Change them when the stock is zero.
- A group that an article has cannot be deleted. Switch off **Active**: an archived group cannot
  be chosen for an article, but the articles that already have it keep getting its defaults.

The article list and the **Warehouse → Stock articles** page have a **Group** column. On these
pages and on **Warehouse → Stock on hand**, the filter lets you choose a group, **All groups** or
**No group**. Archived groups are in the filter too, since an article may still have one.

### Units

A stock article's quantity is kept in the unit in its **Unit** field, its base unit. You choose the
unit from the list. If the unit you need is not there, click **New unit** under the list, enter the
unit's name and press Enter.

You add other units in the **Units** section: click **Edit** and **Add unit**, choose the row's
unit (for example box), enter how many base units it holds (for example 12), and click **Save**.

On a stock document line you choose in the **Unit** column which unit the quantity is in. With
another unit, the line shows the quantity in the base unit below, for example "= 24 pcs" for 2
boxes. **Stock on hand**, **Movement detail** and **Stock control** always show the quantity in the
base unit.

- Once the stock article has stock movements, its **Unit** stays the same.
- A unit row that is on a stock document cannot be changed or deleted. **Archive** at the end of
  the row hides it from new lines, and **Restore** brings it back.
- If the box size changes, archive the old row and add a new one with the same unit and the new
  size.

You manage the list of units under **Settings → Documents → Units**. A unit's row opens a window
where you can change its name, code and translations. Turn off **Active** to archive the
unit: it can no longer be chosen on new lines. **Merge into another unit…** joins two units:
articles and lines get the unit that stays, and the text on documents does not change.

> [!NOTE]
> A stock article that has stock movements stays a stock article and cannot be deleted. If the item
> is no longer used, switch off **Status**: an inactive stock article cannot be chosen on new stock
> documents.

## Products with variants

When the same item comes in several sizes or colours, make it a product with variants. Each
variant is a stock article of its own, with its own code, EAN code, prices and stock. On a stock
document you choose a variant like any other stock article. A variant's name is the product's name
with its values, for example "T-shirt M / Red".

The product's name, description, unit, group, accounts, VAT and default warehouse are the same for
every variant. You change them on the product's page, for all variants at once.

On the **Warehouse → Stock articles** page a product is one row, with its number of variants. The
arrow at the start of the row shows the product's variants. The product's row opens the product's
page, and a variant's row opens the variant's stock article form.

1. **Open a new product**

   Open **Warehouse → Stock articles**, click **Add stock article** and switch on **This product
   has variants**. The product's page opens with what you entered on the stock article's form.

2. **Enter the product's details**

   Enter the product's name and code. Every variant takes the values in the **Product settings**
   and **Stock accounting** sections.

3. **Choose the attributes and values**

   In the **Attributes** section, choose an attribute, for example size, and its values, for
   example S, M and L. If an attribute or value is not in the list, type its name in the list's
   search field and press Enter or click the button under the list, for example **Add “S”**.
   Numera adds it and picks it at once, so values can be added one after another: S, Enter, M,
   Enter. A click on **New attribute** or **Add value** under the list also turns it into a field
   to type the name in. Click **Add attribute** for a second attribute.

4. **Check the variants**

   Variants come from the attribute values: once values are chosen, the **Variants** section has
   each combination of values on its own row. Numera proposes a code for each variant, which you
   can change. In the **EAN**, **Sales price** and **Purchase price** columns you enter the
   variant's EAN code and prices. Prices entered on the stock article's form are already on each
   row. If you don't need a variant, click **Leave out** at the end of its row; **Put back** brings
   it back.

5. **Save the product**

   Click **Save**. Numera creates the product with its variants and opens the product's page.

> [!NOTE]
> If you switch off **This product has variants** on the new product's page, the stock article's
> form opens again with what you entered. When something is chosen in the **Attributes** section,
> Numera asks first. The attributes, the variants and the prices entered on the variant rows are
> left behind, and pictures chosen for the new stock article do not come to the product's page.

### Editing a product

Click **Edit** on the product's page. A change to a shared field applies to every variant. When the
variants hold a shared field differently, the page shows "varies" in place of its value. Once you
choose a value for that field, every variant takes it. In the **Variants** section you can change
each variant's code, EAN code and prices in the same edit, and switch off **In use**.

- The **Attributes** section shows the product's attributes and every value its variants have.
  When you choose a new value for an attribute, its rows appear in the **Variants** section at
  once. New rows start with the prices every existing variant shares. When you take a value away,
  its rows go. A value whose variant is on a document cannot be taken away.
- **Add attribute** adds an attribute. The existing variants take the first value you choose for
  it. Every further value adds new variants.
- **Leave out** at the end of a row leaves that variant out of the product: a new one is not
  created and an existing one is removed. **Put back** brings the row back. The product's last
  variant and a variant on a document cannot be removed. Switch off **In use** for such a variant
  instead: it then cannot be chosen on new stock documents.
- Nothing is stored until you click **Save**. A product can have up to 100 variants.
- A product whose variants have no stock movements can be deleted from the ⋯ menu (**Delete**).

### Turning a stock article into a product

When a stock article already exists and the same goods come in other sizes or colours, open the
stock article, click **Edit** and switch on **This product has variants**. The **Make a product
with variants** window opens: choose an attribute and the value this stock article has, for
example size M, and click **Make product**. **Add attribute** adds a second attribute. The stock article becomes
the product's first variant with its stock, movements and documents, and Numera opens the
product's page. Add the other variants on the product's page: click **Edit** and choose the new values in the **Attributes** section. If you close the window, the stock
article stays as it was.

### A variant's form

A variant's stock article form has a **Product** field with a link to the product's page. On the
variant's form you change its code, EAN code, prices, default quantity on invoices and status. The
name, description, unit, group, accounts, VAT and warehouse are the product's: the form shows them,
but they are changed on the product's page.

### Attributes

An attribute is what a product's variants differ by, for example size or colour. All of the
company's attributes and their values are on the **Warehouse → Attributes** page, each with the
number of products that use it. **Add attribute** opens a window: enter the attribute's name, add
its values with **Add value** and click **Add**. Click an attribute's row to open its window.

- When you rename a value, the names of the variants that carry it change too.
- A value no variant uses is removed with the button at the end of its row. A value in use can be
  archived (**Archive**): it can no longer be picked for new variants, and the variants that carry
  it stay as they are. **Restore** brings it back.
- When you switch off **Active**, the attribute can no longer be picked for a new product. The
  products that have it stay as they are.
- An attribute no product uses is deleted with the window's **Delete attribute** button.

A new attribute or value can also be added on the product's page, straight from the attribute's or
values' list, without opening this page (see [Products with variants](#products-with-variants)).

## Stock documents

Stock documents are on the **Warehouse → Stock movements** page. The **New receipt** button
creates a receipt; the other types are under the arrow next to it. You can filter the list by
type, warehouse, issue reason and period and save the choice as a [view](#views). Periods that look
ahead, such as **Next 7 days**, are not offered here.

- **Receipt** — goods come into a warehouse. You enter the unit cost yourself.
- **Issue** — goods go out of a warehouse, for example spoiled or lost goods. Choose a
  [reason](#issue-reasons). Numera calculates the cost by FIFO.
- **Transfer** — goods move from one warehouse to another. Numera calculates the cost by the
  source warehouse's FIFO order, and the goods arrive in the destination warehouse at the same
  cost. A transfer is available when the company has at least two warehouses.
- **Opening balance** — the goods in stock when your stock accounting starts. You enter the unit
  cost yourself.
- **Stock count** — the goods counted in a warehouse. Numera compares the counted quantity with the
  stock and books the difference (see [Stock count](#stock-count)).

The type decides which warehouse fields the document has: a receipt and an opening balance have
**To**, an issue has **From**, a transfer has both, and a stock count has **Warehouse**. A new
document has the default warehouse already chosen. The quantity is always positive, because the type says whether the goods come in
or go out. The quantity is in the line's **Unit**: the stock article's base unit or one of its
other [units](#units).

On a receipt and an opening balance, a line's **Total** is the quantity times the unit cost,
rounded to the cent. For an issue and a transfer, Numera calculates the cost itself and shows it
on the document's lines once it is saved.

Under an issue's or a transfer's line, Numera shows how much of the item the source warehouse
holds as of the document's date, for example "In stock: 12 pcs". When the line asks for more, the
row shows a warning, for example "Only 5 pcs in stock".

Numera numbers a document when it is saved. The prefix depends on the type: **ST** for a
receipt, **VM** for an issue, **LL** for a transfer, **AL** for an opening balance and **IN** for
a stock count (for example VM-26001). A document's type cannot be changed after it is saved.

### Issue reasons

Every new issue has a reason, which you choose in its **Reason** field. The reason says why the
goods left and decides which expense account the issue is booked on.

The reasons are under **Settings → Documents → Warehouse settings**, in the **Issue reasons**
section. The list starts with four: "Spoiled or broken", "Expired", "Lost or stolen" and "Used up
in the company" (in Estonian when the company was created in Estonian or before reasons existed).
**Add reason** opens a reason's window, and clicking a reason's row opens its window. The window has
**Name** and **Expense account**. With no expense account, the issue is booked on the company's
issue expense account. Only an expense account that is not a stock account can be chosen.

- A new expense account applies to the issues you add or edit afterwards. Earlier issues' entries
  stay on their accounts.
- A reason an issue holds cannot be deleted. Choose **Archive** from its row's menu: an archived
  reason cannot be chosen on a new issue, and earlier issues stay as they are. **Restore** brings it
  back.

A saved issue's ⋯ menu has **Write-off act**: a PDF with the issue's date, warehouse and reason, the
goods that left with their cost, and lines for the signatures of who prepared and who approved it.

### Editing and back-dating

A document can be edited and deleted later. When you edit a document, delete it or add a new one
with an earlier date, Numera recalculates the stock and the cost of every later issue and
transfer at once. Nothing needs to be recalculated by hand.

When some of the goods a document brought in have already gone out, the document has an **Already
issued** section with the columns **Document**, **Date**, **Quantity** and **Value**: the
documents that took goods from it. When you delete such a document, the confirmation says that
the cost of those documents is recalculated.

A confirmed stock count can be edited or deleted only after it is reopened. While it is confirmed,
movements of the counted items in its warehouse cannot be added, edited or deleted on or before its
date (see [A confirmed count and later documents](#a-confirmed-count-and-later-documents)).

### When there is not enough in stock

An issue is saved even when there is not that much in stock. The stock goes below zero and the
cost of the missing part is estimated: Numera uses the item's last known unit cost. If there is
none, Numera uses the stock article's **Unit purchase price**. An estimated cost carries a warning,
and the **Stock on hand** page shows a notice that some items are below zero.

When you add the receipt of the missing goods, it covers the shortfall and Numera recalculates
the cost of the issue itself.

The same holds for a transfer: when the source warehouse has none of the item, the transfer is still
saved and its cost is estimated until you add a receipt or a purchase invoice of that item into the
source warehouse. Numera then recalculates the transfer and the cost of the goods in the destination
warehouse.

### Locked periods

Stock documents dated in a locked period cannot be added, edited or deleted. When you edit a
document, Numera checks both its old and its new date.

Numera does not change the cost of documents dated in a locked period or before the stock posting
start. When a later document would change the cost of such a document, for example when a receipt
covers an issue's shortfall, Numera adds a cost adjustment instead. An adjustment changes the
value only, not the quantity. It is dated on the first open day after the corrected document's
date, but not before the stock posting start. Once stock has been taken onto the books, the
adjustment also makes an [entry](#entries).

On the **Movement detail** page the adjustment is a row of its own, **Cost adjustment**, with
**Correction to** and the corrected document's number and date under it.

For example, January is locked and the issue of 15.01 took 2 pcs that were not in stock, at an
estimated cost of 10,00 €. The receipt of 10.02 at 4,00 € covers the shortfall, so by FIFO the
issue costs 2 × 4,00 = 8,00 €. The issue stays as it is, and Numera adds a cost adjustment of
2,00 € dated 01.02: debit the inventory account, credit the issue expense account.

## Example

The stock article is a thermos and all documents are in the same warehouse.

| Document | Quantity | Cost | Stock | Value |
| --- | --- | --- | --- | --- |
| Opening balance AL-26001 | +10 pcs | 10 × 4,00 = 40,00 € | 10 pcs | 40,00 € |
| Receipt ST-26001 | +10 pcs | 10 × 5,00 = 50,00 € | 20 pcs | 90,00 € |
| Issue VM-26001 | −15 pcs | 10 × 4,00 + 5 × 5,00 = 65,00 € | 5 pcs | 25,00 € |

The issue first takes all 10 pcs of the opening balance at 4,00 € and then the remaining 5 pcs
from the receipt at 5,00 €. The issue costs 65,00 €. 5 pcs at 5,00 € are left in stock, 25,00 €
in total.

If you enter the issue in Numera before the receipt, there are only 10 pcs in stock and the
stock goes to −5 pcs. The cost of the missing 5 pcs is then estimated at the last known unit
cost: 5 × 4,00 = 20,00 €, so the issue costs 60,00 € in total. When you add the receipt
ST-26001, Numera recalculates the issue's cost to 65,00 €.

## Stock in the general ledger

Stock documents post to the general ledger from the stock posting start. You choose the start
when you take stock onto the books. The owner and an accountant can take stock onto the books.

Open **Settings → Documents → Warehouse settings** and click **Take stock onto the books**. The
window has:

- **Stock posting start** — Numera proposes the first open day of the current month. The start
  cannot be in the future or in a locked period, and opening balance documents must be dated on
  the start or earlier.
- The take-on entry. When the stock value and the ledger balance are equal, the window says so in
  one line and no entry is made. When they differ, the window shows the entry dated on the start:
  each inventory account whose balance differs from the stock value on its own line, with
  **Stock value** and **Ledger balance** under it, and the counter-account's line. You choose the
  counter-account on the entry's last line; by default it is retained earnings of prior periods
  (2970 in Numera's chart of accounts). The counter-account cannot be a stock account.
- **These documents get entries too** — the stock documents dated on the start or later. Numera
  posts them together with the take-on.

Click **Take stock onto the books**. Numera makes the entry the window shows. When the window
shows a warning, stock cannot be taken onto the books. The warning says what stands in the way.

While the books are kept in other software and its invoices come into Numera from there, stock
cannot be taken onto the books: those invoices do not move stock. Once the books have moved to
Numera, the start can be the moving date or a later day.

The page's **Stock in the ledger** section then shows **Stock posting start**, **Entry** (opens
the take-on entry) and **Taken on by** (who and when). The **Accounts** section lists the accounts
the warehouse entries use: **Inventory account**, **Issue expense account**, **Receipt income
account** and **Cost of goods sold account**. The **Edit** button opens **Settings → Automatic
entries**.

### After the take-on

- A stock document dated before the stock posting start cannot be added, edited or deleted.
- An opening balance document cannot be added, edited or deleted. Add goods with a receipt.
- The inventory account of a warehouse, a stock article or the company can be changed once that
  account's stock is zero.
- When you change the issue expense account or the receipt income account, the new account applies
  to the documents you add or edit afterwards. Earlier documents' entries stay on their accounts.

### Undoing the take-on

Only the owner can undo the take-on. Choose **Undo the take-on** from the ⋯ menu of **Warehouse
settings** and confirm with **Undo the take-on**. Numera deletes the take-on entry and the
warehouse entries from the stock posting start, and the warehouse stops posting to the general
ledger.

The take-on cannot be undone while purchase invoices have rows with stock articles, stock
accounting holds cost adjustments or an entry it would delete is in a locked period. The option is then greyed out, and the reason shows when you hover
over it.

## Entries

From the stock posting start, each receipt, issue, transfer and confirmed stock count makes one
entry dated on the document's date. The entry's amount is the document's cost.

| Document | Debit | Credit |
| --- | --- | --- |
| Receipt | Inventory account | Receipt income account |
| Issue | The reason's expense account or the issue expense account | Inventory account |
| Transfer | Destination warehouse's inventory account | Source warehouse's inventory account |
| Stock count, shortage | Issue expense account | Inventory account |
| Stock count, surplus | Inventory account | Receipt income account |

In Numera's chart of accounts the defaults are inventory account 1340, issue expense account 4000
and receipt income account 3560. A transfer makes an entry only when the source and destination
warehouses' inventory accounts differ. An opening balance makes no entry. A
[cost adjustment](#locked-periods) makes an entry dated on the adjustment, on the same accounts as
the corrected document, and its amount is the change in cost.

An issue is debited to its [reason's](#issue-reasons) expense account when the reason has one, and
to the issue expense account otherwise. A stock count's shortages and surpluses share one entry, and
the inventory account carries their difference.

A stock document's **Entry** field opens its entry. When a document's cost changes, Numera changes
its entry and the entry keeps its number. A deleted document's entry is deleted. Warehouse entries
cannot be edited or deleted in the general ledger.

## Purchase invoice with a stock article

Once stock is on the books, you can choose a stock article on a purchase invoice row. The goods
then come into the warehouse with the purchase invoice and no separate receipt is needed. A stock
article can be chosen on a purchase invoice whose entry date is on or after the stock posting
start. Otherwise the **Stock article** column is grey and a **Warehouse settings** link stands
under the rows.

1. Open the purchase invoice and choose a stock article in the row's **Stock article** column.
2. Numera fills **Unit** with the stock article's base unit and an empty **Content** with the
   stock article's name. You can also choose another unit of the stock article, such as a box.
3. When there are several warehouses, choose in the **Warehouse** column which warehouse the goods
   come into. The default warehouse is the preset.
4. Save the purchase invoice.

A row with a stock article is booked on the inventory account. The account cannot be chosen: the
**Account** column reads **Inventory account** before saving and shows the account Numera chose
after saving. No separate warehouse entry is made: the inventory account's debit is in the purchase
invoice's own entry. The cost of the goods that come in is the amount the purchase invoice's entry
books on the inventory account, including non-deductible VAT and discounts. The goods come in on
the purchase invoice's entry date.

When you remove the stock article from a row, it is an ordinary expense row and you choose its
account again. A row with a stock article always has a quantity above zero. On a row of goods
returned to the supplier the sum is negative (see [Returns to the supplier](#returns-to-the-supplier)).

When goods that came in with this purchase invoice have already been issued, Numera lists those
issues (number, date, stock article and quantity) before saving a change that lowers a stock row's
quantity, price or sum, removes the row or moves the entry to a later date. The purchase invoice's
delete confirmation has the same list. The cost of those issues is recalculated.

**Movement detail** shows goods that came in with a purchase invoice as a purchase invoice row, and
its link opens the purchase invoice.

Stock cannot be taken onto the books while a purchase invoice dated on or after the start books a
row on an inventory account without a stock article. The **Take stock onto the books** window lists
those purchase invoices under **Purchase invoices on a stock account without a stock article**. Open
the purchase invoice and choose a stock article or another account for the row.

### Returns to the supplier

When you send goods back to a supplier and the supplier credits them, enter the supplier's credit
invoice as a purchase invoice. The goods then leave the warehouse, and no separate issue is needed.

1. On the row, choose the returned stock article in the **Stock article** column. When there are
   several warehouses, choose in the **Warehouse** column which warehouse the goods leave from.
2. Enter the quantity without a minus sign and the price with one, so that the row's sum is
   negative.
3. Save the purchase invoice.

The goods leave on the purchase invoice's entry date, and Numera costs them by FIFO as it costs an
issue. When there is not that much in stock, the cost is
[estimated](#when-there-is-not-enough-in-stock). The credit invoice's own entry lowers the inventory
account by the credited amount. When that amount differs from the goods' cost, Numera books the
difference on the cost of goods sold account in an entry of its own, opened by the **Supplier return
entry** link on the purchase invoice's page. When there is no difference, no such entry is made.

A purchase invoice either buys stock articles or returns them to the supplier, never both: enter the
rows of returned goods on a credit invoice of their own. Rows without a stock article may stand
beside a return with either sign.

**Movement detail** shows the return as a **Return to supplier** row.

### Invoices from the inbox and e-invoices

Once stock is on the books, the **Stock article** column is also on invoices in the
[invoice inbox](https://numera.ee/juhendid/tehingud-ja-arved/arvete-postkast.md) (in Estonian). For the rows of an invoice
that arrived by e-mail or as an e-invoice, Numera suggests a stock article by the codes and names on
the invoice. On an e-invoice Numera reads the codes from the e-invoice itself; on other invoices AI
reads them from the document.

Numera tries these rules in order and takes the first one that finds exactly one stock article:

1. the stock article's **Code** equals the buyer's product code on the e-invoice;
2. the stock article's **EAN code** equals the EAN code on the invoice;
3. the supplier's product code on the invoice is linked to the stock article for that supplier
   (see [Supplier's product code](#suppliers-product-code));
4. the stock article was on the supplier's earlier invoice, on the row with the most similar content;
5. the stock article's name equals the row's content.

Hovering over the row's icon shows why Numera suggested the stock article: **By the code on the
invoice**, **By the supplier's product code**, **Suggestion based on previous invoices** or
**Suggestion based on the name**. When no rule finds exactly one stock article, the column stays
empty and you choose the stock article yourself. Numera picks the unit among the stock article's
units by the unit on the invoice. When the invoice's unit is not one of them, choose the unit
yourself.

A suggested stock article is only a suggestion: check the rows and click **Save**. Numera never
suggests a stock account for a row without a stock article. When the row is goods kept in stock,
choose a stock article for it; otherwise choose another account.

### Supplier's product code

When you save an invoice from the inbox whose stock article row carries the supplier's product
code, Numera remembers the code. On the supplier's next invoice, Numera suggests the same stock
article for a row with that code.

When the code is already linked to another stock article, Numera asks in the **Supplier's product
code** window whether the code means the new stock article from now on. **Relink** links the code
to the new stock article, **Keep as is** keeps the old link. The invoice is saved either way.

### Auto-processing and goods in stock

A person reviews an invoice with stock articles.
[Auto-processing](https://numera.ee/juhendid/tehingud-ja-arved/arvete-postkast.md#automaatne-tootlus) (in Estonian) saves such
an invoice by itself only when all of these hold:

- the supplier has auto-processing switched on;
- when Numera found a stock article for a row, it found it by a code on the invoice (rules 1–3), and
  no earlier rule found several stock articles;
- the unit on the invoice is a unit of the stock article;
- each stock article row's quantity and sum are above zero, and the invoice is not a credit note;
- no row without a stock article would be booked on a stock account.

Otherwise the invoice waits in the inbox marked **Needs a stock item**: choose a stock article or
an account for the row and click **Save**. The same rule applies to a scanned invoice.
Auto-processing never remembers a supplier's product code.

When any of the supplier's last three purchase invoices has a stock article row, Numera does not
offer auto-processing for that supplier.

## Sales invoice with a stock article

Once stock is on the books, the stock goods sold on a sales invoice go out of the warehouse and
Numera books their cost as cost of goods sold. No separate issue is needed. Goods go out with a
sales invoice whose entry date is on or after the stock posting start. An invoice with an earlier
entry date does not change the stock, and a note under the rows says so.
Sales invoices imported from other software and open invoices carried over in a migration do not
change the stock. An invoice carried over in a migration whose entry date is on or after the stock
posting start cannot be saved with a stock article.

1. Open the sales invoice and choose a stock article as the row's article.
2. When there are several warehouses, choose in the **Warehouse** column which warehouse the goods
   leave from. The preset is the stock article's default warehouse, or the company's default
   warehouse when the article has none. You can also choose another unit of the stock article, such
   as a box.
3. Under the row, Numera shows how much of the item that warehouse holds as of the invoice's entry
   date, for example "In stock: 12 pcs".
4. Save the sales invoice.

The **Warehouse** column and the stock line under the row are shown to users with access to the
Warehouse module. Other users can sell a stock article too: the goods then leave from the stock
article's default warehouse or the company's default warehouse.

When the invoice sells more than is in stock, the row shows a warning, for example "Only 5 pcs in
stock". The invoice is still saved and the stock goes below zero. The cost of the missing goods is
estimated, as [for an issue](#when-there-is-not-enough-in-stock), until you add a receipt or a
purchase invoice for them.

A row with a stock article cannot be a prepayment row. For goods a customer brings back, see
[Returns from a customer](#returns-from-a-customer-credit-note).

### Cost of goods sold

The cost of a stock row is the FIFO cost of the goods that left the warehouse, and the row's margin
is calculated from it. Numera calculates this cost itself; it cannot be changed by hand. An
estimated cost carries a warning mark.

Numera books the cost of goods sold in an entry of its own, and the sales invoice's own entry stays
as it is. The entry is dated on the sales invoice's entry date: debit the cost of goods sold
account, credit the inventory account (4000 and 1340 by default in Numera's chart of accounts). The
cost of goods sold account is the stock article's or its group's when one is set, otherwise the
company's.

When you edit the sales invoice, Numera issues its goods again. When you later add or change an
earlier-dated receipt, purchase invoice or other document that changes the item's FIFO order,
Numera recalculates the cost of the goods sold: the row's cost, the margin and the entry's amount
change, and the entry keeps its number. When the sale is in a locked period, Numera adds a
[cost adjustment](#locked-periods) instead.

When the same data is being changed elsewhere at the same moment, for example while stock is taken
onto the books, the sales invoice is not saved and a message asks you to try again.

**Movement detail** shows the sale as a **Sale** row with the sales invoice's number. A stock
document's **Already issued** section also lists the sales invoices that took goods from it.

### Deleting and annulling

When you delete or annul a sales invoice, its goods come back into the warehouse and the cost of
goods sold entry is deleted. The cost of later issues is recalculated. An invoice cannot be deleted
or annulled when the cost of its stock goods was corrected in a locked period, or when some of its
goods came back on a credit note.

### Returns from a customer (credit note)

When a customer returns goods, they come back into the warehouse with a credit note, and no
separate receipt is needed. The row of returned goods has the stock article, a quantity with a
minus sign and a price without one.

1. Open the sales invoice the goods were sold on and choose **Create credit note** from the ⋯ menu.
   The credit note has the invoice's rows with negative quantities.
2. Keep the rows whose goods come back, and change their quantities if needed. When goods do not
   come back, for example when the customer only got a price reduction, remove the stock article
   from the row (the row's name stays).
3. When there are several warehouses, choose in the **Warehouse** column which warehouse the goods
   come back into. It can be another warehouse than the one they were sold from.
4. Save the credit note.

Under the row, **Sold on invoice** names that invoice. The returned goods cost their share of the
credited invoice's cost of goods sold, in proportion to the quantity returned: when the customer
returns everything, the sale's cost and the return come to 0,00 € together. When the sale's cost
changes later, Numera recalculates the return too, with a [cost adjustment](#locked-periods) in a
locked period.

When the credit note is not linked to a sales invoice, or that invoice did not sell this stock
article, enter the returned goods' cost: click **Add cost** in the row's **Margin** column and enter
**Cost per unit**. If you leave it empty, Numera estimates the cost from the item's last known unit
cost, or from the stock article's **Unit purchase price** when there is none. When neither exists,
Numera asks you for the cost. A cost set this way is not recalculated later.

The return's entry is dated on the credit note's entry date: debit the inventory account, credit the
cost of goods sold account. The **Stock return entry** link on the credit note's page opens it.
**Movement detail** shows the return as a **Sales return** row.

- A credit note cannot return more of an item than the credited invoice sold.
- Once some of an invoice's goods have come back on a credit note, the invoice cannot be annulled or
  deleted, an item's quantity on it cannot go below what came back, and its entry cannot move past
  the return's date. Change the credit note first.

### Credit and re-issue

When an invoice issued goods from stock, **Credit and re-issue** takes them back with the credit
note at the original invoice's cost, so the original sale and its return come to 0,00 € together.
The new invoice issues the goods again on its own entry date, and Numera costs them by FIFO.

### Recurring invoices and quotes

Recurring invoices and invoices created from a quote issue goods from stock too. On a recurring
invoice's form you choose a stock article's warehouse as on a sales invoice. An invoice created
from a quote takes the goods from the stock article's default warehouse or the company's default
warehouse. When a recurring invoice's next invoice cannot be made because of a stock article, for
example because the article is archived, the invoice is not made and Numera lets you know.

### Taking stock onto the books and sales invoices

**Take stock onto the books** also issues the goods sold on sales invoices whose entry date is on
or after the stock posting start, takes back the goods returned on credit notes from the same
dates, and books their entries. The window shows a warning and stock cannot be taken onto the books
when:

- the company has no cost of goods sold account. The company's default accounts are under
  **Settings → Automatic entries → Inventory movements**.
- one of those sales invoices has its entry in a locked period. Choose a start after the locked
  period.
- one of those sales invoices has a row with a stock article whose price or sum is negative.
  Correct the row: a row of returned goods has a quantity with a minus sign and a price without one.

When a row of one of those sales invoices cannot be issued from stock, stock is not taken onto the
books, and the message names the invoice and what stands in the way.

The take-on cannot be undone while sales invoices have rows with stock articles. A service article
sold on a sales invoice dated on or after the stock posting start cannot be turned into a stock
article. Add a new stock article instead.

## Stock count

A stock count checks that a warehouse holds as much as Numera says it does. It is a stock document
for one warehouse, numbered with the prefix **IN**. Each line has a stock article, its book
quantity (the stock at the end of the count's day) and the quantity counted, all in the article's
base unit. Until it is confirmed, a count is a draft and does not change the stock.

1. **Create the count**

   Open **Warehouse → Stock movements**, click the arrow next to **New receipt** and choose
   **Stock count**. Choose the date and the warehouse. In **Counted by**, enter who does the
   counting.

2. **Add the stock articles**

   Click **Fill from stock** next to the **Lines** heading. Numera adds the active stock articles
   whose stock in that warehouse is not zero at the end of the day. When the company has article
   groups, choose **All stock items** or one group. An article already on the lines is not added
   twice. You can also choose an article on a line yourself. The **Book** column shows its stock.

3. **Print a count sheet**

   Click **Save**. The count's ⋯ menu downloads a PDF: **Count sheet** or **Count sheet with book
   quantities**.

4. **Enter the counted quantities**

   Click **Edit** and enter each article's counted quantity in the **Counted** column. The
   **Difference** column shows how much more or less there is than the book says.

5. **Confirm the count**

   Click **Confirm** and confirm again in the window that opens. Every line needs a counted
   quantity. If the stock has changed in the
   meantime, Numera shows the new book quantity on the line: check the counted quantity and click
   **Confirm** again.

On a surplus line you can enter the surplus's cost in the **Unit cost** column. If you leave it
empty, Numera estimates the cost from the item's last known unit cost, or from the stock article's
**Unit purchase price** when there is none. When neither exists, Numera asks you for the cost.

### Confirming and the entry

When you confirm, Numera changes the stock on the count's date:

- a shortage leaves the warehouse at its FIFO cost;
- a surplus comes in at the cost entered or estimated. When the stock was below zero, the surplus
  covers the shortfall first and Numera recalculates that issue's cost.

Once stock is on the books, the count makes one entry: for a shortage, debit the issue expense
account and credit the inventory account; for a surplus, debit the inventory account and credit the
receipt income account. The inventory account has one line with the difference of the two.

A count reads **Draft** or **Confirmed** beside its title and, on the **Stock movements** page,
under its type. A confirmed count's value is its surpluses less its shortages. **Movement detail** shows **Count
surplus** and **Count shortage** rows.

### Stock count report

A confirmed count's ⋯ menu also has **Stock count report**: a PDF with each article's book and
counted quantity, difference and value, and lines for the signatures. File the signed report or
count sheet under **Signed copies**: click **Add file** and choose the file. It is saved at once.

### A confirmed count and later documents

Once a count is confirmed, movements of the counted items in its warehouse cannot be added, edited
or deleted on or before the count's date. This holds for stock documents, purchase and sales
invoices and credit notes alike. A change that moves the cost alone, such as a corrected unit cost on
a receipt, is allowed: Numera recalculates the count's cost and changes its entry.

Confirm the year-end count once December's documents are in. When a document still turns up later,
reopen the count, enter the document and confirm the count again.

Click **Reopen** and confirm. Numera takes back the count's differences and its entry; the counted
quantities and the costs you entered stay. You can then edit, delete or confirm the count again.

- When the same article was counted again later, reopen the later count first.
- A count dated in a locked period cannot be confirmed or reopened.

## Stock on hand

**Warehouse → Stock on hand** shows the quantity and value of each stock article as of the chosen
date. By default the date is today and all warehouses are chosen.

You choose the date in **As of**. Next to the calendar are the quick days **Today**, **End of last
month** and **End of last financial year**. Numera works out the end of the last financial year
from the company's financial year. When
you type a date or pick it in the calendar, the choice is **Chosen date**.

The stock filter has three choices:

- **In stock** (the default) — the items whose quantity is not zero, those below zero included.
- **All stock articles** — also the items that are not in stock.
- **Below zero** — only the items whose stock is below zero.

When an item's stock is below zero, the page shows a notice. The notice's **Show those below
zero** button chooses **Below zero** in the filter.

When the company has article groups, you can narrow the report to one group or choose **No
group**. With **By group** the rows stand in sections per group: the groups by name, the items
without a group last. Under each group are its number of stock articles and its value. Numera
does not add up a group's quantity, since the items' units differ.

The **Average unit cost** column is the item's value divided by its quantity. It is for
information only: Numera still costs issues by FIFO. When all warehouses are chosen, a row also
shows the quantity in each warehouse. Below the table are the total value and the number of stock
articles listed.

Clicking a row opens that item's movement detail up to the same date.

**Export** downloads the report as an XLSX or PDF file, exactly as the page shows it. When all
warehouses are chosen, the XLSX file has a row for each stock article and warehouse and a
**Warehouse** column, so you can build a pivot table from it. The XLSX file always has a
**Group** column too, with no subtotals per group. The PDF file matches the screen.

## Movement detail

**Warehouse → Movement detail** shows the movements of one stock article in the chosen period.
Choose the stock article in the filter. By default the period runs from the start of the financial
year to today. You can pick the period from the quick choices, such as **Last month** or **Last 30
days**, or enter its start and end. Periods that look ahead, such as **Next 7 days**, are not
offered here.

The top of the page sums up the period: **Opening balance**, **In**, **Out** and **Closing
balance**. Each amount has its quantity under it. **Opening balance** + **In** − **Out** =
**Closing balance**.

Each row shows the movement's quantity, unit cost and total, and the stock and its value after
that movement.

- On an issue or transfer row, **Taken from:** lists the documents FIFO took the goods from and
  how many from each.
- On a row where goods came in, the **Left** column shows how much of that quantity is still in
  stock today.

When all warehouses are chosen in the **Warehouse** filter, a transfer is one row and its
**Warehouse** column shows the direction, for example "Main warehouse → Tartu distribution
centre". The stock and its value do not change across that row, and the transfer counts in
neither **In** nor **Out**, because the goods stayed in the company. When you choose one
warehouse, the transfer is that warehouse's out row (**Transfer out**) or in row (**Transfer
in**) and counts in **Out** or **In** accordingly.

**Export** downloads the report as an XLSX or PDF file, exactly as the page shows it.

In the example, the issue VM-26001 row shows that 10 pcs came from the opening balance AL-26001
and 5 pcs from the receipt ST-26001. The **Left** column of the receipt ST-26001 shows 5.

Say the example's documents are in the Main warehouse and after the issue the transfer LL-26001
takes 3 pcs to the Tartu distribution centre. By FIFO it costs 3 × 5,00 = 15,00 €. The document
AL-26001 is inside the period, so it counts in **In** and the summary's **Opening balance** is
0,00 €.

| Warehouse | Opening balance | In | Out | Closing balance |
| --- | --- | --- | --- | --- |
| All warehouses | 0,00 € | 90,00 € (20 pcs) | 65,00 € (15 pcs) | 25,00 € (5 pcs) |
| Main warehouse | 0,00 € | 90,00 € (20 pcs) | 80,00 € (18 pcs) | 10,00 € (2 pcs) |

With all warehouses chosen, LL-26001 is one row, "Main warehouse → Tartu distribution centre",
and the stock and its value stay at 5 pcs and 25,00 € across it. With the Main warehouse chosen,
LL-26001 is that warehouse's out row and 2 pcs are left in the Main warehouse.

## Stock control

**Warehouse → Stock control** shows, as of the chosen date and for each inventory account, the
stock value, the general ledger balance and the difference between them. You choose the date in
**As of**, with the same quick days as on [Stock on hand](#stock-on-hand). An item's value is
listed under its warehouse's inventory account. If the warehouse has none, it is listed under the
stock article's inventory account, if the item has none either, under its article group's inventory
account, and if that has none, under the company's default inventory account. The company's default inventory account is always in the report, even when
no goods are on it.

When stock has not been taken onto the books, or the chosen date is before the stock posting
start, the difference is expected and the page shows a notice saying so. When stock has not been
taken onto the books, the notice has a **Take stock onto the books** button that opens
**Warehouse settings**. From the stock posting start the difference is 0,00. If it is not, the
inventory account holds an entry the warehouse did not make, for example a manual entry or a
purchase invoice line.

**Export** downloads the report as an XLSX or PDF file, exactly as the page shows it.

## Views

On the **Stock on hand**, **Stock movements**, **Stock articles**, **Movement detail** and
**Stock control** pages you can save the chosen filters as a view. Open **Views** and click **Save
current view**. Type the view's name and press Enter. Other users do not see your views.

The view marked with a star is the **Default view**: it opens when you come to the page without
filters.

When a view holds a quick choice, such as **End of last month** or **Last month**, Numera works
out the date again each time: next month the same view shows the new month end. A date or period
you picked yourself stays the same in the view.
