Fix: Unable to add unreported expense to IOU report#65802
Fix: Unable to add unreported expense to IOU report#65802MariaHCD merged 2 commits intoExpensify:mainfrom
Conversation
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
MariaHCD
left a comment
There was a problem hiding this comment.
The logic looks good to me overall.
For the lint errors about Onyx.connect() is the rule to fix them when noticed on a PR or not?
| } | ||
|
|
||
| const participantAccountIDs = getReportRecipientAccountIDs(iouReport, userAccountID); | ||
| const payerAccountID = participantAccountIDs.at(0); |
There was a problem hiding this comment.
Is the first accountID always going to be the payer?
|
Awaiting your review @mananjadhav ! |
In this case, I think it's unrelated, since these are just warnings and the Changed files ESLint check is passing. Also, the |
|
I had reviewed the PR, testing out the changes. |
|
@rayane-d The attendees param seems to be showing
|
Screenshots/VideosAndroid: HybridAppandroid-convert-tracked-expense-report.movAndroid: mWeb Chromemweb-chrome-convert-tracked-expense-report.moviOS: HybridAppios-convert-tracked-expense-report.moviOS: mWeb Safarimweb-safari-convert-tracked-expense-report.movMacOS: Chrome / Safariweb-convert-tracked-expense-report.movMacOS: Desktopdesktop-convert-tracked-expense-report.mov |
@mananjadhav yeah, the browser's network tab shows
|
Yes you're right. Sorry about that. |
Reviewer Checklist
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 9.1.81-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.81-7 🚀
|
| const actionableWhisperReportActionID = getTrackExpenseActionableWhisper(transactionID, selfDMReportID)?.reportActionID; | ||
|
|
||
| const commentText = typeof transaction.comment === 'string' ? transaction.comment : (transaction.comment?.comment ?? ''); | ||
| const parsedComment = getParsedComment(commentText); |
There was a problem hiding this comment.
Coming from #76047 (comment), we need to handle HTML format in commentText here.



Explanation of Change
Use
convertTrackedExpenseToRequestAPI instead ofchangeTransactionsReportfor IOU reportFixed Issues
$ #62179
PROPOSAL:
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2025-07-10.at.2.17.36.AM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop