From 5200ff436cf9b014e4fae89dac223280b4562231 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 16 Feb 2005 05:53:07 +0000 Subject: Enabled the --reconcile option, since everything it relies on is now exposed through python. --- main.py | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/main.py b/main.py index 34223ae9..92483ba0 100644 --- a/main.py +++ b/main.py @@ -247,20 +247,19 @@ else: handler = CalcTransactions (handler) - #if config.reconcile_balance: - # reconcilable = False - # if config.reconcile_balance == "" - # 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 == "" + 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) -- cgit v1.2.3