Clean stray file from initial development.
This commit is contained in:
parent
cdec3d9aab
commit
475de6db4e
1 changed files with 0 additions and 23 deletions
|
@ -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)
|
Loading…
Reference in a new issue