Uploaded image for project: 'CiviHR'
  1. CiviHR
  2. HR-20 CiviHR - Entity - Job Positions & Roles
  3. HR-75

hrjob: Add "Initial Join Date" and "Final Termination Date"

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: HR-1.0
    • Fix Version/s: HR-1.0
    • Component/s: None
    • Labels:
      None

      Description

      1. Add a custom-data group called "Job Summary" (single-value)
      2. Include two view-only date fields called "Initial Join Date" and "Final Termination Date"
      3. Add a hook (hook_civicrm_post) or trigger (hook_civicrm_triggerInfo) which runs after any INSERT/UPDATE/DELETE to an HRJob. The hook or trigger should:

      • Find min(period_start_date) for the contact and copy it to the "Initial Join Date"
      • Find min(period_end_date) for the contact and copy it to the "Final Termination Date"
        4. Add a unit-test to ensure that the values are maintained when CRUDing/reassigning jobs.
        5. Update the HRDetail report-template to support displaying/filtering these new fields.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timotten Tim Otten
                Reporter:
                timotten Tim Otten
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 6 hours
                  6h
                  Remaining:
                  Time Spent - 5 hours Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 5 hours Remaining Estimate - 1 hour
                  5h