Skip to content

Commit

Permalink
+ (Finance) Fixed an issue where the Transaction Matching block can p…
Browse files Browse the repository at this point in the history
…resent Transactions out of order. (Fixes #5676)
  • Loading branch information
jasonhendee committed Mar 1, 2024
1 parent 8f7513d commit a76d9d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions RockWeb/Blocks/Finance/TransactionMatching.ascx
Expand Up @@ -498,8 +498,7 @@
});
}
else {
// do the Postback (which will save the changes)
window.location = successLocation;
// Do the Postback wired up via the button's OnClick handler (which will save the changes).
}
}
</script>
Expand Down
9 changes: 8 additions & 1 deletion RockWeb/Blocks/Finance/TransactionMatching.ascx.cs
Expand Up @@ -640,7 +640,14 @@ private void NavigateToTransaction( Direction direction )
var financialPersonBankAccountService = new FinancialPersonBankAccountService( rockContext );
var financialTransactionService = new FinancialTransactionService( rockContext );
var qryTransactionsToMatch = financialTransactionService.Queryable()
.Where( a => a.AuthorizedPersonAliasId == null && a.ProcessedByPersonAliasId == null );
.Where( a =>
a.AuthorizedPersonAliasId == null
&&
(
a.ProcessedByPersonAliasId == null
|| a.ProcessedByPersonAliasId == CurrentPersonAliasId
)
);

if ( batchId != 0 )
{
Expand Down

0 comments on commit a76d9d9

Please sign in to comment.