Calculate Adjusted Dates For Leap Year Using Algorithm
Summary:
The Subscriptions are created from Sales Order using standard integration through 'DOO_Subscription' task. The ‘Contract Start Date’ and ‘Contract End Date’ are captured on the Sales Order, they determine the ‘Start Date’ and ‘End Date’ of Subscription-Products. This works fine for usual scenarios.
In case of Customer Acceptance, the ‘Customer Acceptance Date’ is recorded on the Sales Order EFF and passed to Subscription. The Subscription ‘Start Date’ needs to be ‘Customer Acceptance Date’ and it should adjust the ‘End Date’ accordingly as per the duration and period. Using OM-OSS Service Mapping and Algorithm it allows to correctly set ‘Start Date’ as ‘Customer Acceptance Date’ and to get ‘End Date’ the difference in dates (‘Contract End Date’ - ‘Contract Start Date’) was used.