Skip to content

Commit

Permalink
fix: use the correct condition to test for CCT memos (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent f3ef6e1 commit c723285
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/sage_intacct/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ def get_memo(expense_group: ExpenseGroup,
:return: The memo.
"""

config = Configuration.objects.get(workspace_id=workspace_id)
if config.corporate_credit_card_expenses_object == 'CHARGE_CARD_TRANSACTION':
if ExportTable is ChargeCardTransaction:
memo = 'Corporate Card Expense'
email = expense_group.description.get('employee_email')
if email:
Expand Down

0 comments on commit c723285

Please sign in to comment.