The initial check if the voucher is available was done before creating the order. This change adds a validation step during the order creation within an atomic() block. See #2101