Skip to content

[19.0][BUG] subscription_oca: next invoice date ignores future subscription start date #1428

@thib-d

Description

@thib-d
Image Image

Module

subscription_oca
#1393

Describe the bug

When creating a subscription with a start date later in the month, the generated “Next Invoice Date” is still set to the current date (yesturday) instead of respecting the configured subscription start date.

For example, if the subscription start date is configured for a future day within the same month, the subscription list view still shows the invoice scheduled yesturday.

This creates confusion and may generate invoices earlier than expected.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Create a new subscription.
  2. Configure a subscription start date later in the current month.
  3. Save the subscription.
  4. Open the subscriptions list view.
  5. Observe the “Next Invoice Date”.

Expected behavior
The “Next Invoice Date” should match the configured subscription start date (or the first expected billing date), not the current date.

Additional context

Tested on:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions