From 475de6db4eec10e996429c5484d65b005337a664 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Sun, 31 Dec 2017 17:58:47 -0500 Subject: [PATCH] Clean stray file from initial development. --- import2ledger/builder.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 import2ledger/builder.py diff --git a/import2ledger/builder.py b/import2ledger/builder.py deleted file mode 100644 index d087d75..0000000 --- a/import2ledger/builder.py +++ /dev/null @@ -1,23 +0,0 @@ -import decimal - -import ledgerlib - -class TransactionBuilder: - def __init__(self, config): - self.config = config - - def _build_one_side(self, entry, amount, tx_provider, tx_type, section): - pass - - def build(self, date, payee, amount, - from_prov, from_type, - to_prov_or_type, to_type=None, - section=None): - if to_type is None: - to_prov = from_prov - to_type = to_prov_or_type - else: - to_prov = to_prov_or_type - entry = ledgerlib.Entry(date, payee, date_fmt=self.config.args.date_format) - self._build_one_side(entry, -amount, from_prov, from_type, section) - self._build_one_side(entry, amount, to_prov, to_type, section)