Commit Graph

8583 Commits

Author SHA1 Message Date
Simon Michael
00e9e844ac journal: the include directive now accepts a file format prefix
This works with glob patterns too, applying the prefix to each path.
This can be useful when included files don't have the standard file
extension, eg:

include timedot:2020*.md
2020-06-04 13:59:26 -07:00
Simon Michael
9bc8c5d668 ;cli: doc: json output seems not pretty printed right now 2020-06-04 13:59:26 -07:00
Dmitry Astapov
b7413edf22 lib: --forecast=PERIODICEXPR. Fixes #835, #1236 2020-06-03 15:53:00 -07:00
Dmitry Astapov
cbf4029b8b lib: test for issue with sign checking code + fix 2020-06-01 15:17:15 -07:00
Simon Michael
8b0618ce4d ;cli: doc: not basically 2020-06-01 04:48:30 -07:00
Simon Michael
97f2235bca ;lib: refactor amount cost functions
Rename costOfAmount -> amountCost, costOfMixedAmount -> mixedAmountCost,
drop amountToCost, mixedAmountToCost.
2020-05-31 15:48:08 -07:00
Simon Michael
90b18080b2 ;git: ignore lsp/ 2020-05-29 19:13:00 -07:00
Simon Michael
95b8e268ce ;lib: a few more zero-checking function references 2020-05-29 19:04:52 -07:00
Simon Michael
24c33f3105 ;make tag: include hledger-web hamlet templates 2020-05-29 19:04:27 -07:00
Simon Michael
945ee14bec ;git: don't ignore scripts in bin/ 2020-05-29 18:59:32 -07:00
Simon Michael
660ba7e1d9 lib: clarify zero-checking function names
isZeroAmount                -> amountLooksZero
isReallyZeroAmount          -> amountIsZero
isZeroMixedAmount           -> mixedAmountLooksZero
isReallyZeroMixedAmount     -> mixedAmountIsZero
isReallyZeroMixedAmountCost dropped
2020-05-29 18:57:22 -07:00
Simon Michael
74fae2e1de ;ci: use github cache v2
This may also clear the recent CI error with hledger-web,
where we appear to be somehow restoring a non-latest version
of Query.hs.
2020-05-29 18:04:52 -07:00
Simon Michael
1087e790cf ;lib: refactor transactionCheckBalanced 2020-05-29 17:57:10 -07:00
Simon Michael
7bcc205622 lib: drop transactionPostingBalances 2020-05-29 17:33:53 -07:00
Simon Michael
0a5fa33f9d split more long transaction balancing errors into lines; refactor 2020-05-29 16:31:15 -07:00
Simon Michael
924ec1c98d journal: clearer transaction balancing errors; refactor
As mentioned by netvor on IRC, the unbalanced transaction error was
not too clear when postings all have the same sign.

Some other wording has been clarified, and the main error message is
now shown on multiple lines for readability (at the cost of
predictability/grepability..)

