Skip to content

Commit

Permalink
Fix: Fyle Redirect URL (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored Jan 4, 2024
1 parent 0d2cc57 commit c973a4e
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 110 deletions.
5 changes: 3 additions & 2 deletions apps/quickbooks_online/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
QBO models
"""
from datetime import datetime
from typing import List, Dict
from typing import Dict, List

from django.conf import settings
from django.db import models
from fyle_accounting_mappings.models import DestinationAttribute, EmployeeMapping, ExpenseAttribute, Mapping, MappingSetting

from apps.fyle.models import Expense, ExpenseGroup
from apps.mappings.models import GeneralMapping
from apps.workspaces.models import Workspace, WorkspaceGeneralSettings
Expand Down Expand Up @@ -38,7 +39,7 @@ def get_expense_purpose(workspace_id, lineitem, category, workspace_general_sett
'purpose': '{0}'.format(lineitem.purpose) if lineitem.purpose else '',
'report_number': '{0}'.format(lineitem.claim_number),
'spent_on': '{0}'.format(lineitem.spent_at.date()) if lineitem.spent_at else '',
'expense_link': '{0}/app/main/#/enterprise/view_expense/{1}?org_id={2}'.format(settings.FYLE_EXPENSE_URL, lineitem.expense_id, org_id),
'expense_link': '{0}/app/admin/#/enterprise/view_expense/{1}?org_id={2}'.format(settings.FYLE_EXPENSE_URL, lineitem.expense_id, org_id),
}

memo = ''
Expand Down
Loading

0 comments on commit c973a4e

Please sign in to comment.