Commit Graph

2 Commits

Author SHA1 Message Date
Mike Evans
5e4fbfe8c3 Bug 721929 - Importing a customer list causes a crash.
Seems I omitted some things.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23677 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-10 12:14:08 +00:00
Mike Evans
105ab023f4 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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22065 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-28 18:38:26 +00:00