Guides

Goods Receipt and Purchase Invoice: How Are FIFO, Lowest and Average Stock Cost Calculated?

What the invoice says and what comes out of the box may not match. We explain the goods receipt flow, how received goods become cost layers, and the difference between FIFO, lowest and average cost methods with an example.

Oğuzhan AyyıldızCEO & Founder, Moontra UCMS
10 min read
Goods Receipt and Purchase Invoice: How Are FIFO, Lowest and Average Stock Cost Calculated?

Short answer: Goods receipt means taking goods that arrive at the warehouse into stock by checking them against the invoice and counting them. The received quantity enters stock; if the price is also known, that entry forms its own cost layer. If you bought the same product at different prices at different times, the stock costing method decides which batch's price is used when you make a sale: FIFO uses the batch that came in first, lowest cost uses the cheapest batch, and average cost uses the weighted average of the batches that are not used up. This choice changes the cost of an order, and therefore its profit.

This article is written for sellers who are looking for a "stock and warehouse tracking program" and want to know how goods entry and cost are recorded. We describe how UCMS does these two jobs based on behavior we verified in the code. For where goods receipt sits within the warehouse side of UCMS, see the warehouse management page.

Why is goods receipt done by counting?

The invoice from the supplier is a statement of intent: "I sent this much." The goods that actually enter the warehouse are whatever is in the box. The difference between the two is often small but silent. If missing goods are entered into stock based on the invoice, the number in the system shows more than the goods in the warehouse; the difference only shows up when an order for that product arrives. That is why a good goods receipt flow keeps three things apart: what was requested, what arrived, and what was not accepted.

How does goods receipt work in UCMS?

In UCMS, goods receipt is a scanning session tied to a purchase invoice.

The invoice is a request list

When a purchase invoice is created, the document opens as a draft and behaves like a request list: stock and cost are updated not at this stage but when the goods are received. Invoice lines also carry a unit price and a discount. During receipt, the price comes from the request list; receipt cannot be done without a valid price.

Receipt is done by scanning barcodes

The warehouse worker scans the product by its barcode; a receipt line without a barcode is invalid. The received quantity goes onto a shelf: a shelf barcode is required for every line that has a received quantity. The receipt is written to the stock of that shelf and recorded in the movement history.

The user doing the operation needs permission to create under the "purchase invoices" resource; read permission is not enough, because receipt writes stock and cost.

A product not on the invoice does not enter, and extra units do not enter

If a barcode that is not on the invoice is scanned, the receipt is rejected; the warning asks you to first add the unexpected goods to a line from the document detail. This way a wrongly scanned barcode cannot enter stock, and the reason the unexpected goods are on the invoice is on record. A receipt that exceeds the requested quantity is also rejected: only the remaining quantity is allowed.

Rejected goods do not enter stock

Goods that arrive but are not accepted are recorded as "rejected." A rejection does not enter stock and does not produce a cost layer; it is only a record. The quantity that did not arrive and the rejected quantity are kept apart in the report.

Four numbers: Requested, Received, Rejected, Not arrived

The goods receipt report shows four numbers for each item: requested, received, rejected, and not arrived. "Not arrived" is not entered separately; it is calculated by subtracting received and rejected from requested. For example, if the invoice says 200 units, 194 were accepted, and there is no rejection, then not arrived is 6 (the example is illustrative).

Partial shipments and closing the document

If the supplier shipped the goods in parts, the document stays open and the second shipment is scanned into the same document. When you close the document, the remaining quantity stays recorded as "not arrived"; the document is closed. There is no objection, return, or penalty flow with the supplier in UCMS; the system writes the difference onto the document, and talking to the supplier is up to you.

Received goods turn into a cost layer

For every received unit, if the price is known, UCMS opens a cost layer: how many units came in, at what price, and when. If the price is missing, empty, or negative, no layer is opened. On purchase invoice receipt the price must already be valid, so the received units produce a priced layer. A layer is also opened on manual stock entry if a price is entered.

The layer's date is the invoice date, not the moment the receipt is done. An invoice entered retroactively takes its place in the order according to the date the goods really came in.

Layers are consumed, in the quantity set aside, when an order reaches the system and stock is reserved, and the consumed amount is written to the order's cost. The cost method decides which layer is drawn from.

What is the difference between FIFO, lowest and average cost?

