Uploaded image for project: 'CiviHR'
  1. CiviHR
  2. HR-216

HR cost reports should adjust based on pay-unit

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Won't Do
    • Affects Version/s: HR-1.0
    • Fix Version/s: HR-1.2
    • Component/s: Jobs, Reporting
    • Labels:
      None
    • Sprint:
      Sprint 12d

      Description

      — STEPS TO REPRODUCE —

      1. Create a new/clean database.
      2. Create a contact with a job that pays $100/day.
      3. Run the report, "Annual and Monthly Cost Equivalents Report".
      4. Observe: The listed annual cost is $100/year. (The monthly cost intuitively appears as 1/12th the annual cost, but the annual cost is way off.)

      — WHAT'S MISSING (GENERAL GOALS) —

      a. For each pay-unit (per day, per month, per year), we need a formula that annualizes the cost.
      b. The formula will most likely need some more data (eg either a system-wide policy on "hours per year", "days per year", etc; or else some per-record data about "days per year for this person"). We need to define the process/UI for entering that data.
      c. When a user edits a job's pay, we should display the calculations done to estimate annualized cost.
      d. When a user runs the report, we should use the formulas.
      e. We need to update the test-case for the report (eg https://github.com/civicrm/civihr/blob/master/hrreport/tests/phpunit/CRM/HRReport/Form/Contact/fixtures/summary-annual-monthly-equiv.csv ).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nishant.bhorodia Nishant Bhorodia
                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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d