Skip to content
View in the app

A better way to browse. Learn more.

Loyverse Town

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Average Cost not matching

Featured Replies

I calculated the average cost as written in Loyverse with one of my items and it is not giving the same number?
image.png.8666cb9e74e88b1c66cb52f0d6592829.png

 

Lizano Sauce = 10 stocks and 2.5 dollars cost
Adding new stocks and price = 20 stocks and cost 1.3 dollars

Newcost = (10 * 2.5 + 20 * 1.3) / (10+20)
Newcost = (25 + 26) / 30
Newcost = 51 / 30
Newcost = 1.7

But in the system it shows that the average cost for the Lizano Sauce is 1.81 dollars. What am I doing wrong?

Edited by TNK

Solved by Yamil

  • Solution

Could you verify if you took into account all stocks of that item?
The value of the StockBefore should be the number of all stocks including the other stores too.

  • Author

Thanks!

I have 2 stores and the stocks were 15 and not 10, now it gives me the correct average cost.

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.