Details
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
- is blocked by
-
CRM-14253 REST interface treats all cookies as API parameters; breaks Setting API
- Done/Fixed