Patch 1.1.3
New features
In this patch we have implemented improvements to make submitting and approving time spent on tasks more convenient and fixed a number of bugs related to displaying of Timesheet components.
Activities table
We have added a new table Activity (wtm_activity) that ensures a single structure of activity categories and allows referencing it from various entities without redefining categories, as well as specifying custom activities as regular.
New columns are created in the Timecard (wtm_timecard) and Time Entry (wtm_time_entry) tables that reference the records in the Activity (wtm_activity) table. The existing fields Category (category) and Category (other) in these tables are made inactive.
Execute a migration script to display the existing data on time spent correctly after updating to version 1.1.3. Navigate to System Scheduler → Scheduled Scripts. Find and open the Activity Migration record ( Click Execute in the upper-right corner of the form.To do this, complete the following steps:
{Instance URL}/record/sys_schedule_script/175558952318853935).
After the script is executed:
- New records in the Activity (wtm_activity) table will be created on the basis of the existing values in the Category field of the Time Entry (wtm_time_entry) and Timecard (wtm_timecard) tables.
- The Activity field will be populated for the existing records in these tables.
Activity types
To make submitting spent time on activities other than tasks more convenient, we have added an option to specify the activity type. Now, when creating a time card, an employee can specify a type for any activity other than task.
For this purpose, we have added a new table Activity Type (wtm_activity_type) with out-of-the-box activity types. Users can add custom activity types and make them available for use by all employees.
Fixes
- DEF0021569: Fixed an error that caused the comment pop-up in the Timesheet to be in a wrong position when the window is resized. In the new version we have accounted for this case and now the comment is opened in the center of the screen at the same level as the relevant cell.
- DEF0021073: Fixed an error that caused the tooltip with the rejection comment in the Timesheet to be displayed lower than the corresponding time card. In the new version we have improved the comment tooltip positioning logic in the setPopupPosition and initHint functions, and now the tooltip is opened next to the Rejection reason button of the corresponding time card. We have also added the cross button to close the rejection comment tooltip.
- DEF0020345: Fixed an error that prevented the comment window in the Timesheet from resizing properly after the previously saved text is deleted. In the new version the window height is reset before recalculation and the window is resized to default height after the previous comment is deleted.
- DEF0020283: Fixed an error which caused incorrect links to tasks to be generated in Timecards.
- DEF0018804: Fixed an error that prevented the time total in the Timesheet header from being recalculated after deleting a timecard. We have added a business rule to recalculate time after deleting timecards and now the Timesheet header displays correct total time.