Import Invoice Entries by Database Trigger

Allen S. Rout asr at
Thu Mar 13 10:04:52 EDT 2014

On 03/12/2014 07:49 PM, John Ralls wrote:
> On Mar 12, 2014, at 7:03 AM, Adrian Hodson
> <no.bicycle.subscriptions at> wrote:

>> I'll have a go with the Python API.
> OK, but please remember to copy the list on all replies: Use "reply
> all" or, if your mail client provides it, "reply list".
> Invoices are among the more complicated processes in GnuCash and so
> the most likely to screw up your database if you go outside of the
> API. Good luck and don't test on your production data!

I'm scripting invoice entry for our Hackerspace, "In Production", if you
can call a hackerspace that.  Adrian, if you'd like, we can compare
notes and see if we can extract something a little less ad-hoc from what
you want and what I want.

IIRC, the dumbest part of the script is that the invoice needs a "terms"
thingy, which I don't understand, and the Python has no way to populate
it by hand, so we have a known invoice number from which we extract a
'terms' object, and then slap it on the new invoice.

- Allen S. Rout

More information about the gnucash-devel mailing list