Skip to content

Commit

Permalink
Merge pull request #128 from Resgrid/develop
Browse files Browse the repository at this point in the history
CU-8687yhbz5 trying to fix bug in sub controller
  • Loading branch information
ucswift authored May 23, 2024
2 parents e128511 + 1ddfdd1 commit 1c3aaf2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ public async Task<IActionResult> Index()
}

var allPayments = await _subscriptionsService.GetAllPaymentsForDepartmentAsync(DepartmentId);
model.HadStripePaymentIn30Days = allPayments.Any(x => x.EndingOn >= DateTime.UtcNow.AddYears(-2) && x.Method == (int)PaymentMethods.Stripe);
if (allPayments != null)
model.HadStripePaymentIn30Days = allPayments.Any(x => x.EndingOn >= DateTime.UtcNow.AddYears(-2) && x.Method == (int)PaymentMethods.Stripe);
else
model.HadStripePaymentIn30Days = false;

if (model.Payment != null)
{
Expand Down

0 comments on commit 1c3aaf2

Please sign in to comment.