Management accounting

How is cost calculated?

Cost is how much the products that went into a dish, an act or another document are worth. B52 calculates it at the last purchase price. Below is exactly how, with examples. The general workflow is described in the article "How do I keep inventory?".

The main rule

When a product is written off, the program takes the price from the last posted goods receipt for this item. The receipt date must be no later than the moment of the write-off.

  • There is one price for the whole venue. It does not matter which department the product came into.
  • Only posted receipts count. A draft receipt gives no price.
  • Rows with a zero price are skipped.
  • VAT is not separated. The cost uses the price from the receipt exactly as it was entered.

Example. On 1 October you bought 10 kg of pork at 200, and on 8 October another 10 kg at 220. Everything written off from 1 to 7 October goes at 200. Everything written off from 8 October goes at 220, including what was left of the first delivery.

That is why the value of the balance may differ slightly from the difference between receipts and outgoings. Usually the difference is the rest of the old delivery revalued at the new price.

Purchase units

The price is always calculated per base unit. If you buy by the case, the program divides the case price by the factor. A case of water costs 240 and holds 12 bottles, so a bottle costs 20.

When the price is fixed

The cost is written into the document row at the moment of posting. A new receipt does not change documents that are already posted.

If a receipt was entered with a past date, the shifts after its date get the "Write-off is outdated" mark. After "Recalculate write-off", the program fixes the cost of all posted documents in the period again at the new prices. More in the article "Why is the write-off outdated and what does "Recalculate write-off" do?".

Special cases

  • Return to supplier and external sales. The program first looks for the last receipt from the same counterparty. If there is none, it takes the general last price.
  • Production. A prepped item costs as much as the ingredients written off for it at their last prices. The unit price is the total divided by the quantity.
  • A prepped item from stock. When a ready sauce goes into a dish, it is written off at the price of the last production.
  • Processing. The cost of the source product is split between the parts by weight. The article "How do production and processing work?" explains how this works.
  • Stock count. Shortage and surplus are valued at the last price at the moment of the count.

If there was no receipt

  • The item has a recipe card. The cost is calculated by the recipe card: the ingredients at their last prices, divided by the yield.
  • There is no recipe card. The cost will be 0.

In a recipe card, such an ingredient is marked "no price". If there is an unposted receipt, the note "Receipt … is not posted" appears next to it with a link to it. Post the receipt and the price appears. Then recalculate the write-off.

Where to see cost

  1. A dish's recipe card. Open the dish in "Setup" → "Menu"; the "Recipe card" section is at the bottom of the card. The "Price per unit" column shows the ingredient price, and the "Cost per 1 …" column shows its share in a portion. Below the table you see the portion cost and "Food cost … % at price …". These use current prices.
  2. Documents. Write-off acts and transfers have a "Cost" column. Production and processing have "Unit cost" and the "Written off" table.
  3. Shift write-off. In "Shifts and checks", open the shift and go to the "Write-off" tab. "Written off at cost" is on the right above the table.
  4. Stock balances. In "Inventory", on the "Stock balances" tab, the "Cost" column is the balance multiplied by the last price on the selected date.
  5. Stock count. The "Price" and "Difference total" columns.
  6. The P&L dashboard. Cost of sales is the automatic shift write-off.

Below the rows of many documents there is a "How cost is calculated" link. It opens the short "How stock accounting works" help right at the "Cost" section. The same help opens with the "How stock works" button at the top right of the "Inventory" section.

How to keep cost accurate

  1. Enter receipts on the day of delivery and post them right away.
  2. Check the prices in the receipt against the supplier's paperwork. A wrong price immediately distorts the cost of every write-off after it.
  3. Make sure every ingredient in your recipe cards has a price. The "no price" mark is a signal to enter a receipt.
  4. If you corrected a price in an old receipt, click "Recalculate write-off" in "Shifts and checks".

Still have questions?

Ask the AI assistant in Back office or contact B52 support.

Contact support

What it looks like

B52 in B52

B52 screen: B52