Commit Graph

8178 Commits

Author SHA1 Message Date
Simon Michael
7f16d23898 ;refactor: extract --value=then error message 2020-02-24 17:49:53 -08:00
Simon Michael
8b520b5c3e bs,cf,is,bal,print,reg: reject invalid output formats 2020-02-24 17:49:45 -08:00
Simon Michael
7ec25da13a web: edit/upload: normalise line endings, avoiding parse errors (#1194)
Renamed: writeValidJournal -> writeJournalTextIfValidAndChanged

Added comments clarifying line ending behaviour of:
add, import, appendToJournalFileOrStdout, readFilePortably,
writeFileWithBackupIfChanged, writeJournalTextIfValidAndChanged

Summary of current behaviour:

- hledger add and import commands will append with (at least some)
  unix line endings, possibly causing the file to have mixed line
  endings

- hledger-web edit and upload forms will write the file with
  the current system's native line endings, ie changing all
  line endings if the file previously used foreign line endings.
2020-02-24 14:04:44 -08:00
Simon Michael
696ec4998b ;doc: regen help/manuals
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
b9b5702946 ;doc: add hledger-ui note to --forecast help (#1193)
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
dac3920221 ;ui: drop redundant exitSuccess 2020-02-22 11:06:58 -08:00
Simon Michael
3bee9a96c9 ui: simpler forecast toggle: just visibility, no reload (#1193) 2020-02-22 11:06:58 -08:00
Simon Michael
4eba930a5c ui: don't force --auto/--forecast on; merge --future with --forecast (#1193)
Periodic transactions were always on, which meant that periodic
transactions occurring today were always shown, in future or present
mode.

Now, both periodic transactions and display of future transactions are
controlled by --forecast, and toggleable by the F key ("forecast
mode"). The --future flag has been dropped (it still works as a hidden
alias for --forecast, but is deprecated).

It seemed to also make sense to leave auto postings off by default,
like hledger.
2020-02-22 11:06:58 -08:00
Simon Michael
e8e1566083 ;bal: doc: document --transpose; remove obsolete limitation note
[ci skip]
2020-02-20 10:02:02 -08:00
Simon Michael
2d90074b2e ;csv: avoid a potential display of internal placeholder (#1192)
With a multicommodity amount, the unknown account name will always be
"expenses:unknown".
2020-02-15 14:02:53 -08:00
Simon Michael
017d3355f8 csv: allow manual assignment of "expenses:unknown" again (fix #1192) 2020-02-15 13:52:59 -08:00
Simon Michael
6ccda549b0 install: bump minimum stack version to 1.9.1
1.7.1 fails with deps using newer cabal file syntax I believe.

[ci skip]
2020-02-12 13:48:59 -08:00
Simon Michael
bd0753101e bs, cf, is: in csv output, subreport headings had two excess columns 2020-02-12 10:48:04 -08:00
Simon Michael
7359fdd32a ;doc:journal: edits (#1187)
[ci skip]
2020-02-11 10:38:08 -08:00
Simon Michael
86ffef1057 ;doc:journal: edits, Amount display format -> Amount display style (#1187)
Drop occasional use of "display format", prefer "display style".

[ci skip]
2020-02-11 10:23:52 -08:00
Simon Michael
9112e077ba ;doc: journal: edits (#1187)
[ci skip]
2020-02-11 10:18:39 -08:00
Simon Michael
0b2349c28f ;doc: journal: fix D example (#1187)
[ci skip]
2020-02-11 10:09:20 -08:00
Simon Michael
8ff225920a ;doc: journal: update D doc (#1187)
[ci skip]
2020-02-11 10:06:36 -08:00
Simon Michael
e4a0bdff8d journal: default commodity (D) limits display precision too (#1187)
D directives are now fully equivalent to commodity directives for
setting a commodity's display style. (Previously it was equivalent to
a posting amount, so it couldn't limit the number of decimal places.)
When both kinds of directive exist, commodity directives take precedence.
When there are multiple D directives in the journal, only the last one
affects display style.
2020-02-11 09:47:26 -08:00
Simon Michael
1741b607e2 lib: more cleanup of amount canonicalisation helpers (#1187)
Stop exporting journalAmounts, overJournalAmounts, traverseJournalAmounts.
Rename journalAmounts helper to journalStyleInfluencingAmounts.

D directives are now a little better at influencing amount
canonicalisation, eg in the updated test case.
2020-02-11 09:23:04 -08:00
Simon Michael
242bf528fd ;tests: convert default commodity tests to new format
[ci skip]
2020-02-11 08:34:22 -08:00
Simon Michael
926b01f2eb ;lib: try to clarify this amount traversing stuff (#1187) 2020-02-11 08:34:22 -08:00
Simon Michael
dad4d9b662 print: be sure to value all postings; -V/-X/--value now imply -x
Previously -B implied -x; now any of the valuation flags do.
This avoids a bug where print -V of a transaction with an implicit
commodity conversion would convert only some of its postings to value.

Also, more valuation tests.
2020-02-10 12:41:36 -08:00
Simon Michael
ae9d8d6e56 ;add then and t to --value's error message
[ci skip]
2020-02-10 12:40:02 -08:00
Mateus Furquim
05814e6fe7 Fix extra $ symbol 2020-02-10 10:18:20 -08:00
Simon Michael
af73547615 ;print, register: doc: some corrections to --value=then's effects
[ci skip]
2020-02-10 08:40:50 -08:00
Simon Michael
aa96b41efe print, register: add --value=then, valuing at each posting's date
Currently this will give an error with other kinds of report.
2020-02-10 08:20:39 -08:00
Jakob Schöttl
50acfc9119 Fix documentation, make ISO date format standard in some places 2020-02-09 07:26:54 -08:00
Simon Michael
0f5f573db7 ;doc: journal: fix wrong account type: value (hledger_site/#20)
[ci skip]
2020-02-08 12:44:54 -08:00
Simon Michael
4d94a5273b ;doc: manuals: whitespace cleanup
Remove a bunch of trailing whitespace with M-x whitespace-cleanup.
Except for examples showing hledger output, which might be tested
with shelltest some day, so stripping that whitespace might be problematic.

[ci skip]
2020-02-08 12:44:54 -08:00
Simon Michael
98d0cc9c17 ;doc: regen manuals
[ci skip]
2020-02-08 11:56:03 -08:00
Simon Michael
54e633e186 ;doc: hledger, journal, csv: consistent use of pipe tables
For consistency, ease of editing, and to fix unwanted content display
when cycling visibility in markdown-mode.

[ci skip]
2020-02-08 11:52:18 -08:00
Simon Michael
ea4b69db32 ;doc: hledger: markdown note
[ci skip]
2020-02-08 11:40:40 -08:00
Simon Michael
e3ab3b9985 ;doc: regen all manuals, bumping month
[ci skip]
2020-02-08 11:20:25 -08:00
Simon Michael
078e9c8e9c ;doc: hledger: merge examples, options, commands files
[ci skip]
2020-02-08 11:15:27 -08:00
Simon Michael
d60b053e11 ;doc: regen manuals
[ci skip]
2020-02-08 11:11:40 -08:00
Simon Michael
e52a6281fb ;doc: hledger: inline troubleshooting, cleanups, m4 docs
[ci skip]
2020-02-08 11:10:23 -08:00
Simon Michael
9a52523438 ;doc: hledger: not git commit -am, just -m
[ci skip]
2020-02-07 16:44:52 -08:00
Simon Michael
8c5aa130e7 ;doc: hledger: reorder OPTIONS sections, move one to COMMON TASKS
[ci skip]
2020-02-07 12:14:43 -08:00
Simon Michael
202d2e945b ;doc: regen manuals
[ci skip]
2020-02-07 12:14:08 -08:00
Simon Michael
fe96d089a1 ;doc: project changelog
[ci skip]
2020-02-07 10:47:55 -08:00
Simon Michael
fd64d7bb3a ;doc: regen manuals
[ci skip]
2020-02-07 10:45:57 -08:00
Simon Michael
6885dddd0e ;doc: add LEDGER_FILE tips to the ENVIRONMENT sections
(Probably too much.)

[ci skip]
2020-02-07 10:44:48 -08:00
Simon Michael
6878f74174 ;doc: hledger: write the new examples (Common Tasks) section
Examples are tested and should be correct.

[ci skip]
2020-02-07 10:42:57 -08:00
Simon Michael
743a63c319 ;doc: consolidate hledger manual a bit 2020-02-06 17:52:37 -08:00
Simon Michael
4dc82fc2b3 ;doc: journal: comments
[ci skip]
2020-02-05 19:41:07 -08:00
Simon Michael
659a034393 ;doc: makde some comments less like markdown headings
[ci skip]
2020-02-05 19:32:38 -08:00
Simon Michael
e39d5a14c3 ;examples: invoicing
Files related to https://hledger.org/invoicing.html
Working for me right now but not fully maintained.
2020-02-05 08:16:56 -08:00
Simon Michael
efc32138ac ;make manuals-watch
[ci skip]
2020-02-03 10:38:39 -08:00
Simon Michael
088e253eff ;doc: journal: note quotes needed in auto posting queries (#1185)
[ci skip]
2020-02-03 10:37:30 -08:00