I am using CR9 with an Informix DB used for payroll. I have one report that contains several key pieces of info.
Location
Hours worked
Hourly Rate*
Job Code**
Pay Type code
* The hourly rate is different depending on the location.
** The Job code is different depending on the location.
The pay type code is always the same (151). The Job Code is one of two values (0190, 0192) depending on the location.
I need a formula that will multiply the hours worked by the hourly rate, but I need to pull the correct hourly rate based on the location.
How can I say:"If the location is XXX then use the hourly rate associated with job code 0192 and if the location is XX use the hourly rate associated with job code 0190??"
Any help will be appreciated. Thanks.
Location
Hours worked
Hourly Rate*
Job Code**
Pay Type code
* The hourly rate is different depending on the location.
** The Job code is different depending on the location.
The pay type code is always the same (151). The Job Code is one of two values (0190, 0192) depending on the location.
I need a formula that will multiply the hours worked by the hourly rate, but I need to pull the correct hourly rate based on the location.
How can I say:"If the location is XXX then use the hourly rate associated with job code 0192 and if the location is XX use the hourly rate associated with job code 0190??"
Any help will be appreciated. Thanks.