Monday, August 9, 2021
1 change · master
Resolved issues and error corrections
Subscriptions with a fixed end date now keep that original end date when automated invoicing runs after the contract has ended. This prevents invoices from being assigned to the wrong year and keeps subscription reporting aligned with the agreed contract dates.
Original PR description
- Create a subscription S with an end date 31.12.2020 (with recurring_rule_boundary == fixed) - Let's consider we are the 01.01.2021 (the cron Sale Subscription: generate recurring invoices and payments is applied) Bug: The end date of S was changed into 01.01.2021 instead of keeping 31.12.2020 So the year end invoicing was 2021 instead of 2020. PS: When the subscription is fixed, we only change the date end if we close it before the expected end. opw:2449986