Skip to content

Commit

Permalink
Merge aa79364 into 08e9136
Browse files Browse the repository at this point in the history
  • Loading branch information
cookie223 committed Dec 25, 2020
2 parents 08e9136 + aa79364 commit 0ad2ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beancount_import/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_posting_weight(posting: Posting) -> Optional[Amount]:
return Amount(posting.cost.number * posting.units.number,
posting.cost.currency)
return None
elif posting.price is not None:
elif posting.price is not None and posting.price.number is not MISSING:
return amount_mul(posting.price, posting.units.number)
return posting.units

Expand Down

0 comments on commit 0ad2ec3

Please sign in to comment.