Clean stray file from initial development.

This commit is contained in:
Brett Smith 2017-12-31 17:58:47 -05:00
parent cdec3d9aab
commit 475de6db4e

View file

@ -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)