I'm writing a time card report to list attendance transactions for an employee based on a date range. Some transactions will entered for a vacation day, sick, day, or holiday. The field in the record could also be populated with other identifiers unrelated to vacation, holiday, or sick pay. I need to identify the hours included that are paid but not actually worked because they cannot be used calculate overtime pay. My formula: IF {SHOPFLOOR_EMPLOYEE_TIME.IN_REASON_CODE_ID} like ["VACATION", "SICK", "HOLIDAY"] THEN 0 else {SHOPFLOOR_EMPLOYEE_TIME.HOURS_WORKED}. SHOPFLOOR_EMPLOYEE_TIME.IN_REASON_CODE_ID is the column containing VACATION, SICK, HOLIDAY. My intent is return the hours worked if the record IS NOT VACATION, SICK, HOLIDAY else I would return zero. This would allow me to sum the total hours actually worked. It returns the zero when VACATION, SICK, HOLIDAY but all other records return no value. With my sample data they should return 8 (hours).
This report was written using version 8.5