From 793b47930cb95f6a73890a978cc417865905ccb4 Mon Sep 17 00:00:00 2001 From: Ashutosh singh <55102089+Ashutosh619-sudo@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:48:32 +0530 Subject: [PATCH] Bug fix in process reimbursement (#381) --- apps/xero/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/xero/tasks.py b/apps/xero/tasks.py index 81276b19..a15b22b2 100644 --- a/apps/xero/tasks.py +++ b/apps/xero/tasks.py @@ -814,7 +814,7 @@ def mark_paid_on_fyle(platform, payloads:dict, reports_to_be_marked, workspace_i Expense.objects.filter(report_id__in=list(reports_to_be_marked), workspace_id=workspace_id, paid_on_fyle=False).update(paid_on_fyle=True) except Exception as e: error = traceback.format_exc() - target_messages = ['Report is not in APPROVED or PAYMENT_PROCESSING State', 'Permission denied to perform this action'] + target_messages = ['Report is not in APPROVED or PAYMENT_PROCESSING State', 'Permission denied to perform this action.'] error_response = e.response to_remove = set()