Skip to content

Commit

Permalink
fix: add 'xfer' to ofx types
Browse files Browse the repository at this point in the history
  • Loading branch information
redstreet committed Sep 28, 2023
1 parent 7cc2ef3 commit efed21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beancount_reds_importers/libtransactionbuilder/investments.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def generate_transfer_entry(self, ot, file, counter):
try:
if ot.type in ['transfer']:
units = ot.units
elif ot.type in ['other', 'credit', 'debit', 'dep', 'cash', 'payment', 'check']:
elif ot.type in ['other', 'credit', 'debit', 'dep', 'cash', 'payment', 'check', 'xfer']:
units = ot.amount
else:
units = ot.total
Expand Down Expand Up @@ -371,7 +371,7 @@ def extract_transactions(self, file, counter):
continue
if ot.type in ['buymf', 'sellmf', 'buystock', 'buydebt', 'sellstock', 'buyother', 'sellother', 'reinvest']:
entry = self.generate_trade_entry(ot, file, counter)
elif ot.type in ['other', 'credit', 'debit', 'transfer', 'dep', 'income',
elif ot.type in ['other', 'credit', 'debit', 'transfer', 'xfer', 'dep', 'income',
'dividends', 'capgainsd_st', 'capgainsd_lt', 'cash', 'payment', 'check', 'invexpense']:
entry = self.generate_transfer_entry(ot, file, counter)
else:
Expand Down

0 comments on commit efed21b

Please sign in to comment.