summaryrefslogtreecommitdiff
path: root/importexport.go
diff options
context:
space:
mode:
Diffstat (limited to 'importexport.go')
-rw-r--r--importexport.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/importexport.go b/importexport.go
index dde6026..b5da755 100644
--- a/importexport.go
+++ b/importexport.go
@@ -98,7 +98,7 @@ func ExportCustomers(in []Customer) {
defer w.Flush()
for _,i := range in {
//str := []string{Sint(i.Id),i.Company,i.Name,i.Address,Sflo(i.Satz),i.Lastbill.Format(time.RFC3339)}
- str := []string{Sint(i.Id),i.Company,i.Name,i.Address,Sflo(i.Satz),i.Lastbill.Format(timeform)}
+ str := []string{Sint(i.Id),i.Company,i.Name,i.Address,i.Uid,Sflo(i.Satz),i.Lastbill.Format(timeform)}
w.Write(str)
//w.WriteStruct(i)
}
@@ -249,15 +249,16 @@ func ImportCustomers() ([]Customer) {
for _, line := range lines {
id, err := strconv.Atoi(line[0])
checkErr(err)
- sat,err := strconv.ParseFloat(line[4],64)
+ sat,err := strconv.ParseFloat(line[5],64)
checkErr(err)
- tim,err := time.Parse(timeform,line[5])
+ tim,err := time.Parse(timeform,line[6])
checkErr(err)
data := Customer{
Id: id,
Company: line[1],
Name: line[2],
Address: line[3],
+ Uid: line[4],
Satz: sat,
Lastbill: tim,
}