| "IsExemptFromTax" => $e->getIsExemptFromTax(), | "IsExemptFromTax" => $e->getIsExemptFromTax(), | ||||
| "IsExemptFromSuper"=> $e->getIsExemptFromSuper(), | "IsExemptFromSuper"=> $e->getIsExemptFromSuper(), | ||||
| "AccrueLeave" => $e->getAccrueLeave(), | "AccrueLeave" => $e->getAccrueLeave(), | ||||
| "TypeOfUnits" => $e->getTypeOfUnits(), | |||||
| "CurrentRecord"=> $e->getCurrentRecord(), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } |
| $result = "<select> \n"; | $result = "<select> \n"; | ||||
| $options = get_option('bts_payitem_earnings_rate'); | $options = get_option('bts_payitem_earnings_rate'); | ||||
| foreach($options as $o){ | foreach($options as $o){ | ||||
| if ($o['CurrentRecord'] !='true') | |||||
| continue; | |||||
| $result.=sprintf("<option value='%s'> $%3.2f-%s</option>", | $result.=sprintf("<option value='%s'> $%3.2f-%s</option>", | ||||
| $o['EarningsRateID'], $o['RatePerUnit'], $o['Name']); | $o['EarningsRateID'], $o['RatePerUnit'], $o['Name']); | ||||
| } | } |