Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lastvisibleactioncreated fix for task, iou, expense reports #30903

Merged
merged 8 commits into from
Dec 4, 2023
3 changes: 3 additions & 0 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2422,6 +2422,7 @@ function buildOptimisticIOUReport(payeeAccountID, payerAccountID, total, chatRep
reportName: `${payerEmail} owes ${formattedTotal}`,
notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS,
parentReportID: chatReportID,
lastVisibleActionCreated: DateUtils.getDBTime(),
};
}

Expand Down Expand Up @@ -2461,6 +2462,7 @@ function buildOptimisticExpenseReport(chatReportID, policyID, payeeAccountID, to
total: storedTotal,
notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS,
parentReportID: chatReportID,
lastVisibleActionCreated: DateUtils.getDBTime(),
};
}

Expand Down Expand Up @@ -3132,6 +3134,7 @@ function buildOptimisticTaskReport(ownerAccountID, assigneeAccountID = 0, parent
stateNum: CONST.REPORT.STATE_NUM.OPEN,
statusNum: CONST.REPORT.STATUS.OPEN,
notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS,
lastVisibleActionCreated: DateUtils.getDBTime(),
};
}

Expand Down
Loading