Skip to content

Commit

Permalink
+ (Finance) Fixed Transaction Detail block to recheck for zero transa…
Browse files Browse the repository at this point in the history
…ction in simple mode while Saving Transaction. (Fixes #5348)
  • Loading branch information
shivambareria committed Mar 28, 2023
1 parent e6305da commit cd56001
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions RockWeb/Blocks/Finance/TransactionDetail.ascx
Expand Up @@ -245,6 +245,16 @@
return true;
}
var isSingleAccountAmountMinusFeeCoverageAmountVisible = $('#<%= tbSingleAccountAmountMinusFeeCoverageAmount.ClientID %>').is(":visible");
if (isSingleAccountAmountMinusFeeCoverageAmountVisible) {
if ($('#<%= tbSingleAccountAmountMinusFeeCoverageAmount.ClientID %>').val() > 0) {
var isSingleAccountFeeCoverageAmountVisible = $('#<%= tbSingleAccountFeeCoverageAmount.ClientID %>').is(":visible");
if (!isSingleAccountFeeCoverageAmountVisible || $('#<%= tbSingleAccountFeeCoverageAmount.ClientID %>').val() > 0) {
return true;
}
}
}
e.preventDefault();
Rock.dialogs.confirm('This will create a financial transaction without an amount. Do you want to continue?', function (result) {
if (result) {
Expand Down

0 comments on commit cd56001

Please sign in to comment.