Help with multi-line invoice automation and posting

Matt Thornton weirdbeard at gmail.com
Sun Apr 5 11:35:52 EDT 2015


Hi

On gnucash 2.6.5 - I am trying to batch create some invoices - about 40 of the same multi line invoices (differentiated only by customer ID) and then post them automatically to Accounts Receivable.

I have successfully crafted the CSV that will do this using the details here: http://www.gnucash.org/docs/v2.4/C/gnucash-guide/python-import-invoices.html - it will create the invoice with multiple lines - except for automatically posting the invoice. 

If I create a one-line invoice, then it *will* post to Acc Rec OK. If I create one CSV file which creates item 1 (but doesn’t post) and then create a second CSV file which creates item 2 (which does post it) and import them in order then this seems to work, but obviously it’s a bit clunky.

I noticed the importer seems to create the invoice lines in the reverse order they appear in the file, so tried adding the ‘post’-ing details only to the 1st (or 2nd) item, and this didn’t work.

is this a limitation of the invoice importer or perhaps I’m doing something wrong?

Many thanks for any tips.


More information about the gnucash-user mailing list