From 01ddda723e92730bac5742fcc447376a26cd7703 Mon Sep 17 00:00:00 2001 From: Anish Kr Singh <116036738+anishfyle@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:58:09 +0530 Subject: [PATCH] fix: add destination_value to if (#103) --- apps/qbd/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/qbd/models.py b/apps/qbd/models.py index 5d73953..fde1581 100644 --- a/apps/qbd/models.py +++ b/apps/qbd/models.py @@ -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