gcinvoice: non-numeric invoice id
Ian Smith-Heisters
i at idiosyncra.tc
Thu May 29 01:32:46 EDT 2008
Hi all,
I code my invoices by project code and a numeric index, eg. BEE-1,
BEE-2. GnuCash works fine with this, but gcinvoice barfs:
---
Traceback (most recent call last):
File "/usr/bin/gcinvoice.py", line 252, in parse
invoiceentries = self.invoices_[invoiceguid]['entries']
KeyError: '268531cf5cde3b9de8bb30a5bc721129'
Traceback (most recent call last):
File "/usr/bin/gcinvoice.py", line 902, in <module>
outfile=getattr(options, 'outfile', None), options=options)
File "/usr/bin/gcinvoice.py", line 874, in createInvoice
gc.createInvoice(invoicenum, template=template, outfile=outfile)
File "/usr/bin/gcinvoice.py", line 350, in createInvoice
invoicenum = int(invoicenum)
ValueError: invalid literal for int() with base 10: 'BEE-1'
---
Just wondering if there's some other numeric id I should be using, or
if anyone knows of a workaround?
Thanks,
Ian
More information about the gnucash-user
mailing list