John Wiegley
c87882076b
Allow date and datetime values to be formatted into strings
2009-02-20 18:33:02 -04:00
John Wiegley
b94512e4cc
Added several more option baseline tests
2009-02-20 18:15:43 -04:00
John Wiegley
a13cafa2f7
Added more option baseline tests
2009-02-20 16:36:49 -04:00
John Wiegley
01d8d28024
Removed unused --cache option
2009-02-20 16:32:44 -04:00
John Wiegley
95a3788fa7
Restored the --basis option
2009-02-20 15:41:49 -04:00
John Wiegley
04bbf2ba96
Added test for --balance-format
2009-02-20 15:41:49 -04:00
John Wiegley
31feaad105
Added --no-total option
...
This simply omits the final total in the balance report, nothing more.
2009-02-20 15:41:49 -04:00
John Wiegley
40f2ff6d6f
Added several new regression tests
2009-02-20 15:41:49 -04:00
John Wiegley
42f94d2b8b
Added several new baseline tests
2009-02-20 15:41:49 -04:00
John Wiegley
e05f29bff0
Don't use auto-widths for widths explicitly given
2009-02-20 15:41:48 -04:00
John Wiegley
a181ac52d3
Corrected a column-wise formatting issue
2009-02-20 15:41:48 -04:00
John Wiegley
d167724bac
Updated the pre-commit hook
...
Now it regenerates the build environment if Makefile.am or configure.ac
has changed.
2009-02-20 15:41:43 -04:00
John Wiegley
740cd8e8f1
Added feature baseline tests
...
These are like regression tests to confirm the basic functionality of
every Ledger feature. Also, made the release-distcheck target less
sensitive.
2009-02-20 13:31:01 -04:00
John Wiegley
748a6008b3
When clocking out, call total_seconds()
2009-02-20 13:18:37 -04:00
John Wiegley
c1b25fcf86
Rewrote the equity command, which is working again
...
The old implementation used an account formatter, and was very
specialized. The new is done as a transaction filter, and works along
with everything else, eliminating bugs special to the equity report.
2009-02-20 02:53:54 -04:00
John Wiegley
f2f52066d2
Added a --strict session option
...
When enabled, if any accounts or commodities are seen in an uncleared
transaction, which were not seen previously in a cleared or pending
transaction or a textual directive dealing with accounts or commodities,
a warning is generated about the unknown item.
2009-02-19 22:36:08 -04:00
John Wiegley
2694335e54
Simplify account total values before comparison
...
This way, if two account values are BALANCE types containing only a
single AMOUNT, then it will do the sorting comparison of the amounts --
since otherwise balances are ignored for the purposes of sorting.
2009-02-19 21:57:17 -04:00
John Wiegley
7fb328707c
Fixed another sort issue
2009-02-19 17:27:05 -04:00
John Wiegley
45e93d5f31
Added some sort-related debugging code
2009-02-19 17:25:29 -04:00
John Wiegley
1d85e992ca
A key fix to the ways accounts were sorted
...
Comparing integer < amount was doing the reverse comparison.
2009-02-19 17:20:36 -04:00
John Wiegley
9805abbf2b
Allow for sorting of the balance report
...
Sorting is repeated at each level of the hierarchy, unless --flat was
specified in which case it applies to the entire applicable accounts
list.
2009-02-19 16:53:25 -04:00
John Wiegley
d67c9fee0f
Added valexpr vars for accessing item position
...
- filename
- beg_line
- beg_pos
- end_line
- end_pos
2009-02-19 16:22:31 -04:00
John Wiegley
1c616f8626
If a transaction's total is null, return 0 instead
2009-02-19 15:51:14 -04:00
John Wiegley
3826cb1bee
Re-enabled parsing of timelog data
2009-02-19 15:50:24 -04:00
John Wiegley
c7cffa36ad
If a sorting value can't be found, report an error
2009-02-19 15:48:44 -04:00
John Wiegley
26ddb8343c
Don't sort or subtotal xacts for account reports
2009-02-19 15:47:54 -04:00
John Wiegley
bef9fdc471
If an account's aggregate amount is null, return 0
2009-02-19 15:46:57 -04:00
John Wiegley
f9607a57c1
Removed an unnecessary assert
...
It prevented the amount string "$1.00 " from being parsed.
2009-02-19 15:14:22 -04:00
John Wiegley
8af4451472
Use the 'market' function, not 'market_value'
2009-02-19 15:05:53 -04:00
John Wiegley
3dd0e74bbf
Some reformatting of the NEWS file
2009-02-19 15:03:21 -04:00
John Wiegley
9f963bda38
Auto-size register report based on COLUMNS
2009-02-19 14:44:28 -04:00
John Wiegley
5b897a12fc
Added a new --columns= option
2009-02-19 14:42:18 -04:00
John Wiegley
39bdbbe053
The sequence -M -p 2004 now equals -p 2004 -M
2009-02-19 14:26:08 -04:00
John Wiegley
7d1f125fa2
Renamed a debug category to be consistent
2009-02-19 14:21:00 -04:00
John Wiegley
1f1a83c083
Restored the -j and -J options
2009-02-19 13:40:48 -04:00
John Wiegley
b684783eff
Moved init of options to the options themselves
2009-02-19 13:29:15 -04:00
John Wiegley
33786a5c8a
Moved an exception, so the report is more general
2009-02-19 13:26:22 -04:00
John Wiegley
509ad47b39
Accept --long-option=value
2009-02-19 13:06:55 -04:00
John Wiegley
cae49a2998
Efficiency fix for the formatting code
2009-02-19 12:49:25 -04:00
John Wiegley
2f083b8bdb
Exchanged inclusion of report.h for account.h
...
The data sub-library should never depend on the reporting code.
2009-02-19 01:37:57 -04:00
John Wiegley
a8e73064cf
Improved how register reports are formatted
...
As a result, --wide is working again, and --wide-register-format has
been removed. Also, the following new options are recognized, for
controlling per-column formatting:
--date-width NUM
--payee-width NUM
--account-width NUM
--amount-width NUM
--total-width NUM
2009-02-19 01:36:21 -04:00
John Wiegley
b9624df86b
If an option has been handled, return its value
2009-02-19 01:32:27 -04:00
John Wiegley
7a0597dbe3
Removed an unnecessary friend declaration
2009-02-19 01:27:18 -04:00
John Wiegley
1fa3c1956f
Moved amount_t::right_justify to simply ::justify
2009-02-19 01:22:22 -04:00
John Wiegley
ec08dee745
Always perform tilde expansion on input pathnames
2009-02-18 21:00:02 -04:00
John Wiegley
dac10c8cf6
Parse 2004/01 as YYYY/mm
2009-02-18 00:09:59 -04:00
John Wiegley
4414fddb00
Fixed use of the -p flag without an interval
...
That is, -p 2004/01 is equivalent to "-b 2004/01/01 -e 2004/01/31"
again.
2009-02-17 22:57:02 -04:00
John Wiegley
4ec2dfeef1
Added --flat option, to flatten the balance report
2009-02-17 21:19:31 -04:00
John Wiegley
93d195f1d9
Only display a final balance total if necessary
...
In the case where only one top-level account is being reported, there is
no reason to duplicate the total balance shown.
2009-02-17 19:48:42 -04:00
John Wiegley
07f4aefdfd
Removed the %*| special char, for %*(" ")
2009-02-17 17:58:50 -04:00