We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a19a3a4 + aeb2d63 commit e4fd9f8Copy full SHA for e4fd9f8
src/libs/ReportUtils.ts
@@ -5513,7 +5513,7 @@ function buildOptimisticInvoiceReport(
5513
reportName: `${receiverName} owes ${formattedTotal}`,
5514
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
5515
statusNum: CONST.REPORT.STATUS_NUM.OPEN,
5516
- total,
+ total: total * -1,
5517
participants: {
5518
[receiverAccountID]: {
5519
notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,
src/libs/actions/IOU.ts
@@ -2982,7 +2982,7 @@ function getSendInvoiceInformation(
2982
}
2983
const optimisticTransaction = buildOptimisticTransaction({
2984
transactionParams: {
2985
- amount,
+ amount: amount * -1,
2986
currency,
2987
reportID: optimisticInvoiceReport.reportID,
2988
comment: trimmedComment,
0 commit comments