Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sa39-00 [2015/08/07 17:06] – Justin Willey | sa39-00 [2017/12/01 16:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 52: | Line 52: | ||
or @DivisionName not in( ' | or @DivisionName not in( ' | ||
or @USERID not in( ' | or @USERID not in( ' | ||
- | -- if any of the above true then employee | + | -- if any of the above true then Temp base rate does not apply |
then | then | ||
return BaseRate | return BaseRate | ||
Line 61: | Line 61: | ||
when @PayrollFlag = ' | when @PayrollFlag = ' | ||
when @PayrollFlag = ' | when @PayrollFlag = ' | ||
- | when @PayrollFlag = ' | + | when @PayrollFlag = ' |
- | when @PayrollFlag = ' | + | when @PayrollFlag = ' |
when @PayrollFlag in( ' | when @PayrollFlag in( ' | ||
else | else | ||
- | return round(@TempBaseRate, | + | return round(@TempBaseRate, |
end case | end case | ||
end if | end if | ||
end | end | ||
</ | </ | ||
+ | |||
+ | Note the way the function exits immediately for **charge** rates to minimise processing, as the scheme does not effect charge rates. Also note how in this example the calculations are only made for certain test users to facilitate testing of the scheme. This clause //or @USERID not in( ' |