Skip to content

Commit

Permalink
Fix map employee step skip for c1 (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Jan 25, 2024
1 parent 57f800b commit 41d9f8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/workspaces/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ def connect_qbo_oauth(refresh_token, realm_id, workspace_id):
workspace.onboarding_state = 'MAP_EMPLOYEES'
elif settings.BRAND_ID == 'co':
workspace.onboarding_state = 'EXPORT_SETTINGS'
workspace_general_settings_instance = WorkspaceGeneralSettings.objects.filter(workspace_id=workspace.id).first()
if not workspace_general_settings_instance:
WorkspaceGeneralSettings.objects.update_or_create(
workspace_id=workspace_id, defaults={'employee_field_mapping': 'VENDOR', 'auto_map_employees': None}
)

workspace.save()

# Return the QBO credentials as serialized data
Expand Down

0 comments on commit 41d9f8d

Please sign in to comment.