Skip to content
Besh Bilişim Technology Services
bilgi@beshbilisim.com
İsmet Kaptan, 1372. Sk. No:15 Kat:5 D:501, 35610 Çankaya/İzmir
Besh Bilişim Besh Bilişim Besh Bilişim
  • Home
  • Services
    • Izmir Software and Web Services

      Izmir-based Besh Bilişim: website design, custom software, mobile apps, e-commerce and automation services under one roof.

    • Website Design

      We design fast, secure, mobile-friendly and SEO-ready corporate websites so your brand looks professional on every screen.

    • Besh CMS

      Manage your pages, blog and media from a single panel with minimal coding knowledge and update your site whenever you like.

    • Mobile Applications

      We build fast, user-focused mobile apps for both iOS and Android from a single React Native codebase. Get a quote for your mobile project.

    • Automation Software

      We build software that automates processes such as invoicing, delivery notes and stock tracking, and saves you time.

    • Accounting Software

      Track and manage invoices, accounts, stock, cash and bank transactions easily from a single program. Explore Besh Bilişim accounting software.

    • E-Commerce

      Sell your products online and track orders in one place; we build tailor-made, SEO-friendly e-commerce platforms.

    • SEO Services

      We help your website become more visible on Google and win more visitors and potential customers. Get in touch for our SEO services.

    • Web Software

      We build fast, scalable corporate web applications and portals with Next.js, React, TypeScript and .NET. Get a quote for your project.

    • Support and Maintenance

      Installation, training, maintenance and 24/7 technical support keep your systems running without interruption.

    • Custom Software Development

      Where off-the-shelf programs fall short, we build custom software designed around your business. Tell us what you need and get a quote.

  • Blog
  • About
  • Contact
EN
EN
Contact Us
November 28, 2026 Besh Bilişim Software Development

Stock Costing in an ERP: FIFO, Weighted Average and Batch-Based Cost Compared

Why does stock cost depend on the method?

When you buy the same product at different prices, the cost of goods sold depends on which purchase it is counted from. This choice affects profit, stock value and in some cases the tax base; the ERP calculates it automatically but you decide which method it uses.

The legal framework differs by country and purpose. In Turkey, for tax purposes stock is valued at cost under Article 274 of the Tax Procedure Law; according to a Denet circular, the methods commonly used in the literature are first-in first-out (FIFO), weighted average and moving weighted average. In financial reporting, under IAS 2 the FIFO and weighted average cost formulas are permitted and last-in first-out (LIFO) is prohibited. Which method is valid and changeable for you depends on legislation and your accountant's opinion; this post describes how the methods behave in an ERP and is not tax advice.

Four methods, one example

A numerical example prepared by the author (hypothetical figures): 100 units are bought at 10 TL, 60 are sold, then 100 are bought at 12 TL and 90 more are sold. Total purchases are 2,200 TL, 150 units are sold and 50 remain in stock.

Method Cost of goods sold Remaining stock value Logic
FIFO (first in, first out) 1,600.00 TL 600.00 TL Sales come off the oldest purchase
Moving weighted average 1,628.57 TL 571.43 TL The average is recalculated after each purchase
Period-end weighted average 1,650.00 TL 550.00 TL One average of all purchases (2,200 / 200 units = 11 TL)
By batch (specific identification) By the batch sold By the batch left Each batch is tracked at its own cost

In every row, cost of goods sold plus remaining stock value equals 2,200 TL; the difference is only which period the cost is charged to. When prices rise, FIFO shows a lower cost of sales and therefore higher profit; when prices fall, the reverse.

How is a method applied in an ERP?

  • The method is stored on the stock card or in a general parameter. Some ERPs set one method for the whole company, others by item group.
  • Moving average needs continuous inventory. Every stock receipt and issue must be posted immediately; if a receipt is posted late, the average drifts.
  • Period-end average needs a calculation run. Until the month- or year-end costing run is executed, issue cost may be provisional.
  • FIFO needs batch and date tracking. The ERP finds which purchase an issue comes off from the stock movement order.
  • Batch/serial tracking is independent of the method: it is used for traceability (for example food, pharma) or high-value items.

