Skip to content

BUG: API get stockmovements sqlfilter - Unknown column 't.product_id' #34315

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

Open
JonBendtsen opened this issue May 28, 2025 · 0 comments
Open
Labels
Bug This is a bug (something does not work as expected)

Comments

@JonBendtsen
Copy link
Contributor

Bug

BUG: when I try to use the API to get stockmovements for a product the text says:

Other criteria to filter answers separated by a comma. Syntax example "(t.product_id:=:1) and (t.date_creation:

but when I actually use it with this sqlfilter (t.product_id:=:128)

I get the error message

{
  "error": {
    "code": 503,
    "message": "Service Unavailable: Error when retrieve stock movement list : Unknown column 't.product_id' in 'WHERE'"
  }
}

Dolibarr Version

21.0.1

Environment PHP

8.2.28

Environment Database

mariadb latest

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

@JonBendtsen JonBendtsen added the Bug This is a bug (something does not work as expected) label May 28, 2025
JonBendtsen pushed a commit to JonBendtsen/dolibarr that referenced this issue May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant