Skip to content

Commit 572f1f6

Browse files
authored
Merge pull request #1803 from bcgov/dev
Dev
2 parents 05f549a + c963142 commit 572f1f6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

applications/Unity.GrantManager/modules/Unity.Payments/src/Unity.Payments.Web/Pages/PaymentRequests/CreatePaymentRequests.cshtml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using Unity.GrantManager.Applications;
1515
using Unity.GrantManager.ApplicationForms;
1616
using Volo.Abp;
17+
using Unity.Payments.Enums;
1718

1819
namespace Unity.Payments.Web.Pages.Payments
1920
{
@@ -141,6 +142,12 @@ public async Task OnGetAsync(string applicationIds)
141142
missingFields = true;
142143
}
143144

145+
// If the site paygroup is eft but there is no bank account
146+
if(site != null && site.PaymentGroup == PaymentGroup.EFT && string.IsNullOrWhiteSpace(site.BankAccount))
147+
{
148+
errorList.Add("Error: Payment cannot be submitted because the default site’s pay group is set to EFT, but no bank account is configured. Please update the bank account before proceeding.");
149+
}
150+
144151
if (remainingAmount <= 0)
145152
{
146153
errorList.Add("There is no remaining amount for this application.");

0 commit comments

Comments
 (0)