r22065 - gnucash/trunk - New plugin to import customers and vendors from a csv type file.

Mike Evans mikee at code.gnucash.org
Tue Feb 28 13:38:27 EST 2012


Author: mikee
Date: 2012-02-28 13:38:26 -0500 (Tue, 28 Feb 2012)
New Revision: 22065
Trac: http://svn.gnucash.org/trac/changeset/22065

Added:
   gnucash/trunk/doc/examples/customers_import.csv
   gnucash/trunk/src/plugins/customer_import/
   gnucash/trunk/src/plugins/customer_import/Makefile.am
   gnucash/trunk/src/plugins/customer_import/dialog-customer-import-gui.c
   gnucash/trunk/src/plugins/customer_import/dialog-customer-import-gui.h
   gnucash/trunk/src/plugins/customer_import/dialog-customer-import.c
   gnucash/trunk/src/plugins/customer_import/dialog-customer-import.h
   gnucash/trunk/src/plugins/customer_import/gnc-plugin-customer_import.c
   gnucash/trunk/src/plugins/customer_import/gnc-plugin-customer_import.h
   gnucash/trunk/src/plugins/customer_import/gtkbuilder/
   gnucash/trunk/src/plugins/customer_import/gtkbuilder/Makefile.am
   gnucash/trunk/src/plugins/customer_import/gtkbuilder/dialog-customer-import-gui.glade
   gnucash/trunk/src/plugins/customer_import/libgncmod-customer_import.c
   gnucash/trunk/src/plugins/customer_import/ui/
   gnucash/trunk/src/plugins/customer_import/ui/Makefile.am
   gnucash/trunk/src/plugins/customer_import/ui/gnc-plugin-customer_import-ui.xml
Modified:
   gnucash/trunk/configure.ac
   gnucash/trunk/src/engine/gncIDSearch.c
   gnucash/trunk/src/plugins/Makefile.am
Log:
New plugin to import customers and vendors from a csv type file.
>From a patch by Sebastian Held.
Again the CSV file is of fixed number of fields, similar to invoice/bill importer.
Please test this.
Field list:
id,  company,  name,  addr1,  addr2,  addr3,  addr4,  phone,  fax,  email,  notes,  shipname,  shipaddr1,  shipaddr2,  shipaddr3,  shipaddr4,  shipphone  shipfax,  shipemail
Vendors don't have shipping information so even though the fields have to exist, leave them empty.
The id field is optional, if empty a new id will be chosen. If an id is used this will UPDATE
a vendor/customer with the same id.  This may not be what the user wants.  Maybe this should
be optional/selectable behaviour.
To enable the plugin, add the line:
(gnc:module-load "gnucash/plugins/customer_import" 0)
to ~/.gnucash/config.user



More information about the gnucash-patches mailing list