소스 검색

remove non-hours rate from timesheet

master
patrick 6 년 전
부모
커밋
554933af84
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      Xero.php
  2. +3
    -0
      ts.php

+ 2
- 0
Xero.php 파일 보기

"IsExemptFromTax" => $e->getIsExemptFromTax(), "IsExemptFromTax" => $e->getIsExemptFromTax(),
"IsExemptFromSuper"=> $e->getIsExemptFromSuper(), "IsExemptFromSuper"=> $e->getIsExemptFromSuper(),
"AccrueLeave" => $e->getAccrueLeave(), "AccrueLeave" => $e->getAccrueLeave(),
"TypeOfUnits" => $e->getTypeOfUnits(),
"CurrentRecord"=> $e->getCurrentRecord(),
); );
} }
} }

+ 3
- 0
ts.php 파일 보기

$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']);
} }

Loading…
취소
저장