Another Job related question: using the form in the following example on
line 128:

https://code.gnucash.org/docs/MAINT/simple__business__create_8py_source.html

job = gnucash.gnucash_business.Job(book, '1', vendor, 'test')

This returns a warning:

WARN <gnc.backend.sql> [GncSqlColumnTableEntryImpl<Otype>::add_to_query()]
Invalid owner type: 0

What would be causing this, and is there a way to fix it?

On Fri, Aug 5, 2022 at 9:06 PM Robert Simmons <rsimmo...@gmail.com> wrote:

> In the Python bindings, I can see the methods that return the next
> available ID for most objects. But I am having trouble finding one for
> Jobs. I have read the help output from help(gnucash.gnucash_core_c). To
> create a new Customer, for example, I'm using the following:
>
> cust = gnucash.gnucash_business.Customer(book, book.CustomerNextID(), USD,
> 'Acme')
>
> I don't see an equivalent "book.JobNextID()".
>
> Is there a method or function that returns this?
>
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to