diff --git a/docs/8.0/ayanova/docs/customer-notify-subscriptions.md b/docs/8.0/ayanova/docs/customer-notify-subscriptions.md index e45c25a2..708b64b2 100644 --- a/docs/8.0/ayanova/docs/customer-notify-subscriptions.md +++ b/docs/8.0/ayanova/docs/customer-notify-subscriptions.md @@ -187,4 +187,8 @@ In addition to the [common edit form menu options](ay-start-edit-forms.md#common #### Who will be notified -This menu option will list all Customers who will be potentially notified based on the current subscription. +This menu option will list all Customers who will be potentially notified based on the current subscription Customer tag settings. + +![customer notify who list](img/customer-notify-who-list.png) + +The total number of Customers is displayed in a badge in the top corner above the title. Any Customers without an email address will display in bold italic warning color text. Not having an email address is ok, it just means that Customer will not receive a notification. diff --git a/docs/8.0/ayanova/docs/img/customer-notify-who-list.png b/docs/8.0/ayanova/docs/img/customer-notify-who-list.png new file mode 100644 index 00000000..b2969932 Binary files /dev/null and b/docs/8.0/ayanova/docs/img/customer-notify-who-list.png differ diff --git a/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs b/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs index 7c89b897..0fa07306 100644 --- a/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs +++ b/server/AyaNova/Controllers/CustomerNotifySubscriptionController.cs @@ -150,7 +150,7 @@ namespace AyaNova.Api.Controllers using (var cmd = ct.Database.GetDbConnection().CreateCommand()) { await ct.Database.OpenConnectionAsync(); - cmd.CommandText = $"select id, name, emailaddress from acustomer where active=true {custTagsWhere} order by name"; + cmd.CommandText = $"select id, name, COALESCE(emailaddress,'') from acustomer where active=true {custTagsWhere} order by name"; using (var dr = await cmd.ExecuteReaderAsync()) { while (dr.Read())