mirror of https://github.com/zulip/zulip.git
activity: Add invoiced through information to plan activity view.
Expands the header information on the plan activity view to include the license ledger that was set as invoiced_through when the last billing cycle generated an invoice. Also, updates the name of the header information for the next invoice date to match what's show in the support view for the plan.
This commit is contained in:
parent
e86c02cd67
commit
d796deddf8
|
@ -47,7 +47,15 @@ def get_plan_ledger(request: HttpRequest, plan_id: int) -> HttpResponse:
|
|||
)
|
||||
header_entries.append(
|
||||
ActivityHeaderEntry(
|
||||
name="Next invoice (UTC)", value=format_optional_datetime(plan.next_invoice_date, True)
|
||||
name="Start of next billing cycle (UTC)",
|
||||
value=format_optional_datetime(plan.next_invoice_date, True),
|
||||
)
|
||||
)
|
||||
if plan.invoiced_through is not None:
|
||||
header_entries.append(
|
||||
ActivityHeaderEntry(
|
||||
name="Entry for last invoice",
|
||||
value=str(plan.invoiced_through),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue