Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor formatting glitch #61

Closed
hrj opened this issue Mar 5, 2015 · 2 comments · Fixed by #140 or #141
Closed

Minor formatting glitch #61

hrj opened this issue Mar 5, 2015 · 2 comments · Fixed by #140 or #141

Comments

@hrj
Copy link
Owner

hrj commented Mar 5, 2015

Given a.ledger:

2013/Jan/1
  e:a     100
  i

2013/Jan/1
  e:b     100
  i

2013/Jan/1
  e:c     100
  i

2013/Jan/1
  e:c     -100
  i2

And a.conf:

inputs += a.ledger

reports += {
  title = "All"
  type = balance
}

abandon_cli.sh -c accounts.conf gives:

All
───

   200.00   e      
   100.00    ├╴a   
   100.00    ├╴b   
  -300.00   i      
   100.00   i2     
───────────────────────────────
     0.00           0.00 = Zero

The ASCII art is slightly broken for e:b. It should have an elbow joint rather than a T-Joint.

@hrj hrj modified the milestone: next release Feb 16, 2017
@hrj hrj closed this as completed in #140 Feb 25, 2017
hrj pushed a commit that referenced this issue Feb 25, 2017
* Minor formatting glitch
@hrj
Copy link
Owner Author

hrj commented Feb 25, 2017

@gerdreiss I am afraid this is not fully solved. Use a.ledger from the first comment and a.conf as below:

inputs += a.ledger

reports += {
  title = "Non zero"
  type = balance
  showZeroAmountAccounts = false
}

reports += {
  title = "All"
  type = balance
  showZeroAmountAccounts = true
}

Before your fix, the output was:

Non zero
────────

   200.00   e      
   100.00    ├╴a   
   100.00    ├╴b   
  -300.00   i      
   100.00   i2     
───────────────────────────────
     0.00           0.00 = Zero


All
───

   200.00   e      
   100.00    ├╴a   
   100.00    ├╴b   
     0.00    └╴c   
  -300.00   i      
   100.00   i2     
───────────────────────────────
     0.00           0.00 = Zero

and now it is:

Non zero
────────

   200.00   e      
   100.00    ├╴a   
   100.00    ├╴b   
  -300.00   i      
   100.00   i2     
───────────────────────────────
     0.00           0.00 = Zero


All
───

   200.00   e      
   100.00    ├╴a   
   100.00    ├╴b   
     0.00    └╴c   
  -300.00   i      
   100.00   i2     
───────────────────────────────
     0.00           0.00 = Zero

That is, "All" report is now fixed, but "Non zero" is now broken.

@hrj hrj reopened this Feb 25, 2017
@gerdreiss
Copy link
Contributor

@hrj , sorry, I overlooked it completely. I'll fix it immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants