diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-16 05:53:07 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:03 -0400 |
commit | 5200ff436cf9b014e4fae89dac223280b4562231 (patch) | |
tree | 5785aeb75b2e2deb4e1dd4745b7eb65e4d84f249 | |
parent | 06c0e4707a49db778f49d109dab194472bfe73be (diff) | |
download | fork-ledger-5200ff436cf9b014e4fae89dac223280b4562231.tar.gz fork-ledger-5200ff436cf9b014e4fae89dac223280b4562231.tar.bz2 fork-ledger-5200ff436cf9b014e4fae89dac223280b4562231.zip |
Enabled the --reconcile option, since everything it relies on is now
exposed through python.
-rw-r--r-- | main.py | 27 |
1 files changed, 13 insertions, 14 deletions
@@ -247,20 +247,19 @@ else: handler = CalcTransactions (handler) - #if config.reconcile_balance: - # reconcilable = False - # if config.reconcile_balance == "<all>" - # reconcilable = True - # else - # target_balance = Value (config.reconcile_balance) - # - # cutoff = time.time () - # # jww (2005-02-15): needs conversion - # #if config.reconcile_date: - # # cutoff = parse_date (config.reconcile_date) - # - # handler = ReconcileTransactions (handler, target_balance, - # cutoff, reconcilable) + if config.reconcile_balance: + reconcilable = False + if config.reconcile_balance == "<all>" + reconcilable = True + else + target_balance = Value (config.reconcile_balance) + + cutoff = time.time () + if config.reconcile_date: + cutoff = parse_date (config.reconcile_date) + + handler = ReconcileTransactions (handler, target_balance, + cutoff, reconcilable) if config.sort_string: handler = SortTransactions (handler, config.sort_string) |