Skip to content

Commit

Permalink
setting netsuite error resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Nov 14, 2023
1 parent d6f607e commit 01dfd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/netsuite/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def resolve_errors_for_exported_expense_group(expense_group, workspace_id=None):
"""
if isinstance(expense_group, list):
Error.objects.filter(workspace_id=workspace_id, expense_group_id__in=expense_group, is_resolved=False).update(is_resolved=True)

Error.objects.filter(workspace_id=expense_group.workspace_id, expense_group=expense_group, is_resolved=False).update(is_resolved=True)
else:
Error.objects.filter(workspace_id=expense_group.workspace_id, expense_group=expense_group, is_resolved=False).update(is_resolved=True)


@handle_netsuite_exceptions(payment=False)
Expand Down

0 comments on commit 01dfd0a

Please sign in to comment.