Commit graph

496 commits

Author SHA1 Message Date
John Wiegley
b831ee1832 (ledger-reconcile-save): Call `save-buffer', instead of trying to
write the file directly.
2008-04-13 02:40:59 -04:00
John Wiegley
a12f4cdab7 *** empty log message *** 2008-04-13 02:40:59 -04:00
John Wiegley
10c78678bc (parse): When an entry does not balance, print the entry so the user
can see what Ledger saw.
2008-04-13 02:40:59 -04:00
John Wiegley
32df4dd563 (format_equity::flush): If the equity balance uses multiple
commodities, then multiple "Equity" lines need to be printed, one for
each.  (format_equity::operator()): Same, but for individual accounts.
2008-04-13 02:40:59 -04:00
John Wiegley
76f0d00f40 doc update 2008-04-13 02:40:58 -04:00
John Wiegley
e0a4109856 (reconcile_transactions): Added an error message, to make it easier to
know when the commodity is wrong to --reconcile (such as using $
instead of \$ in the UNIX shell).
2008-04-13 02:40:58 -04:00
John Wiegley
4df96ff13b *** empty log message *** 2008-04-13 02:40:58 -04:00
John Wiegley
80492683e5 (ledger-do-reconcile): Fixed a marker problem that was causing entries
to not be reconciled.
2008-04-13 02:40:58 -04:00
John Wiegley
ce6bf5353a *** empty log message *** 2008-04-13 02:40:58 -04:00
John Wiegley
9b653f66ee doc update 2008-04-13 02:40:58 -04:00
John Wiegley
0ce42d6c00 *** empty log message *** 2008-04-13 02:40:58 -04:00
John Wiegley
ff3f8e7117 doc update 2008-04-13 02:40:58 -04:00
John Wiegley
4ed59bcf8c Fixed a Gnucash problem. 2008-04-13 02:40:58 -04:00
John Wiegley
d11cfb0738 *** empty log message *** 2008-04-13 02:40:58 -04:00
John Wiegley
70f8732bec *** empty log message *** 2008-04-13 02:40:58 -04:00
John Wiegley
1c7669671c Changes to support building with gcc 2.95. 2008-04-13 02:40:57 -04:00
John Wiegley
a874bc851e *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
37ae9bf0c2 added missing headers 2008-04-13 02:40:57 -04:00
John Wiegley
9eb691bd1e *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
646c6a1ec1 *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
69abac7512 Added "a" and "d" commands to *Reconcile* mode. 2008-04-13 02:40:57 -04:00
John Wiegley
073652f464 *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
e961ce5f6a (ledger-reconcile): Added back the feature that C-u C-c C-r will
assume that an auto-reconcile is to be attempted.
2008-04-13 02:40:57 -04:00
John Wiegley
88042027e7 *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
be52e2a9c8 *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
983618d266 Added new options --reconcile, --reconcilable and --reconcile-date. 2008-04-13 02:40:56 -04:00
John Wiegley
d516c64bec Updated the Emacs interface to use the ledger executable more fully
(it doesn't do its own parsing anymore, for example).  Many things
should be faster, and things should work for users of earlier Emacsen.
2008-04-13 02:40:56 -04:00
John Wiegley
9618057215 Added an Emacs formatter, accessible with the new "emacs" command. 2008-04-13 02:40:56 -04:00
John Wiegley
f2390964cb (search_for_balance): Sped things up by a factor of ten. Still won't
help for uncleared lists >~27 items (2^27), but it helps.
2008-04-13 02:40:56 -04:00
John Wiegley
9d8b36a258 (format_transactions::operator): Corrected a bad memory access. 2008-04-13 02:40:56 -04:00
John Wiegley
003464dccc (push_to_transactions_list): Added a new transaction handler, which
simply adds the received transactions to a transctions_list container.
2008-04-13 02:40:56 -04:00
John Wiegley
bffa2703fc (clear_transactions_xdata): Clear the transaction xdata pointers once
they have been freed.  (clear_accounts_xdata): Clear the account xdata
pointers once they have been freed.
2008-04-13 02:40:56 -04:00
John Wiegley
cc6275cd63 *** empty log message *** 2008-04-13 02:40:56 -04:00
John Wiegley
c240ec23fa (ledger-reconcile): If a prefix argument is passed to C-c C-r
(ledger-reconcile), then it will attempt to use the auto-reconciler to
pre-mark the uncleared transactions.  Note that if it fails, and the
uncleared list is long, it might appear to hang.  It's far from
fool-proof, but when it does work, it's like magic!
2008-04-13 02:40:56 -04:00
John Wiegley
8f928b3bd9 *** empty log message *** 2008-04-13 02:40:56 -04:00
John Wiegley
4ca26fbd73 *** empty log message *** 2008-04-13 02:40:56 -04:00
John Wiegley
8f373c049c (AMOUNT_CMP_AMOUNT): Fixed a very serious error in basic amount math,
when lhs is zero.
2008-04-13 02:40:55 -04:00
John Wiegley
f3c736006c *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
193a801c03 Added preliminary support for OFX, using libofx. Needs much
real-world testing.
2008-04-13 02:40:55 -04:00
John Wiegley
bbffd8632e *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
4eac6dc9d6 Fix to the reconcile function, for the case when there are spaces in
an account name.
2008-04-13 02:40:55 -04:00
John Wiegley
ee1fd0f4ec *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
9aad55540e *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
9bf398f914 *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
c4dfcc997c *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
46302362dd (related_transactions::flush): Handle the case where an auto_entry or
period_entry passes through the related_transactions handler.
2008-04-13 02:40:54 -04:00
John Wiegley
3b112af362 Added new "output" command. Likely not to be documented, as these are
intended primarily for future GUI development.
2008-04-13 02:40:54 -04:00
John Wiegley
ed000a6967 Added support for each entry to remember: the file it came from, and
the beginning and ending character positions of that entry within the
file.  This makes it possible to reproduce the input exactly, with
only the changed entries updated.
2008-04-13 02:40:54 -04:00
John Wiegley
d8f35f3152 (parse_and_report): Added new "reconcile" and "output" commands.
Likely not to be documented, as these are intended primarily for
future GUI development.
2008-04-13 02:40:54 -04:00
John Wiegley
9c60361e17 #include'd reconcile.h. 2008-04-13 02:40:54 -04:00