From 82db3de0c70ea744fb93df90d268c1ea77edc2bb Mon Sep 17 00:00:00 2001 From: Fyle Date: Mon, 25 Sep 2023 14:22:30 +0530 Subject: [PATCH] CCARD REFUND added to CCC export --- apps/qbd/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/qbd/models.py b/apps/qbd/models.py index e430128..927cd5d 100644 --- a/apps/qbd/models.py +++ b/apps/qbd/models.py @@ -405,7 +405,7 @@ def create_credit_card_purchase( name = expenses[0].employee_name credit_card_purchase = CreditCardPurchase.objects.create( - transaction_type='CREDIT CARD', + transaction_type='CREDIT CARD' if expenses[0].amount > 0 else 'CCARD REFUND', date=get_transaction_date(expenses, date_preference), account=corporate_card_name, name=name, @@ -514,7 +514,7 @@ def create_credit_card_purchase_lineitems( ) lineitem = CreditCardPurchaseLineitem.objects.create( - transaction_type='CREDIT CARD', + transaction_type='CREDIT CARD' if expense.amount > 0 else 'CCARD REFUND', date=expense.spent_at, account=expense.category, name=project_name,