Skip to content

Commit

Permalink
CCARD REFUND added to CCC export
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyle authored and Fyle committed Sep 25, 2023
1 parent b5330dd commit 82db3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/qbd/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 82db3de

Please sign in to comment.