The three methods look at the same layers; they differ in which layer is consumed first. In UCMS the method is chosen on the Cost Method screen, and the default is FIFO. The screen requires integration update permission.

Method Which layer is consumed first? Description on the Cost Method screen
FIFO The oldest layer (by date) Goods that entered the warehouse first are consumed first. It is the method common in accounting standards.
Lowest cost The cheapest layer (by unit cost) The cheapest layer is consumed first. It shows profit higher than it is.
Average cost Weighted average of all layers not used up The weighted average of all layers not used up is used.

An illustrative calculation

Imagine you buy a product in two purchases (the numbers are illustrative, not measured):

  • First 30 units at 130 TL,
  • then 20 units on promotion at 110 TL.

Both are in stock and an order is for 40 units. The cost of the order comes out like this depending on the method:

Method Calculation Order cost
FIFO 30 × 130 + 10 × 110 5,000 TL
Lowest cost 20 × 110 + 20 × 130 4,800 TL
Average 40 × 122 (total value 6,100 TL, 50 units) 4,880 TL

The same sale, the same stock, three different costs. Since the sale price stays the same, profit also comes out three different ways. The source of the difference is not the product you sold, but the rule by which you assume which batch you sold. We cover the place of cost in profit calculation in our Turkish article on marketplace profit calculation.

Be careful with the lowest cost method

Lowest cost, as the table shows, gives a lower cost and shows profit higher. When you select this option, UCMS shows a warning on the screen: "Lowest cost" is not a standard method under Turkish tax law (VUK) and Turkish accounting standards (TMS), and it shows profit higher than it is. So to choose consistently with the method you use in your official records, you need to consult your accountant. The choice of method is an accounting decision; the software does the calculation, but it does not decide which one is right for you.

If you change the method, the past does not change

When you change the method, only the cost of orders from then on is calculated under the new method; order costs that were already calculated stay as they are. For this reason, changing the method in the middle of a period breaks month-to-month profit comparison. If you want comparable data, do not change the method often.

Common mistakes in goods receipt

  • Accepting the invoice without counting. Entering the invoice quantity without counting makes the number in the system show more than the goods in the warehouse. Scanning barcodes is the step that ties receipt to counting.
  • Entering the wrong price. The price goes to the cost layer and carries into the cost of orders; a wrong price is a silent profit drift. Check the invoice price before receipt.
  • Entering a backdated invoice and forgetting the order. The layer date is the invoice date; in FIFO this date decides the consumption order.
  • Not finishing receipt before a count. A receipt left half done during a count makes it harder to trace the reason for a count difference. We describe count preparation in our Turkish warehouse counting guide.
  • Trying to scan unexpected goods without adding them to the invoice. UCMS rejects this; first add the goods to a line from the document detail.

Limits you should know about

  1. Goods receipt and cost are part of the warehouse side of UCMS; they do not replace accounting. UCMS has Paraşüt and Kolay Bi' accounting integrations; turning a purchase invoice or cost into an official record is work for the accounting side.
  2. There is no lot, serial number, or expiry date tracking. Goods receipt entries track the batch by price and date; they do not track it by lot number or expiry date. If you come with that need, talk to us before you decide.
  3. The cost method is chosen from a single screen. We do not offer a separate screen that varies the method product by product.

Frequently asked questions

Are goods receipt and stock entry the same thing?

Goods receipt is a stock entry tied to a purchase invoice and compared against it: what was requested, what arrived, and what was rejected are kept apart. Manual stock entry is an operation not tied to an invoice, where a quantity is entered directly.

What is FIFO?

First In, First Out. The cost of the batch that entered the warehouse first is consumed first. It is the default method in UCMS.

The invoice says 200 units, 194 came out of the box. What should I do?

Scan and accept the 194 units. The 6 missing units stay on the document as "not arrived" and do not enter stock. If the supplier will send the shortfall later, the document stays open and the second shipment is scanned into the same document.

If I change the cost method, does the cost of past orders change?

It does not. The method applies only to orders from then on.

Which cost method should I choose?

This is an accounting decision; make it together with your accountant. The method common in accounting standards is FIFO; lowest cost is not a standard method.

You can see the whole warehouse side on the warehouse management page. To see the goods receipt and cost flow with your own products, try UCMS free for 14 days.

Get Started with UCMS

Ready to optimize your e-commerce operations?