Commit 62379aac authored by Bruno Chabrier's avatar Bruno Chabrier

MEMO now contains the raw information, for a better clarity

parent f33ac5ca
Pipeline #2017 failed with stages
in 2 minutes and 9 seconds
......@@ -58,9 +58,16 @@ class MoneyOfxFormatter(OfxFormatter):
# MSMoney only supports CHECKING accounts
t = kwargs['account'].type
kwargs['account'].type = AccountType.CHECKING
OfxFormatter.start_format(self, **kwargs)
super(MoneyOfxFormatter, self).start_format(**kwargs)
kwargs['account'].type = t
def format_obj(self, obj, alias):
cat = obj.category
obj.category = obj.raw
result = super(MoneyOfxFormatter, self).format_obj(obj, alias)
obj.category = cat
return result
def output(self, formatted):
if self.outfile != sys.stdout:
self.outfile.write(formatted + os.linesep)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment