From 3568ad9f9eb19bbfe5b2d4367bafaf1b5eea9c73 Mon Sep 17 00:00:00 2001 From: Jason Sylvestre Date: Fri, 16 Oct 2026 09:06:51 -0700 Subject: [PATCH] Exclude 'Automated' approvals from human approver lists --- src/Payments.Jobs.AutoApprove/Program.cs | 2 +- src/Payments.Mvc/Services/InvoiceService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Payments.Jobs.AutoApprove/Program.cs b/src/Payments.Jobs.AutoApprove/Program.cs index fe54295d..a2b0b0dd 100644 --- a/src/Payments.Jobs.AutoApprove/Program.cs +++ b/src/Payments.Jobs.AutoApprove/Program.cs @@ -95,7 +95,7 @@ public static void Main(string[] args) var approvers = new List(); foreach (var ra in invoice.RechargeAccounts.Where(a => a.Direction == RechargeAccount.CreditDebit.Debit)) { - if (ra.ApprovedByKerb == null || ra.ApprovedByKerb == "System") + if (ra.ApprovedByKerb == null || ra.ApprovedByKerb == "System" || ra.ApprovedByKerb == "Automated") { continue; } diff --git a/src/Payments.Mvc/Services/InvoiceService.cs b/src/Payments.Mvc/Services/InvoiceService.cs index 0012c51a..286daa42 100644 --- a/src/Payments.Mvc/Services/InvoiceService.cs +++ b/src/Payments.Mvc/Services/InvoiceService.cs @@ -590,7 +590,7 @@ public async Task SendRechargeReceipt(Invoice invoice) var approvers = new List(); foreach(var ra in invoice.RechargeAccounts.Where(a => a.Direction == RechargeAccount.CreditDebit.Debit)) { - if(ra.ApprovedByKerb == null || ra.ApprovedByKerb == "System") + if(ra.ApprovedByKerb == null || ra.ApprovedByKerb == "System" || ra.ApprovedByKerb == "Automated") { continue; }