summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Added report query modifiers: for, since, untilJohn Wiegley2010-06-225-47/+131
| | | | | | | | | Now instead of ledger reg expense -p "this month", you can say: ledger reg expense for this month And as a shorthand for "for until this month", you can just say "until this month" or "since this month".
* Price annotation no longer inject an implied costJohn Wiegley2010-06-221-21/+7
| | | | | | | | | | | | | | | | | | | | | | | Consider the following transaction: 2010-06-22 Sample Assets:Brokerage 10 AAPL {$30} Assets:Brokerage Previously, this would have been equivalent to: 2010-06-22 Sample Assets:Brokerage 10 AAPL @ $30 Assets:Brokerage However, this is not always what the user expects to happen. When @ is not being used, the transaction should reflect a mere transfer of commodities. This is now how it works, and thus the above transaction is now equivalent to the following instead: 2010-06-22 Sample Assets:Brokerage 10 AAPL {$30} Assets:Brokerage -10 AAPL {$30}
* Don't do cost finalization for auto/period xactsJohn Wiegley2010-06-221-48/+50
|
* Added has_date() method to item_tJohn Wiegley2010-06-221-0/+4
|
* The notions of "now" and "today" now use local timeJohn Wiegley2010-06-221-3/+3
|
* Added new "bold" modifier to query expressionsJohn Wiegley2010-06-227-133/+175
| | | | | | | | | | | | | | For example: ledger bal assets bold checking Or you can use expressions: ledger bal assets bold '=total > 1000' This last is identical to saying: ledger bal -l 'account =~ /assets/' --bold-if='total > 1000'
* Added new --bold-if optionJohn Wiegley2010-06-222-16/+59
|
* Balances and sequences can be compared to amountsJohn Wiegley2010-06-221-16/+4
|
* bal was sometimes reporting empty accountsJohn Wiegley2010-06-213-6/+14
|
* Change weighting of account-name abbreviationJohn Wiegley2010-06-211-1/+1
| | | | | Parent accounts are abbreviated even more, so that child accounts can show more text.
* Corrected a major flaw in the transaction finalizerJohn Wiegley2010-06-211-2/+3
| | | | | | When a transaction has two commodities, but also a null posting, no attempt should be made to resolve the costs in terms of the primary commodity.
* Improvements to time period parsingJohn Wiegley2010-06-211-8/+190
| | | | | Things like "since last month" and "4 weeks ago", and "since 4 weeks ago" are now all working.
* Corrected a compilation warningJohn Wiegley2010-06-211-2/+3
|
* Transactions no longer needed for budget/forecastJohn Wiegley2010-06-201-4/+6
| | | | | This means you can forecast or budget against a file containing only periodic transactions.
* Output budget even if no postings directly matchedJohn Wiegley2010-06-202-4/+2
|
* Added missing call to resolve_end() in find_periodJohn Wiegley2010-06-201-0/+2
|
* Factored out some unused local variablesJohn Wiegley2010-06-201-9/+5
|
* Rename dow_posts to day_of_week_posts, to be clearerJohn Wiegley2010-06-203-10/+10
|
* If fixated price commodities are mixed, show themJohn Wiegley2010-06-203-23/+62
| | | | | | | | | | | For example, if a Ledger file contains transactions with the use of both EUR and EUR {=PRICE}, then regular reports will always show the {=PRICE}, disabling the by-name commodity merging that takes place. In brief, fixated and non-fixated commodities are now non-mergable. If a file contains all of one, or all of the other, they will still be merged, since these separate usages do not conflict the way that fixated and non-fixated together do.
* If a posting's price has an annotation tag, save itJohn Wiegley2010-06-201-25/+33
|
* --input-date-format now affects dates with timesJohn Wiegley2010-06-201-1/+8
|
* Do not record market values for fixated exchangesJohn Wiegley2010-06-201-1/+7
| | | | | | Do not record commodity exchanges where amount's commodity has a fixated price, since this does not establish a market value for the base commodity.
* When anonymizing posts, remove the transaction codeJohn Wiegley2010-06-201-0/+1
|
* Added debug print for commodity.prices.findJohn Wiegley2010-06-201-0/+2
|
* If a periodic posting terminates, stop forecasting with itJohn Wiegley2010-06-201-4/+5
|
* Subsantial fixes and improvements to budgetingJohn Wiegley2010-06-193-11/+48
| | | | | | | | | 1. A bounded budget "from DATE to DATE" will now generate entries throughout that entire range, if it is triggered. 2. An unbounded budget begins, as before, in the timeframe of the reported posting which triggered it, but now continues until the present date.
* Corrected a bug in report query parsingJohn Wiegley2010-06-191-2/+2
|
* query command's parsing behavior sensitive to -nJohn Wiegley2010-06-191-1/+2
| | | | | | | | | | With -n, the first argument is parsed as a string containing subarguments. Otherwise, each argument is parsed as a separate argument. In short, the -n mode mimicks what happens when the query expr after "=" is parsed for automated expressions. The non -n mode mimicks what happens at the command line for users.
* Made amount_t::value a bit saferJohn Wiegley2010-06-191-5/+6
|
* When --inject is used for a tag, convert to an amountJohn Wiegley2010-06-181-14/+8
|
* Renamed the "Rounding" account to "Adjustment"John Wiegley2010-06-181-1/+1
|
* Filename globs now surrounded by ^$John Wiegley2010-06-181-2/+2
|
* Fixed bug that had broken any() and all()John Wiegley2010-06-181-1/+1
|
* Fixed register formatting of postings with payeesJohn Wiegley2010-06-181-1/+2
|
* Made "convert" command insensitive to null amountsJohn Wiegley2010-06-181-12/+14
|
* Added new option --inject=KEY[,KEY...]John Wiegley2010-06-185-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you have a typed metadata key which contains an amount, you can use --inject=KEY to inject a posting with that amount wherever a match occurs. There are two main forms of usage: 2010-06-18 Sample ; Key:: $100 Expenses:Food $100.00 Assets:Checking The command would be: ledger reg --inject=Key In the above, transactional form, a posting under the account "Key" will be injected before the first posting reported for this transaction. It's amount will be $100. This only happens once for the whole transaction. It is also possible to associate the key with a posting: 2010-06-18 Sample Expenses:Food $100.00 ; Key:: $100 Assets:Checking Now the injected posting is generated whenever that particular post is reported.
* A metadata key must occur at the beginningJohn Wiegley2010-06-181-1/+3
| | | | | | | | | Before, this was valid: ; Today Yesterday: Tomorrow Which would set the key Yesterday to the value Tomorrow. Now, it is just an ordinary comment.
* Minor fix to the way transfer_details sets post dateJohn Wiegley2010-06-181-1/+1
|
* has_tag and get_tag now take an 'inherit' parameterJohn Wiegley2010-06-184-26/+37
|
* Corrected printing of assigned amountsJohn Wiegley2010-06-181-1/+1
|
* Only look for [date] outside of metadata entriesJohn Wiegley2010-06-181-16/+16
|
* Individual postings may each have their own payeeJohn Wiegley2010-06-176-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a posting has the metadata field "Payee" set to a string, that will be used as the payee name for that posting. This affects the register report, the payees report, and the --by-payee option. This is useful because sometimes I send, say, 4 checks at a time to my bank. So on my bank statement, this is all just one amount: 2010-06-17 Sample Assets:Bank $400.00 Income:Check1 $-100.00 Income:Check2 $-100.00 Income:Check3 $-100.00 Income:Check4 $-100.00 Though it's important that the Assets:Bank posting be a single posting of $400 value, I'd like for income reports to show whom each check came from. Now I can say: 2010-06-17 Sample Assets:Bank $400.00 Income:Check1 $-100.00 ; Payee: Person One Income:Check2 $-100.00 ; Payee: Person Two Income:Check3 $-100.00 ; Payee: Person Three Income:Check4 $-100.00 ; Payee: Person Four When I report this, it appears as: 10-Jun-17 Sample Assets:Bank $400.00 $400.00 Person One Income:Check1 $-100.00 $300.00 Person Two Income:Check2 $-100.00 $200.00 Person Three Income:Check3 $-100.00 $100.00 Person Four Income:Check4 $-100.00 0 This shows that they are all in the same transaction (which is why the date is not repeated), but they have different payees.
* Changes for building with Visual Studio 2008John Wiegley2010-06-1518-28/+42
|
* Removed unused --unsorted optionJohn Wiegley2010-06-153-10/+0
|
* Support period expressions "this/next/last week"John Wiegley2010-06-141-14/+28
|
* Allow period exprs "from today", "until tomorrow"John Wiegley2010-06-141-0/+10
|
* Support period expressions like "last 4 weeks"John Wiegley2010-06-141-12/+37
|
* Fix to allow time periods like "every 14 days"John Wiegley2010-06-141-1/+1
|
* Improved algorithm for abbreviating account namesJohn Wiegley2010-06-141-16/+139
|
* Added initial implementation of lot_*() functionsJohn Wiegley2010-06-142-1/+37
|