TNK Posted May 17, 2023 Share Posted May 17, 2023 (edited) I calculated the average cost as written in Loyverse with one of my items and it is not giving the same number? 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 May 17, 2023 by TNK Link to comment Share on other sites More sharing options...
Solution Yamil Posted May 17, 2023 Solution Share Posted May 17, 2023 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. Link to comment Share on other sites More sharing options...
TNK Posted May 18, 2023 Author Share Posted May 18, 2023 Thanks! I have 2 stores and the stocks were 15 and not 10, now it gives me the correct average cost. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now