I want to retrieve information about Accounting "Closing date". Found here that it is present in Entitlements entity.
But looks like it is not supported by this library.
Is there any other way to get Accounting "Closing date".
Initial problem, I'm getting the following error when creating Bill or Invoice:
{
"error_code": "5010",
"detail": "The account period has closed. {1}",
"message": "Account Period Closed"
}
Also created issue on StackOverflow for that in python-quickbooks library that I use to access data.
You can use Preferences
entity for that. It contains AccountingInfoPrefs.BookCloseDate
.
Currently, it doesn't fully support by python-quickbooks
yet (see this open PR, but you can use this fork that has implemented Preferences. You can install it using:
pip install git+https://github.com/wowkin2/python-quickbooks.git@entity_preferences
P.S. Watch out for minorversion
you use to initialize QuickBooks()
object, it should be at least minorversion=21
.