diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2020-11-09 02:49:21 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2020-11-09 02:49:21 +0100 |
| commit | 86c22853ee70e74954c652ba34dd0d499de50e54 (patch) | |
| tree | e110a6a3ead2882ec768c2d568b81e96d1efbae1 /importexport.go | |
| parent | 1f9dcb69b80d7a7b9211b106bfa130e125545f7c (diff) | |
UstIDs for Customers and Owner, Tax Rate implemented0.5.0
Diffstat (limited to 'importexport.go')
| -rw-r--r-- | importexport.go | 7 |
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, } |
