corporate: Revise internal billing emails for stale audit log data.

These emails are not necessarily sent when an self-hosted customer
has an outstanding invoice, e.g., they are on an annual plan and
the monthly check for additional licenses happens when the audit
log data is stale.

Updates the notice_reason to be "stale_audit_log_data" instead of
"invoice_overdue". Revises the email subject and text to better
reflect what the support admin needs to investigate.
This commit is contained in:
Lauryn Menard
2025-05-23 12:49:48 +02:00
committed by Tim Abbott
parent a80941a78d
commit 9edabf5ac8
5 changed files with 18 additions and 12 deletions

View File

@@ -6,8 +6,8 @@
{% if notice_reason == "fixed_price_plan_ends_soon" %}
<p>Reminder to re-evaluate the pricing and configure a new fixed-price plan accordingly.</p>
{% elif notice_reason == "invoice_overdue" %}
<p>Recent invoice is overdue for payment.</p>
{% elif notice_reason == "stale_audit_log_data" %}
<p>Unable to verify current licenses in use, which delays invoicing for this customer.</p>
<b>Last data upload</b>: {{ last_audit_log_update }}
{% elif notice_reason == "locally_deleted_realm_on_paid_plan" %}
<p>Investigate why remote realm is marked as locally deleted when it's on a paid plan.</p>

View File

@@ -1,7 +1,7 @@
{% if notice_reason == "fixed_price_plan_ends_soon" %}
Fixed-price plan for {{ billing_entity }} ends on {{ end_date }}
{% elif notice_reason == "invoice_overdue" %}
Invoice overdue for {{ billing_entity }} due to stale data
{% elif notice_reason == "stale_audit_log_data" %}
Stale audit log data for {{ billing_entity }}'s plan
{% elif notice_reason == "locally_deleted_realm_on_paid_plan" %}
{{ billing_entity }} on paid plan marked as locally deleted
{% elif notice_reason == "license_discrepancy" %}

View File

@@ -2,8 +2,8 @@ Internal billing notice for {{ billing_entity }}.
{% if notice_reason == "fixed_price_plan_ends_soon" %}
Reminder to re-evaluate the pricing and configure a new fixed-price plan accordingly.
{% elif notice_reason == "invoice_overdue" %}
Recent invoice is overdue for payment.
{% elif notice_reason == "stale_audit_log_data" %}
Unable to verify current licenses in use, which delays invoicing for this customer.
Last data upload: {{ last_audit_log_update }}
{% elif notice_reason == "locally_deleted_realm_on_paid_plan" %}