Skip to content

Commit e4fd9f8

Browse files
authored
Merge pull request Expensify#61361 from mkzie2/mkzie2-issue/61050
fix: amount in report header does not match invoice amount when edit offline
2 parents a19a3a4 + aeb2d63 commit e4fd9f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libs/ReportUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5513,7 +5513,7 @@ function buildOptimisticInvoiceReport(
55135513
reportName: `${receiverName} owes ${formattedTotal}`,
55145514
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
55155515
statusNum: CONST.REPORT.STATUS_NUM.OPEN,
5516-
total,
5516+
total: total * -1,
55175517
participants: {
55185518
[receiverAccountID]: {
55195519
notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,

src/libs/actions/IOU.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2982,7 +2982,7 @@ function getSendInvoiceInformation(
29822982
}
29832983
const optimisticTransaction = buildOptimisticTransaction({
29842984
transactionParams: {
2985-
amount,
2985+
amount: amount * -1,
29862986
currency,
29872987
reportID: optimisticInvoiceReport.reportID,
29882988
comment: trimmedComment,

0 commit comments

Comments
 (0)