Skip to content

[BUG]: invoices without payment methods made in the past are always created as failed; they should be pending #358

@doctorpangloss

Description

@doctorpangloss

Describe the bug

BillSubscriptionJob.perform_later([subscription], timestamp)

on seemingly any past timestamp show up as failed in the UI.

To Reproduce
Create a subscription with an expected payment date in the past. Create an invoice at or between that date and the current date. Observe the UI shows the invoice as failed.

Expected behavior
If payments are manual, the invoice should show always show as pending.
If payments are automatic and the payment period + grace period have not elapsed, the invoice should show as pending.

Support
Version: 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions