Skip to content

Commit

Permalink
Merge pull request #53622 from bernhardoj/fix/53425-error-when-paying…
Browse files Browse the repository at this point in the history
…-partial-expense

Fix paying partially expense report with non-reimbursable results in error
  • Loading branch information
robertjchen authored Dec 5, 2024
2 parents e702a2a + 56eacd8 commit dc18d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6705,7 +6705,7 @@ function getPayMoneyRequestParams(

let total = (iouReport?.total ?? 0) - (iouReport?.nonReimbursableTotal ?? 0);
if (ReportUtils.hasHeldExpenses(iouReport?.reportID ?? '') && !full && !!iouReport?.unheldTotal) {
total = iouReport?.unheldTotal;
total = iouReport.unheldTotal - (iouReport?.unheldNonReimbursableTotal ?? 0);
}

const optimisticIOUReportAction = ReportUtils.buildOptimisticIOUReportAction(
Expand Down

0 comments on commit dc18d0b

Please sign in to comment.