Commit graph

178 commits

Author SHA1 Message Date
Johann Klähn
b3b11bed3b Merge branch 'master' into next
Some commits were on the master branch but not yet on the next branch due to a
pull request to master after those two branches diverged. This merge
ensures that next ⊇ master.
2013-01-18 18:26:03 +01:00
Johann Klähn
d922f46595 fix bug 748: option aliases not recognized 2013-01-15 23:30:17 +01:00
Johann Klähn
49b02614a3 fix account mapping in csv conversion
By using payees_for_unknown_accounts instead of account_mappings in
csv.cc ledger will have the same behaviour as in `ledger -f - print`
in that it uses payee fields in account directives to rewrite the
account.
2012-10-18 13:45:40 -07:00
Johann Klähn
27d9d770d3 update baseline test for convert command 2012-10-13 19:47:29 +02:00
John Wiegley
afc023406a Always store absolute paths internally 2012-08-02 16:13:58 -05:00
John Wiegley
627574492e Enable the baseline and manual tests 2012-05-20 05:01:17 -05:00
John Wiegley
3c3bda19d6 Fixed a test that was unknowingly time-based 2012-05-18 01:08:44 -06:00
John Wiegley
5c57eff64a Simplify feat-option_py.test 2012-03-30 04:49:19 -05:00
John Wiegley
ef7cab0830 Removed the cmd-emacs baseline test
The time issue causes too many false positives.
2012-03-29 03:55:48 -05:00
Martin Michlmayr
362fad5925 Add more tests 2012-03-27 20:16:17 +01:00
Martin Michlmayr
f3e320c98a Fix some tests not to be time-sensitive 2012-03-27 20:15:42 +01:00
Martin Michlmayr
86d5858444 Add more baseline tests. 2012-03-25 20:26:18 +01:00
Martin Michlmayr
4d0daf77d7 Add more baseline tests 2012-03-25 17:39:49 +01:00
Martin Michlmayr
d9baad45fa Add more baseline tests 2012-03-25 14:54:50 +01:00
Martin Michlmayr
8962d9c904 Add more baseline tests 2012-03-25 14:11:59 +01:00
Martin Michlmayr
3a61769098 Improve baseline/cmd-payees.test 2012-03-25 11:38:26 +01:00
John Wiegley
4b05759962 Fixed sorting of equity output 2012-03-23 16:46:11 -05:00
John Wiegley
38813bc635 Fixed output order in opt-equity.test 2012-03-23 15:55:50 -05:00
Martin Michlmayr
db20ad8f29 Add more baseline tests 2012-03-23 09:54:18 +00:00
Martin Michlmayr
902d09fd16 Add test case for bug #379 2012-03-23 09:32:39 +00:00
John Wiegley
c4db812173 Fixed cmd-emacs.test 2012-03-23 04:04:37 -05:00
Martin Michlmayr
5cffbf16e9 Add more baseline tests 2012-03-23 08:58:33 +00:00
Martin Michlmayr
62943c6005 Add more test cases 2012-03-22 21:48:50 +00:00
John Wiegley
f9088f8836 Added --verify-memory and missing TRACE_[CD]TOR calls 2012-03-18 01:01:30 -05:00
John Wiegley
22c1b867f0 Added option --day-break 2012-03-17 05:27:43 -05:00
John Wiegley
6305855997 Don't allow trailing ws in abbrev. account segments
Fixes #358
2012-03-16 05:30:34 -05:00
John Wiegley
c8dd3d28e3 Added --time-report option
This is a rather basic option at the moment which only affects the
balance report.  I use it as follows, for entering contractor hours into
a project planning application, where $1 is the contractor's timelog
file, and $2 is the date after which new entries appear in the file:

    ledger -f $1 balance                            \
           --account=payee                          \
           --time-report                            \
           -d "latest > [$2]"                       \
           --datetime-format='%m/%d/%y %I:%M %p'
2012-03-13 03:45:06 -05:00
John Wiegley
be289fba1f Fixed a few bugs related to apply directives 2012-03-12 22:38:36 -05:00
John Wiegley
2a4d7e1af0 Added --immediate option 2012-03-10 21:58:28 -06:00
John Wiegley
860610fdaf Added --dc option, for debit/credit style reports 2012-03-10 21:34:51 -06:00
John Wiegley
080c1d9a2d Added syntactic sugar for lot pricing: {{$500.00}} 2012-03-10 02:27:33 -06:00
John Wiegley
50f202c4e8 Make --lot-notes a synonym for --lot-tags 2012-03-10 01:01:26 -06:00
John Wiegley
022059f2a8 Added --value-expr option 2012-03-09 20:11:38 -06:00
John Wiegley
2df8edc71c Improved the behavior of -X 2012-03-09 20:02:53 -06:00
John Wiegley
318b5f49ff Fixed the behavior of fn_nail_down 2012-03-09 07:02:53 -06:00
John Wiegley
59f5ebe2df Reworked the way that options are handled 2012-03-09 03:51:53 -06:00
John Wiegley
113fb0ee6a Added --historical option 2012-03-08 01:00:16 -06:00
John Wiegley
4d01143400 Many improvements to lambdas and function calling 2012-03-08 00:44:40 -06:00
John Wiegley
7e250696e0 Many options now have additive effect
For example, -A and -V used to override each other, whereas now:

  -A    report the average amount
  -V    report all amounts at current value
  -AV   report the current value of the average
  -VA   report the average of all current values
2012-03-07 12:46:46 -06:00
John Wiegley
04f884b14f Added test for value directives and annotations 2012-03-07 05:38:28 -06:00
John Wiegley
5a027166cc Added balance assertion test 2012-03-06 03:31:46 -06:00
John Wiegley
97d68ebc8c Added "value" sub-directive for commodity directive 2012-03-06 03:24:06 -06:00
John Wiegley
59a16e59ee Simplified Python import in a journal file 2012-03-05 21:48:45 -06:00
John Wiegley
8d6bf11334 All tests are working again but one 2012-03-05 05:03:52 -06:00
John Wiegley
c8c2a17e28 Fixed invocation of lambda expressions
foo = x, y, z -> print(x, y, z)
  foo(1, 2, 3)

However, this still does not work:

  (x, y, z -> print(x, y, z))(1, 2, 3)
2012-03-05 05:03:51 -06:00
John Wiegley
ddba59b703 This now works: ledger --import os eval 'os.path.isdir("/tmp")' 2012-03-02 01:36:58 -06:00
John Wiegley
a125f24d29 Allow --options to be added by the user in Python 2012-03-01 23:40:02 -06:00
John Wiegley
a0c9ab08dc Added more baseline testing, for valexprs and Python 2012-03-01 22:20:20 -06:00
John Wiegley
576aa90bb6 Fixed an explicit path within a unit test 2012-03-01 21:21:25 -06:00
John Wiegley
f6c087cfe4 Added a new 'python' directive 2012-03-01 17:32:51 -06:00