public void SalesInvoice_cmdProcessAndOrPay_Executing(SalesInvoice entity, ExecutingEventArgs e) { var customer = entity.BillingCustomer; if (!customer.AllowedPaymentTypeLinks.Any()) { entity.cmdProcessAndOrPay.Message(e, 0, new[] { PaymentHelper.CreateHyperlinkToCustomerAllowedPaymentTypeList(entity.BillingCustomer) }); } }