Open simonmichael opened 6 years ago
@simonmichael, should bin/hledger-check.hs compile? As far as you know. Or any others in bin/ I am looking a minimal executable with arguments so I can add in multiBalanceReportHtml* functions and gradually build up. I have cobbled something together but I am stuck with the argument options.
They should, but they don't - thanks, I have opened #1072.
@simonmichael, would you expect to see a heading for this output?`
e.g. hledger r -f ./tests/incomestatement/sample.journal
For example:
Date Memo Account Debit Credit
2008/01/01 income assets:bank:checking $1 $1
income:salary $-1 0
2008/06/01 gift assets:bank:checking $1 $1
income:gifts $-1 0
2008/06/02 save assets:bank:saving $1 $1
assets:bank:checking $-1 0
2008/06/03 eat & shop expenses:food $1 $1
expenses:supplies $1 $2
assets:cash $-2 0
2008/12/31 pay off liabilities:debts $1
assets:bank:checking $-1
(in html obviously)
Yes, I'd expect HTML reports in general to have useful headings.
Arguably headings for this one would be nice on the console too, though it's different from Ledger. A separate issue.
@simonmichael how do I get the transactions? (I've been staring too long at this hoping.)
-- | Find the most similar and recent transactions matching the given
-- transaction description and report query. Transactions are listed
-- with their "relevancy" score, most relevant first.
transactionsSimilarTo :: Journal -> Query -> Text -> [(Double,Transaction)]
in Add.hs seems like a contender.
And then there is similarTransaction'
in Print.hs.
@agander I'm not sure.. is this related to this issue ? Feel free to ping me on #hledger also.
Not all commands support HTML output. It would be nice to fix that. But more importantly, the ones which do advertise it in their help, but in many modes they will print a message saying it's not supported. Eg a single-column
balance
report. We should fix this. It's a matter of building out the html rendering functions in hledger/Hledger/Cli/Commands/*.