Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Incorrect Stock notification #898

Closed
oxigen-dev opened this issue Dec 13, 2024 · 1 comment
Closed

[BUG] Incorrect Stock notification #898

oxigen-dev opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@oxigen-dev
Copy link

The quantity of not fresh items is incorrect.

It shows that 5 products are not fresh:

image

In reality only 3 are not fresh:

image

@patzly patzly added the bug Something isn't working label Dec 25, 2024
@patzly
Copy link
Owner

patzly commented Dec 25, 2024

Thanks! I just tried to reproduce this with the API and it seems the web interface also displays the wrong number (screenshot taken after click on "3 products are overdue"):

Screenshot 2024-12-25 at 17 39 47

After studying the API response I saw the mistake: the expired item is also included in the overdue items, maybe a bug or a feature. But this doesn't fully explain your screenshot, 2+1 and 1 only accumulates to 4 and not 5... I think you maybe took the screenshot after an item was consumed or something was cached wrongly. Hopefully my fix fixes the bug for you.

@patzly patzly closed this as completed in 55859d5 Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants