Auto Cancel / Rebill If A Contract Is Stopped Retroactively

If the system detects a bill segment with a bill date after the stop date of the contract (because the contract was retroactively stopped), the system automatically cancels the bill segment and creates a new one with an end date equal to the contract's stop date.