From f0b9557fd3efc7a6b4072761941a6f3074dbba90 Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Mon, 9 Oct 2023 17:16:34 +0200 Subject: [PATCH] adjustments --- src/libs/actions/IOU.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index b99ffeb603c5..44eba0cef5a5 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -2120,7 +2120,7 @@ function submitReport(expenseReport) { lastMessageText: optimisticSubmittedReportAction.message[0].text, lastMessageHtml: optimisticSubmittedReportAction.message[0].html, state: CONST.REPORT.STATE.SUBMITTED, - stateNum: CONST.REPORT.STATE_NUM.SUBMITTED, + stateNum: CONST.REPORT.STATE_NUM.PROCESSING, statusNum: CONST.REPORT.STATUS.SUBMITTED, }, }; @@ -2148,6 +2148,14 @@ function submitReport(expenseReport) { }, }, }, + { + onyxMethod: Onyx.METHOD.MERGE, + key: `${ONYXKEYS.COLLECTION.REPORT}${expenseReport.reportID}`, + value: { + stateNum: CONST.REPORT.STATE_NUM.OPEN, + statusNum: CONST.REPORT.STATUS.OPEN, + }, + }, ]; API.write(