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
This commit is contained in:
Mike Evans
2012-02-28 18:38:26 +00:00
parent 7d5443fee5
commit 105ab023f4
16 changed files with 1836 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
# This is a comment line
# Good company has no ID and will be allocated one automajically
,Good Company,Accounts Dept.,1 Rich drive,,,,,,,,,,,,,,,
# Average company has an ID and will be used literally. An already existing
#company with the same ID will be UPDATED. This may not be what you want!
000099,Average Company,Accounts Dept,50 Poor Avenue,,,,,,,,,,,,,,,
#Just another example after a blank line
,"Bad Company",Accounts,99 Destutute street,,,,,,,,,,,,,,,
1 # This is a comment line
2 # Good company has no ID and will be allocated one automajically
3 Good Company Accounts Dept. 1 Rich drive
4 # Average company has an ID and will be used literally. An already existing
5 #company with the same ID will be UPDATED. This may not be what you want!
6 000099 Average Company Accounts Dept 50 Poor Avenue
7 #Just another example after a blank line
8 Bad Company Accounts 99 Destutute street