request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
| = $this->getHtml('Net'); ?>:
|
|
| = $this->getHtml('Gross'); ?>:
|
|
| = $this->getHtml('Approved'); ?>:
|
|
| = $this->getHtml('Paid'); ?>:
|
|
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
= $this->data['expense-notes']->render('expense-notes', '', $expense->notes); ?>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
new FloatInt(),
'week' => new FloatInt(),
'day' => new FloatInt(),
];
$elements = $expense->elements;
$current = SmartDateTime::createFromDateTime($expense->start);
$current->smartModify(0, 0, -1);
$end = clone $expense->end;
$element = empty($elements)
? new NullExpenseElement()
: \reset($elements);
?>
= $this->getHtml('Expenses'); ?>
download
| = $this->getHtml('Start'); ?>
| = $this->getHtml('End'); ?>
| = $this->getHtml('Type'); ?>
| = $this->getHtml('Costs'); ?>
|
format('Y-m-d') !== $end->format('Y-m-d')) :
$current->smartModify(0, 0, 1);
if ($element->id !== 0 && $element->start->format('Y-m-d') === $current->format('Y-m-d')) :
$url = UriFactory::build('{/base}/businessexpenses/expense/element/view?{?}&id=' . $element->id);
?>
| = $element->start->format('Y-m-d H:i'); ?>
| = $element->end?->format('Y-m-d H:i'); ?>
| = $this->printHtml($element->type->l11n); ?>
| = $this->getCurrency($element->gross, symbol: ''); ?>
add($element->gross->value);
$costs['week']->add($element->gross->value);
$costs['day']->add($element->gross->value);
$element = \next($elements);
if ($element === false) {
$element = new NullExpenseElement();
}
// Required to handle multiple elements in one day
if ($element->id !== 0 && $element->start->format('Y-m-d') === $current->format('Y-m-d')) {
$current->smartModify(0, 0, -1);
}
?>
|
| = $current->format('Y-m-d'); ?>
|
|
| = $this->getHtml('Total'); ?>
| = $costs['total']->getAmount(); ?>
|
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
= $this->getHtml('Recordings', 'HumanResourceTimeRecording', 'Backend'); ?>download
| = $this->getHtml('Date', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Type', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Status', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Start', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Break', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('End', 'HumanResourceTimeRecording', 'Backend'); ?>
| = $this->getHtml('Total', 'HumanResourceTimeRecording', 'Backend'); ?>
|
|
start->format('Y-m-d') === $lastOpenSession->start->format('Y-m-d')
) : ?>
Today
= $session->start->format('Y-m-d'); ?> - = $this->getHtml('D' . $session->start->format('w')); ?>
| = $this->getHtml('CT' . $session->type); ?>
| = $this->getHtml('CS' . $session->status); ?>
| = $session->start->format('H:i'); ?>
| = (int) ($session->getBreak() / 3600); ?>h = ((int) ($session->getBreak() / 60) % 60); ?>m
| = $session->getEnd() !== null ? $session->getEnd()->format('H:i') : ''; ?>
| = (int) ($session->busy / 3600); ?>h = ((int) ($session->busy / 60) % 60); ?>m
busy;
if ($session->start->getTimestamp() < $startWeek->getTimestamp()
|| $count === $sessionCount
) : ?>
|
| = $startWeek->format('Y/m/d'); ?> - = $endWeek->format('Y/m/d'); ?>
| = (int) ($busy['week'] / 3600); ?>h = ((int) ($busy['week'] / 60) % 60); ?>m
createModify(0, 0, -7);
$busy['week'] = 0;
endif;
?>
busy;
if ($session->start->getTimestamp() < $startMonth->getTimestamp()
|| $count === $sessionCount
) : ?>
|
| = $startMonth->format('Y/m/d'); ?> - = $endMonth->format('Y/m/d'); ?>
| = (int) ($busy['month'] / 3600); ?>h = ((int) ($busy['month'] / 60) % 60); ?>m
createModify(0, -1, 0);
$busy['month'] = 0;
endif;
?>
|
| = $this->getHtml('Empty', '0', '0'); ?>
|