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.
I will provide a fix for a bug