r/grocy•
Shiari

Stock splitting question

Thank you for your efforts on Grocy.

Say I buy 5 bottles of a product and get stock_id 69f68dc81c01b. Great, I can print a label for this, and the label points to this particular "set of stock", all the items of this particular purchase, not to any other purchases of the same product. Now, I make an API call to transfer one of the 5 bottles from stock_id 69f68dc81c01bto another location, and I end up with 2 stock entries, but both with the very same stock_id 69f68dc81c01b but one with 1 bottle, and one with 4 bottles. My printed label is no longer unique, it points to either 1 bottle, 4 bottles, or 5 bottles. I can no longer track them individually through the stock_id and thus their label. I've verified this behaviour also happens through the UI, not just the API calls.

I would expect the stock_id to be unique per stock entry row after a transfer or any similar action that breaks up the stock entry rows, so they can be tracked independently. Is my assumption wrong? Is there perhaps a workaround to give them a new stock_id?

Posted Jun 2, 2026, 1:09 PM UTC

34
Loading comments…