diff --git a/corporate/models/plans.py b/corporate/models/plans.py index 20057139c9..415682e0de 100644 --- a/corporate/models/plans.py +++ b/corporate/models/plans.py @@ -120,11 +120,12 @@ class CustomerPlan(AbstractCustomerPlan): # an email only once and not every time when cron run. reminder_to_review_plan_email_sent = models.BooleanField(default=False) - # On next_invoice_date, we go through ledger entries that were - # created after invoiced_through and process them by generating - # invoices for any additional users and/or plan renewal. Once the - # invoice is generated, we update the value of invoiced_through - # and set it to the last ledger entry we processed. + # On next_invoice_date, we call invoice_plan, which goes through + # ledger entries that were created after invoiced_through and + # process them. An invoice will be generated for any additional + # users and/or plan renewal (if it's the end of the billing cycle). + # Once all new ledger entries have been processed, invoiced_through + # will be have been set to the last ledger entry we checked. invoiced_through = models.ForeignKey( "LicenseLedger", null=True, on_delete=CASCADE, related_name="+" ) diff --git a/corporate/views/plan_activity.py b/corporate/views/plan_activity.py index 46c88dd78c..e7ff881bc1 100644 --- a/corporate/views/plan_activity.py +++ b/corporate/views/plan_activity.py @@ -56,7 +56,7 @@ def get_plan_ledger(request: HttpRequest, plan_id: int) -> HttpResponse: if plan.invoiced_through is not None: header_entries.append( ActivityHeaderEntry( - name="Entry for last invoice", + name="Entry last checked during invoicing", value=str(plan.invoiced_through), ) )