associate jpeg image of reciept with a transaction?

Neil Williams linux at codehelp.co.uk
Wed Dec 8 14:55:57 EST 2004


On Wednesday 08 December 2004 4:20 pm, Ben Pracht wrote:
> Personally, I'd think that if it could be done, it'd probably be best to
> put some sort of a link from the XML file to a member in a separate file
> containing compressed jpgs' or gif's or whatever.

The QSF XML format can cope with this - once a suitable object is available in 
GnuCash.

http://code.neil.williamsleesmill.me.uk/qsf.html

I haven't got time to write the object though.

> Separately, it'd be excruciatingly nice if I can get a globally unique
> ID (within all transactions) that was short enough to write down on
> paper.

The GUID can be printed as a 32 character hexadecimal string:
c0dd5ca1b11338f3ceae57f6e0106d75

The GUID is unique across all QOF applications.

this is what you've seen . . . 

> wrong.  There is an ID with every transaction inside the XML file
> itself, but that's several inches long making it too impractical for me
> to hand write on every source document.

QSF will deal with this for you, you'd store the GUID in the XML and never 
need to write it out. (or type it out).

Any shorter and the GUID will re-occur in another user data file. Once data 
gets shared around, this will cause problems and data loss.

> Also, there seems to be no way 
> of getting that information without looking at the XML file itself.

I'm working on that. Any GnuCash object should be exportable as QSF once it's 
ready. I don't think I can do anything about reports and shares may be a 
problem, but the rest should be exportable in any selection. There is no 
requirement for a QSF file to contain any particular objects - any defined 
object, any number of defined objects.

> I'd 
> like to see it in the account register and general journal and also in
> reports.  I'd like both the scanning of the receipt and the unique ID,
> but would probably prefer the unique ID first.

I wouldn't recommend shortening the GUID - it will break.

> Since I'll probably never have the time to contribute or do anything
> other than use GnuCash, I can certainly understand why no one else would
> want to tackle this, however.

Already in hand.

-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-user/attachments/20041208/4c69d9f1/attachment.bin


More information about the gnucash-user mailing list