Importing Client Details
Derek Atkins
warlord at MIT.EDU
Sat Mar 28 19:23:34 EDT 2009
Colin,
"Colin Scott" <gnucash at double-bars.net> writes:
> The XML was based on what I found in the gnucash file after creating a
> customer through the UI. Note that items in "«»" parentheses are
> replaced by actual data.
>
> This is the XML wrapper for each customer:-
>
> <gnc:GncCustomer version="2.0.0">
> <cust:guid type="guid">«custguid»</cust:guid>
> <cust:name>«custname»</cust:name>
> <cust:id>«custid»</cust:id>
> <cust:addr version="2.0.0">
> <addr:name>«addrname»</addr:name>
> <addr:addr1>«addraddr1»</addr:addr1>
> <addr:addr2>«addraddr2»</addr:addr2>
> <addr:addr3>«addraddr3»</addr:addr3>
> <addr:addr4>«addraddr4»</addr:addr4>
> <addr:phone>«addrphone»</addr:phone>
> </cust:addr>
> <cust:shipaddr version="2.0.0"/>
> <cust:taxincluded>USEGLOBAL</cust:taxincluded>
> <cust:active>1</cust:active>
> <cust:discount>0/1</cust:discount>
> <cust:credit>0/1</cust:credit>
> <cust:currency>
> <cmdty:space>ISO4217</cmdty:space>
> <cmdty:id>GBP</cmdty:id>
> </cust:currency>
> <cust:use-tt>0</cust:use-tt>
> </gnc:GncCustomer>
This looks okay, provided you give independent GUIDs.
Do you edit the correct number of customers into the counters
at the start of the file?
> Colin
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list