When Using a Date Field with a Formula That Calculates the Number of Days Between Start Date and Finish Date the Number of Days Displayed Is Incorrect
(Doc ID 2885712.1)
Last updated on SEPTEMBER 29, 2022
Applies to:Primavera Unifier - Version 126.96.36.199 to 188.8.131.52 [Release 20.12]
Primavera Unifier Cloud Service - Version 184.108.40.206 to 22.9 [Release 20.12 to 22.9]
Information in this document applies to any platform.
When processing a Business Process (BP) record for "BP-1", there is a data element called "DE1" which is configured with a formula that takes the Date Difference between "Finish Date" and "Start Date" fields and displays this difference based on "Calendar Days". Per the Unifier Documentation this should be selected to get the desired functionality that is desired: "Choose Calendar Days to include all the days of the week in the calculation". However in this example, the Start Date is on a Sunday and Finish date is on Tuesday. After the dates, the calculation is 2 but after saving the Line Item the calculation is 1 which is not expected by user.
When using "Calendar" days setting in Date Difference formula, the calculated difference should take into account ALL days whether working days or not.
The issue can be reproduced at will with the following steps:
- Log into the Unifier environment.
- Navigate to the project/shell where the issue has been observed.
- User Mode > BP "BP-1" > Open an existing or create a new record > Line Items > Add a line item > For Start Date picker select today's date and for Finish Date select a date in two days. Note that the date difference is 2 as expected.
- Save the line item > Notice that now the date different is 1, which is incorrect.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document