Commit Graph

3849 Commits

Author SHA1 Message Date
Simon Michael
b9883d9eb1 query: make real: equivalent to real:1 2015-06-12 06:23:34 -07:00
Simon Michael
ba6269981b begin reviving journalreader unit tests 2015-06-11 10:16:46 -07:00
Simon Michael
d1769d9d62 journal: allow journal entries with no postings
We now parse, and also print, posting-less journal entries, as I
proposed on the lists.

These are not real General Journal entries/transactions, but here is my
rationale:

- Ledger and beancount parse them
- if we parse them, we should print them
- they provide a natural way to record and report non-transaction events
- most of all, they permit more gradual introduction and learning of the concepts.
  Eg a beginner can keep a simple journal even before learning about accounts and postings.
2015-06-11 10:16:46 -07:00
Simon Michael
049baed4d8 register: fix a runtime error with amountless postings 2015-06-11 10:16:45 -07:00
Simon Michael
892718a5d9 doc: faq: ui surprises 2015-06-05 17:23:06 -07:00
Simon Michael
0de0f6ab01 group related imports 2015-06-04 09:45:43 -07:00
Simon Michael
bb8918a709 web: fix build breakage from #165 (fixes #268) 2015-06-04 09:44:58 -07:00
Simon Michael
ce5d87177a update journalFilePathFromOpts haddock 2015-06-04 09:43:15 -07:00
Simon Michael
b9b0417e41 doc: manual: more width-setting examples 2015-06-02 14:12:54 -07:00
Simon Michael
2b30ed91a6 doc: manual: virtual postings, and with assertions 2015-06-01 13:05:47 -07:00
Simon Michael
cd981532da Merge pull request #264 from imuli/master
handle multiple -f parameters sensibly
2015-05-29 10:06:57 -07:00
Imuli
5fd5d77685 doc: manual: read multiple files 2015-05-28 10:40:49 -07:00
Imuli
67432f1220 read multiple files: tests 2015-05-28 10:40:48 -07:00
Imuli
49f1744ae5 read multiple files: internals 2015-05-28 10:40:48 -07:00
Imuli
8385da205e read multiple files: options 2015-05-28 10:40:48 -07:00
Simon Michael
46bbc9e0aa fix simple aliases that match the whole account name 2015-05-28 10:40:48 -07:00
Simon Michael
c138852dab maybe stop numbering functional tests 2015-05-28 10:40:48 -07:00
Imuli
0eb9f49a6e doc: manual: read multiple files 2015-05-28 12:42:22 -04:00
Imuli
a7ba436116 read multiple files: tests 2015-05-28 11:58:30 -04:00
Simon Michael
ef890e1b23 add: quote file name consistently in output
Don't show quotes around the journal file path in the "Creating..."
message since there aren't any in the subsequent "Adding..." message.
2015-05-27 14:41:23 -07:00
Simon Michael
8d75635505 print: limit display precision of generated prices (#262)
When a transaction posts to two commodities without specifying the
conversion price, we generate a price which makes it balance
(cf http://hledger.org/manual.html#prices).

Until now, these generated prices were always shown with full precision
(all available decimal digits) so that a manual calculation with the
displayed numbers would agree.

If there's just one posting in the commodity being priced, we can use an
exact total price and the precision is no problem.

But if there are multiple postings in the commodity being priced, we
must show the averaged unit price. This can be an irrational number,
which with our current Decimal-based implementation would display an
excessive 255 decimal digits. So in this case we now set the price's
display precision to the sum of the (max) display precisions of the
commodities involved. An example:

hledgerdev -f- print
<<<
1/1
    c    C 10.00
    c    C 11.00
    d  D -320.00
>>>
2015/01/01
    c  C 10.00 @ D 15.2381
    c  C 11.00 @ D 15.2381
    d     D -320.00

>>>=0

There might still be cases where this will show more price decimal
places than necessary. For now, YAGNI.
2015-05-27 14:21:19 -07:00
Imuli
3f15b80520 read multiple files: internals 2015-05-26 22:34:03 -04:00
Imuli
2eb4073651 read multiple files: options 2015-05-26 22:33:43 -04:00
Carlos Lopez-Camey
c79396e662 hledger-web: Clear the form when clicking 'Add a transaction' (just like the shortcut) 2015-05-25 21:29:31 -06:00
Carlos Lopez-Camey
d14941ab4d hledger-web: Fixes keyboard shortcut for adding a transaction. 'addformShow' and 'addformReset' were broken. 2015-05-25 20:44:50 -06:00
Simon Michael
77280676d4 doc: manual: change journal screenshot 2015-05-25 18:25:31 -07:00
Simon Michael
4b33ad81e0 site: a few front page screenshots 2015-05-25 18:15:02 -07:00
Simon Michael
6d0343817c doc: style devguide, howtos 2015-05-25 17:56:45 -07:00
Simon Michael
5e7fd191f2 doc: update/style tutorial 2015-05-25 17:55:39 -07:00
Simon Michael
7a8f813d2f tools: fix make bin/hledger-webdev 2015-05-25 08:44:42 -07:00
Simon Michael
5df44c711e doc: web rewrites/screenshots, add-on examples 2015-05-25 08:44:00 -07:00
Simon Michael
96343bf615 site: enable highslide for image thumbnails 2015-05-25 08:42:00 -07:00
Simon Michael
28175a456c site: fix styles and js when browsing on localhost 2015-05-25 08:40:27 -07:00
Simon Michael
5d1ea71568 extra: fix hledger-equity, hledger-rewrite compilation 2015-05-25 08:39:50 -07:00
Simon Michael
35fb60d773 site: some hledger-web/sample.journal screenshots 2015-05-25 08:38:40 -07:00
Simon Michael
74268f6624 doc: manual: float-clearing tweaks 2015-05-22 17:53:16 -07:00
Simon Michael
ef5c7f5471 doc: manual: adjust register examples to 80 columns 2015-05-22 17:42:08 -07:00
Simon Michael
68409eca7b doc: manual: clarify secondary & posting dates 2015-05-22 17:41:36 -07:00
Simon Michael
be56a140f6 site: bigger main heading 2015-05-22 16:48:52 -07:00
Simon Michael
1d78b4ee9c site, doc:manual: pre/code styling
- less styling on inline and block pre and code elements by default

- different styles for journal (green), timelog (yellow), csv
  rules (blue), and shell examples (black/bordered/bold)

- shrink pre blocks to fit their content. I used display:inline-block
  for this, so some care is needed when you want a line break between
  adjacent pre's.
2015-05-22 16:41:41 -07:00
Simon Michael
6ec38b56b5 doc: manual: lots of examples, rewrites, cleanups 2015-05-22 16:40:18 -07:00
Simon Michael
7ab2380fd2 doc: manual: promote some amount subtopics 2015-05-21 17:23:52 -07:00
Simon Michael
87d5ddfb71 query: drop the empty: query term
This seems to be equivalent to the --empty option, and overlaps
a bit confusingly with amt:0. I think we can drop it.
2015-05-21 16:44:11 -07:00
Simon Michael
20acc45fbb activity: don't exclude 0-amount postings by default 2015-05-21 16:38:17 -07:00
Simon Michael
131259105d doc: manual: clarify date: 2015-05-21 16:25:29 -07:00
Simon Michael
fdc507bd13 match tag names with a regexp, like everything else 2015-05-21 16:25:19 -07:00
Simon Michael
92aaeb1109 doc: manual: rewrites & cleanups
Conflicts:
	doc/manual.md
2015-05-21 15:42:06 -07:00
Simon Michael
e23f61b771 doc: manual: de-emphasize troubleshooting subtopics 2015-05-21 15:38:11 -07:00
Simon Michael
cdc4abb497 doc: manual: reorganise the intro
Try to provide a smoother and shorter path for getting started,
and expose the interesting stuff (what commands are available) early.
2015-05-21 07:11:51 -07:00
Simon Michael
915ab1a0c9 doc: manual: commands cleanups 2015-05-19 22:04:21 -07:00