added punch-in punch-out / time-clock mode (#812)
This commit is contained in:
@@ -32,6 +32,7 @@ class TimesheetConfigExtension extends AbstractExtension
|
||||
{
|
||||
return [
|
||||
new TwigFunction('is_duration_only', [$this, 'isDurationOnly']),
|
||||
new TwigFunction('is_punch_mode', [$this, 'isPunchInOut']),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -39,4 +40,9 @@ class TimesheetConfigExtension extends AbstractExtension
|
||||
{
|
||||
return $this->configuration->isDurationOnly();
|
||||
}
|
||||
|
||||
public function isPunchInOut(): bool
|
||||
{
|
||||
return $this->configuration->isPunchInOut();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user