Skip to content

Commit

Permalink
Merge pull request #41538 from Expensify/cristi_add-invoice-comment
Browse files Browse the repository at this point in the history
Add comment param in the SendInvoice API call
  • Loading branch information
cristipaval authored May 13, 2024
2 parents 6f52e7c + 692869f commit cef072b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/API/parameters/SendInvoiceParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type SendInvoiceParams = {
receiverInvoiceRoomID?: string;
amount: number;
currency: string;
comment: string;
merchant: string;
date: string;
category?: string;
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3409,6 +3409,7 @@ function sendInvoice(
accountID: currentUserAccountID,
amount: transaction?.amount ?? 0,
currency: transaction?.currency ?? '',
comment: transaction?.comment?.comment ? transaction.comment.comment.trim() : '',
merchant: transaction?.merchant ?? '',
category: transaction?.category,
date: transaction?.created ?? '',
Expand Down

0 comments on commit cef072b

Please sign in to comment.