summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Removed interval_t::advanced, which was unusedJohn Wiegley2009-02-142-9/+3
|
* Enabled --cleared, --uncleared and --pendingJohn Wiegley2009-02-131-3/+14
| | | | | Note that the --uncleared flag includes --pending, since it specifically means "not yet cleared".
* Changed the semantics of the "prices" reportJohn Wiegley2009-02-132-10/+23
| | | | | | | | | | | | | | | The prices report now uses the following scheme: PAYEE -> name of commodity of price ACCOUNT -> name of commodity of item AMOUNT -> price DATE -> date of pricing However, the report does not show the payee. The only reason the payee is set is to enable clever querying. For example: ledger prices gold # show all known prices for GOLD ledger prices @gold # show all known prices *in* GOLD
* The formatting code no longer justifies valuesJohn Wiegley2009-02-133-5/+7
| | | | | This is done in the value code, which knows -- based on the value's type -- how best to apply the justification.
* Greatly improved output from the "format" commandJohn Wiegley2009-02-132-24/+46
| | | | | It now shows the formatted result against a sample entry, similar to what "parse" now does.
* Don't print an xact's amount if it was calculatedJohn Wiegley2009-02-132-4/+10
| | | | | That is, if the user didn't enter an amount for that transaction in their ledger journal, don't print one out either.
* Re-activated the budgeting flagsJohn Wiegley2009-02-131-3/+12
| | | | However, the budget reports themselves still need to be tested.
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-137-55/+76
| | | | | | | Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
* Changed print report to use format_dateJohn Wiegley2009-02-131-1/+2
| | | | Otherwise, Ledger was unable to parse what it had printed.
* Added a new valexpr function: format_dateJohn Wiegley2009-02-132-0/+11
| | | | | | | | | This can be used to format dates with a specific pattern, such as: format_date(entry.date, "%Y/%m/%d") This is used by the print command to ensure that Ledger is able to parse back what it prints.
* If a LEDGER_ envvar has no value, ignore itJohn Wiegley2009-02-131-1/+3
|
* Renamed a function to sort_value_is_less_thanJohn Wiegley2009-02-124-8/+8
| | | | | The purpose was to provided a clearer relationship between the function name and its expected arguments.
* Sorting expr now uses "-" to indicate descendingJohn Wiegley2009-02-126-46/+79
| | | | | For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date.
* Made (un)reduce rvalue methods more consistentJohn Wiegley2009-02-124-9/+14
| | | | | | They names were changed from reduce/unreduce to reduced/unreduced, since they return the modified value. This is more consistent with the naming of rounded/rounded.
* The --sort flag now accepts multiple terms (-S payee,date).John Wiegley2009-02-122-2/+33
| | | | However, there is no way yet to reverse the meaning of a given term.
* Restored the "prices" command.John Wiegley2009-02-126-14/+117
|
* Turned on the "emacs" command and budgeting, though neither are tested yet.John Wiegley2009-02-122-2/+12
|
* Re-enabled some code, and removed a bunch of deadwood.John Wiegley2009-02-1210-82/+19
|
* Fixed a typo which was causing all boolean values to show as "false".John Wiegley2009-02-121-5/+5
|
* Added validation code for mask_t objects.John Wiegley2009-02-123-0/+14
|
* Added a missing file!John Wiegley2009-02-121-0/+95
|
* Moved value_t::set_type into value.cc, since it had grown.John Wiegley2009-02-122-18/+21
|
* Inlined value_t::_clear(), since it only had one caller.John Wiegley2009-02-121-17/+9
|
* Ignore lines in Ledger files which contain only whitespace.John Wiegley2009-02-121-1/+1
|
* Removed an excessive error check.John Wiegley2009-02-121-3/+0
|
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-129-100/+112
|
* Allow the use of days of the week to "entry", e.g: "thu kfc 11".John Wiegley2009-02-111-1/+32
|
* In ledger-mode, if TAB is pressed in an entry, call out to "entry".John Wiegley2009-02-111-7/+26
|
* Rewrote the "entry" command. It's ALIVE!John Wiegley2009-02-117-174/+359
|
* Wired up the "entry" command from 2.x, though it still needs to be ported.John Wiegley2009-02-107-105/+72
|
* A fix to the last fix.John Wiegley2009-02-101-1/+0
|
* A fix for users of Boost 1.35.John Wiegley2009-02-101-2/+17
|
* Wrote the beginnings of a new "stats" command.John Wiegley2009-02-103-0/+71
|
* option_t's copy constructor wasn't copying "wants_arg".John Wiegley2009-02-101-1/+5
| | | | This was causing "reg -p this" to fail in the REPL.
* Removed an unneeded method declaration.John Wiegley2009-02-101-1/+0
|
* Sort period transactions by "date", not by "d".John Wiegley2009-02-101-1/+1
|
* Changed value_t to use boost::any (more type-safe).John Wiegley2009-02-102-239/+103
|
* If a textual directive can't be found, ignore it.John Wiegley2009-02-101-0/+4
|
* Break libledger_data's dependency on session_t.John Wiegley2009-02-094-32/+35
|
* When -V is used, show the market value for the amount as well as the total.John Wiegley2009-02-091-0/+1
|
* Exclude | from the legal commodity character set, as per the comment.John Wiegley2009-02-091-1/+1
|
* Fix to handling of effective dates in xact_t::date().John Wiegley2009-02-091-3/+9
|
* Fixed the operator precedence of several operators.John Wiegley2009-02-091-100/+115
|
* Removed reference to session_t from the iterators module.John Wiegley2009-02-095-35/+37
|
* Fixed the use of --effective and --date-format (-y).John Wiegley2009-02-097-50/+52
|
* For the "parse" pre-command, provide a sample transaction context.John Wiegley2009-02-091-4/+26
|
* Join command-line arguments before handling pre-commands.John Wiegley2009-02-091-26/+29
|
* Fixed a case where adding an amount to an integer failed.John Wiegley2009-02-091-0/+4
|
* Added a new --collapse-if-zero option.John Wiegley2009-02-095-6/+28
|
* Don't apply an automated entry to a generated transaction.John Wiegley2009-02-091-3/+2
|