Skip to content

Commit ad80f2b

Browse files
authored
fix: add destination_value to if (#103)
1 parent 97759a5 commit ad80f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/qbd/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_item_and_account_name(field_mapping: FieldMapping, expense: Expense, wor
4141
attribute_type=item_type,
4242
source_value=expense_item).first()
4343

44-
if item_mapped_account:
44+
if item_mapped_account and item_mapped_account.destination_value:
4545
return expense_item, item_mapped_account.destination_value
4646

4747
return '', expense_category

0 commit comments

Comments
 (0)