diff --git a/Sheaft.Application.Handlers/Commands/WithholdingCommandsHandler.cs b/Sheaft.Application.Handlers/Commands/WithholdingCommandsHandler.cs index 7f31515f6..1ce1a2ffb 100644 --- a/Sheaft.Application.Handlers/Commands/WithholdingCommandsHandler.cs +++ b/Sheaft.Application.Handlers/Commands/WithholdingCommandsHandler.cs @@ -80,7 +80,7 @@ public async Task> Handle(ProcessWithholdingCommand re if (withholding.Status == TransactionStatus.Succeeded) return Ok(withholding.Status); - if (withholding.Status != TransactionStatus.Failed) + if (withholding.Status != TransactionStatus.Failed && withholding.Status != TransactionStatus.Waiting) return Failed(new BadRequestException(MessageKind.Withholding_Cannot_Process_Pending)); using (var transaction = await _context.BeginTransactionAsync(token))