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

Error for all queries (get_all and get_by_query) for order_entry_transaction endpoint #100

Open
mattrobinson412 opened this issue Oct 22, 2024 · 1 comment

Comments

@mattrobinson412
Copy link

Hello,

Running into this error when running either get_by_query or get_all with this code:

response = connection.order_entry_transactions.get_by_query( and_filter=[('greaterthan', 'WHENCREATED', '01/01/2020')]) print(response)

File "/Users/mattrobinson/Entrusted/moogle/.venv/lib/python3.12/site-packages/sageintacctsdk/apis/api_base.py", line 567, in get_by_query 'field': fields if fields else dimensions_fields_mapping[self.__dimension] ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ KeyError: 'SODOCUMENT'

@ashwin1111
Copy link
Contributor

@mattrobinson412 we're open for patches, SODOCUMENT is missing in sageintacctsdk/apis/constants.py. If you can add few basic fields that would be returned in the API call to this file, it should fix the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants