aquilax / grafana-ledger-data-source-server

Grafana server for ledger data written in Go
MIT License
10 stars 0 forks source link

Unable to balance transaction #2

Open jesuspc opened 4 years ago

jesuspc commented 4 years ago

When running grafana-ledger-data-source-server -f <path> I get the following error:

panic: /Users/prietoj/Documents/finance/ledger/2019-2020.ledger:4: Unable to balance transaction, more than one account change empty

goroutine 1 [running]: main.main() /Users/prietoj/gocode/src/github.com/aquilax/grafana-ledger-data-source-server/main.go:83 +0xa94

The ledger file is properly formatted and works fine with ledger-cli. I am on Mac OS X and followed the installation instructions on the README.

aquilax commented 4 years ago

Looks like github.com/howeyc/ledger has problem balancing the transaction, can you please provide a sample data with mock values for which it fails? As far as I can see the issue is in 2019-2020.ledger around line 4