@@ -11225,6 +11225,18 @@ function updateLastLocationPermissionPrompt() {
1122511225 Onyx . set ( ONYXKEYS . NVP_LAST_LOCATION_PERMISSION_PROMPT , new Date ( ) . toISOString ( ) ) ;
1122611226}
1122711227
11228+ function setMultipleMoneyRequestParticipantsFromReport ( transactionIDs : string [ ] , reportValue : OnyxEntry < OnyxTypes . Report > ) {
11229+ const participants = getMoneyRequestParticipantsFromReport ( reportValue ) ;
11230+ const updatedTransactions : Record < `${typeof ONYXKEYS . COLLECTION . TRANSACTION_DRAFT } ${string } `, NullishDeep < OnyxTypes . Transaction > > = { } ;
11231+ transactionIDs . forEach ( ( transactionID ) => {
11232+ updatedTransactions [ `${ ONYXKEYS . COLLECTION . TRANSACTION_DRAFT } ${ transactionID } ` ] = {
11233+ participants,
11234+ participantsAutoAssigned : true ,
11235+ } ;
11236+ } ) ;
11237+ return Onyx . mergeCollection ( ONYXKEYS . COLLECTION . TRANSACTION_DRAFT , updatedTransactions ) ;
11238+ }
11239+
1122811240/** Instead of merging the duplicates, it updates the transaction we want to keep and puts the others on hold without deleting them */
1122911241function resolveDuplicates ( params : MergeDuplicatesParams ) {
1123011242 if ( ! params . transactionID ) {
@@ -11925,6 +11937,7 @@ export {
1192511937 setMoneyRequestParticipantsFromReport ,
1192611938 getMoneyRequestParticipantsFromReport ,
1192711939 setMoneyRequestPendingFields ,
11940+ setMultipleMoneyRequestParticipantsFromReport ,
1192811941 setMoneyRequestReceipt ,
1192911942 setMoneyRequestTag ,
1193011943 setMoneyRequestTaxAmount ,
0 commit comments