Просмотр исходного кода

remove non-hours rate from timesheet

master
patrick 6 лет назад
Родитель
Сommit
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']);
} }

Загрузка…
Отмена
Сохранить