corporate: Send fixed-price stale audit log internal billing email.

Still send an internal billing notice when a fixed-price plan is
invoiced while the remote server has stale audit log data. This
does not trigger updating the stale_audit_log_data_email_sent
field on the CustomerPlan as the plan will be invoiced in this
case.
This commit is contained in:
Lauryn Menard
2025-08-21 17:36:26 +02:00
committed by Tim Abbott
parent 208f1b30db
commit 1caff10df7
4 changed files with 57 additions and 3 deletions

View File

@@ -7,7 +7,11 @@
{% 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 == "stale_audit_log_data" %}
{% if fixed_price_plan %}
<p>Unable to verify current licenses in use, but invoicing not delayed because customer has a fixed-price plan.</p>
{% else %}
<p>Unable to verify current licenses in use, which delays invoicing for this customer.</p>
{% endif %}
<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

@@ -3,9 +3,15 @@ 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 == "stale_audit_log_data" %}
{% if fixed_price_plan %}
Unable to verify current licenses in use, but invoicing not delayed because customer has a fixed-price plan.
Last data upload: {{ last_audit_log_update }}
{% else %}
Unable to verify current licenses in use, which delays invoicing for this customer.
Last data upload: {{ last_audit_log_update }}
{% endif %}
{% elif notice_reason == "locally_deleted_realm_on_paid_plan" %}
Investigate why remote realm is marked as locally deleted when it's on a paid plan.
{% elif notice_reason == "license_discrepancy" %}