fixes #8 type and version added to json export

This commit is contained in:
Andreas Schröpfer
2021-03-01 16:36:48 +01:00
parent 040e8c7303
commit 2511a2fcd3
3 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ func XLSX(r io.Reader, conf *Conf) (*ecalc.Ecalc, error) {
if conf == nil {
conf = DefaultConf()
}
eBalance.Version = conf.Version
eBalance.Type = conf.Type
xFile, err := excelize.OpenReader(r)
if err != nil {
return nil, fmt.Errorf("XLSX.OpenReader: %w", err)