Skip to content

[Bug]: Billing lines cannot be deleted after underlying subscription line is removed #5879

@dsarfraz

Description

@dsarfraz

Describe the issue

When the subscription line is deleted, the related billing lines are marked with the update required flag. After that, the billing line can no longer be deleted because an error is thrown stating that the subscription line cannot be found.
This behavior blocks cleanup of billing data when subscription lines are removed intentionally.

Expected behavior

Billing lines should be deletable even if the underlying subscription line no longer exists.

Steps to reproduce

Create a new Customer Subscription contract for a customer.
Run the Billing Proposal from the Recurring Billing page for this contract.
Delete the underlying subscription line on the subscription.
Navigate back to the Recurring Billing page.
Try to delete the related billing line.

Additional context

Screenshots shows the attempt to billing line where the underlying subscription line was deleted beforehand.

Image

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

Labels

ApprovedThe issue is approvedFinanceGitHub request for Finance area

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions