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; }