diff --git a/austax/views.py b/austax/views.py index c7bbf20..0ab8efc 100644 --- a/austax/views.py +++ b/austax/views.py @@ -110,7 +110,9 @@ def cgt_adjustment_multinew(): assets = [] for posting in cgt_postings: - if posting.commodity[:posting.commodity.index('{')].strip() != request.form['commodity']: + if '{' not in posting.commodity and posting.commodity != request.form['commodity']: + continue + if '{' in posting.commodity and posting.commodity[:posting.commodity.index('{')].strip() != request.form['commodity']: continue if posting.quantity >= 0: