austax: Gracefully handle assets without acquisition cost when processing multiple CGT adjustment
This commit is contained in:
parent
3d09e4f34f
commit
d37d88e173
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user