From 86c22853ee70e74954c652ba34dd0d499de50e54 Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Mon, 9 Nov 2020 02:49:21 +0100 Subject: UstIDs for Customers and Owner, Tax Rate implemented --- importexport.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'importexport.go') 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, } -- cgit v1.2.3