There's also a probably unnoticeable change: selecting which parts of
the error to show is now based on display precisions (reusing the
balanced check logic), rather than original precisions.
2020-05-29 16:07:58 -07:00
Simon Michael
61264cfdc0 lib: isNegativeMixedAmount handles all-negative multi-comm. amounts 2020-05-29 13:07:02 -07:00
Simon Michael
e6f9f09b41 ;lib: refactor, consolidate, add transactionCheckBalanced 2020-05-29 11:57:48 -07:00
Henning Thielemann
ebe021b0c8 ;web: maintain queries in all other links, too 2020-05-27 04:59:55 -07:00
Henning Thielemann
ec27eb6b17 ;web: maintain query when choosing a different 'inacct' account on the sidebar 2020-05-27 04:59:55 -07:00
Dmitry Astapov
54300328cd cli: ability to pass arguments to getHledgerCliOpts + two example scripts 2020-05-27 04:58:57 -07:00
Simon Michael
9417ee625e ;regen manuals 2020-05-25 17:49:01 -07:00
Simon Michael
798a2c8674 ;web: note recent changes so they don't get lost 2020-05-25 17:47:35 -07:00
Simon Michael
93154e9251 update and clean up valuation docs (#1239) 2020-05-25 17:45:31 -07:00
Simon Michael
e1ddfc3a1b lib: also infer market prices from transactions, like Ledger (#1239) (WIP) 2020-05-25 17:45:31 -07:00
Dmitry Astapov
cbacef21eb lib: multiBalanceReport derives query from ReportOpts 2020-05-25 15:50:14 -07:00
Henning Thielemann
c35d0a8b44 ;web: transaction fragments: use numeric identifiers for journal files
This saves us from any escaping issues.
2020-05-25 10:02:39 -07:00
Henning Thielemann
e9792bfd42 ;web: links from register to journal now contain journal filename
in order to distinguish transactions from multiple journal files (#1041)
2020-05-25 10:02:39 -07:00
Simon Michael
61bec588d2 print,reg,balcmds: list output formats accurately in --help (#689)
Also:
- tweak the unsupported output format message
- Hledger.Cli.CliOptions no longer exports outputflags
2020-05-23 13:54:41 -07:00
Simon Michael
5f1a864c20 print,reg,balcmds: fix JSON output, which wasn't JSON (#689) 2020-05-23 13:30:22 -07:00
Simon Michael
40c296a446 lib: rename finaliseJournal -> journalFinalise 2020-05-23 09:45:35 -07:00
Simon Michael
36a2e311df ;make ghci[d]-shake: add regex dep 2020-05-23 07:06:02 -07:00
Simon Michael
4294fd36a9 ;web: JSON docs 2020-05-21 12:51:29 -07:00
Simon Michael
20c480a914 ;web: tweak JSON PUT doc 2020-05-21 10:48:04 -07:00
Simon Michael
e207b089c5 ;web: tweak JSON PUT doc 2020-05-21 10:36:43 -07:00
Simon Michael
936233f5f6 ;web: tweak JSON PUT doc 2020-05-21 10:31:30 -07:00
Simon Michael
683641d0f2 ;web: tweak JSON PUT doc 2020-05-21 10:08:52 -07:00
Simon Michael
39ab2a6b2b ;web: tweak JSON PUT doc 2020-05-21 10:05:57 -07:00
Simon Michael
0cf5e010de ;web: tweak JSON PUT doc 2020-05-21 10:05:04 -07:00
Simon Michael
fab62b4cc3 ;web: tweak JSON PUT doc 2020-05-21 09:59:14 -07:00
Simon Michael
7ccbfa11ac ;web: tweak JSON PUT doc 2020-05-21 09:57:27 -07:00
Simon Michael
0f922b3850 ;web: update JSON PUT example 2020-05-21 09:50:50 -07:00
Simon Michael
f284e7a87b ;web: drop unnecessary import that hiding Prelude in make ghci-web 2020-05-21 09:27:07 -07:00
Simon Michael
2c1cbb7956 ;csv: remove a comment breaking doctests 2020-05-12 18:01:05 -07:00
Simon Michael
4706b8cb00 ;regex doc tweaks 2020-05-10 13:15:15 -07:00
Simon Michael
24209a952c ;regex doc tweaks 2020-05-10 13:13:51 -07:00
Simon Michael
71111148ed ;regex doc tweaks 2020-05-10 13:11:53 -07:00
Simon Michael
f167c223a2 ;csv: emphasize regular expressions features and doc 2020-05-10 13:03:09 -07:00
Simon Michael
6b2dfad98c ;csv: clarify that whitespace is not stripped when matching 2020-05-09 15:43:44 -07:00
Simon Michael
3919f0945a ;csv: correction, that field equality trick was just a fluke 2020-05-09 15:37:11 -07:00