External Program

John Ralls jralls at ceridwen.us
Thu Jun 9 18:04:26 EDT 2016


> On Jun 8, 2016, at 7:17 PM, Mark Mercer <markm at woodjoint.ca> wrote:
> 
> Hi, I am setting up gnucash to manage my small business using MySQL.  I am a programmer.  I want to write my own program for generating sales receipts and I am trying to have that program insert the sale into the gnucash database just as if gnucash had create it itself.  But I believe there is something about the guid that allows gnucash to differentiate records it has created from ones it has not because nothing I create externally is showing up in gnucash.
> 
> Does anyone know of a way I can do this?  If I just need to use the correct function to generate a valid guid please let me know what file I should look at to figure out how to do that.  Thanks.


As Aaron says, you're probably creating incorrect transactions rather than that there's something wrong with your GUIDs. The best way to get where you want is to use the GnuCash API to generate and insert your transactions. The Doxygen docs for the API are at http://code.gnucash.org/docs/MAINT.

Regards,
John Ralls




More information about the gnucash-user mailing list