Skip to content

Issue with invoice dry run when account is blocked and unblocked #1920

@reshmabidikar

Description

@reshmabidikar
  1. Create a monthly recurring subscription with startDate=2023-08-01 - Invoice is generated for the duration from 2023-08-01 to 2023-09-01.
  2. Update the subscription BCD to 15
  3. Add an account blocking state with isBlockBilling=true and requestedDate=2023-09-01
  4. Add an account blocking state with isBlockBilling=false and requestedDate=2023-09-15
  5. Trigger invoice dry run with date=2023-09-01 - No invoice generated (as expected)
  6. Trigger invoice dry run with date=2023-09-15 - Invoice generated with single invoice item for the duration 2023-09-15 to 2023-10-15 (as expected)
  7. Trigger invoice dry run with date=2023-10-15 - Invoice generated with two invoice items, one for the 2023-09-15 to 2023-10-15 duration and the other for the 2023-10-15 to 2023-11-15 - This is unexpected.

Expected Behavior: The invoice generated at step 7 should include a single invoice item here for the duration 2023-10-15 to 2023-11-15

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions