Skip to content

Commit

Permalink
addign check
Browse files Browse the repository at this point in the history
  • Loading branch information
labhvam5 committed Dec 19, 2023
1 parent 77146cf commit a6e5a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/mappings/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def schedule_or_delete_fyle_import_tasks(workspace_general_settings: WorkspaceGe
"""
task_to_be_scheduled = None
for mapping_setting in mapping_settings:
if mapping_setting['import_to_fyle']:
if mapping_setting['import_to_fyle'] and mapping_setting['source_field'] in ['PROJECT', 'COST_CENTER'] or mapping_setting['is_custom']:
task_to_be_scheduled = True
break

Expand Down

0 comments on commit a6e5a54

Please sign in to comment.