Which method in which situation?

The following is the author's general assessment; decide with your accountant.

Situation Common choice Why
Identical items, frequent price changes Moving average Smooths cost fluctuations
Shelf-life products FIFO Matches the physical flow (oldest out first)
High-value items tracked one by one By batch/serial The real cost of each piece is known
Raw materials in production FIFO or average Consistent recipe costing

Traps when switching and using

  1. Changing the method often breaks comparison between periods; if a change is needed, plan it with your accountant.
  2. Negative stock breaks the average and FIFO calculation: if a sale is made before the receipt is posted, cost is calculated wrongly. Turn on the negative stock warning.
  3. For foreign-currency purchases, how exchange differences affect cost depends on an ERP parameter; test the setting.
  4. Landed costs (freight, customs) leave stock value understated if they are not allocated; define the allocation rule.
  5. Period closing: Do not close a period without running the costing calculation.

Frequently Asked Questions

What is the main difference between FIFO and moving average?

FIFO values each issue at the price of the oldest purchase, moving average at the average price at that moment. If prices fluctuate, profit and stock value differ between the two; total cost is the same but its distribution changes.

Can the method be changed later in an ERP?

Technically most ERPs allow it, but past movements may need re-costing. Ask your accountant first whether the change is valid for tax and financial reporting.

Are batch tracking and the costing method the same thing?

No. Batch tracking follows which purchase batch a product came from; the costing method decides how issue cost is calculated. Batch-based costing combines the two.

For ERP stock and costing setup, see our accounting software page or the contact form. Our post on ERP for manufacturers: BOM, work orders and inventory costing may also be relevant for recipe costing.

Sources: Reminders on stock valuation methods (Denet Circular, in Turkish), IAS 2 Inventories (IAS Plus)

Cover photo: Fujiphilm / Unsplash

FIFOWeighted AverageAccounting SoftwareERPInventory CostingInventory Management
Add Besh Bilişim as a preferred source on Google All posts
Latest posts
  • Digitising Order Approval Processes: From Email and WhatsApp into the System
    Digitising Order Approval Processes: From Email and WhatsApp into the System
    December 1, 2026
  • CRM Data Quality: Duplicate Records, Missing Fields and a Clean-Up Plan
    CRM Data Quality: Duplicate Records, Missing Fields and a Clean-Up Plan
    December 1, 2026
  • How to Write Acceptance Criteria in a Software Project, with a Sample Template
    How to Write Acceptance Criteria in a Software Project, with a Sample Template
    December 1, 2026
  • Data Migration to an ERP: Data Cleaning Steps When Moving from the Old System
    Data Migration to an ERP: Data Cleaning Steps When Moving from the Old System
    November 30, 2026
  • Repeat Purchase in E-Commerce: Customer Segmentation and Automated Flows with CRM
    Repeat Purchase in E-Commerce: Customer Segmentation and Automated Flows with CRM
    November 30, 2026
Categories
  • Software Development 35
  • Web Development 17
  • AI and Security 6
  • SEO and Digital Marketing 3
  • E-Commerce 1
Tags
SMEsERPERP IntegrationE-CommerceCustom SoftwareDealer PortalKVKKB2BTotal Cost of OwnershipCRMIntegrationAIData MigrationERP MigrationSoftware SelectionWholesaleAPI IntegrationInventory ManagementIzmirAccounting Software
Besh Bilişim
  • Fb.
  • Ig.
  • In.

Besh Bilişim - Izmir Office İsmet Kaptan, 1372. Sk. No:15 Kat:5 D:501, 35610 Çankaya/İzmir

Email

bilgi@beshbilisim.com

Phone

+90 553 443 30 00
Newsletter

© 2026 Created by Besh Bilişim Teknolojileri

BESH

We use cookies to offer you a better experience and to analyze site traffic. Analytics cookies only work with your consent. Cookie and privacy information