Skip to content

Commit

Permalink
fix: add destination_value to if (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
anishfyle committed Aug 6, 2024
1 parent a17cc22 commit 01ddda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/qbd/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_item_and_account_name(field_mapping: FieldMapping, expense: Expense, wor
attribute_type=item_type,
source_value=expense_item).first()

if item_mapped_account:
if item_mapped_account and item_mapped_account.destination_value:
return expense_item, item_mapped_account.destination_value

return '', expense_category
Expand Down

0 comments on commit 01ddda7

Please sign in to comment.