summaryrefslogtreecommitdiff
path: root/config/config.default.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-17 12:33:15 +0200
committermsquare <msquare@notrademark.de>2018-09-23 11:40:53 +0200
commit2a134e6c0b8e7c5bbeade38d29052194bd9dfa46 (patch)
treebfd99cb3793e3cfa2ef0e4da550fcae528ed9273 /config/config.default.php
parent0734807eef5a6b638b06d57aef6ee59ac78a3456 (diff)
Config: Removed nightshifts query
Diffstat (limited to 'config/config.default.php')
-rw-r--r--config/config.default.php26
1 files changed, 8 insertions, 18 deletions
diff --git a/config/config.default.php b/config/config.default.php
index f80b54e1..dfccab0a 100644
--- a/config/config.default.php
+++ b/config/config.default.php
@@ -79,23 +79,13 @@ return [
// local timezone
'timezone' => env('TIMEZONE', 'Europe/Berlin'),
- // weigh every shift the same
- //'shift_sum_formula' => 'SUM(`end` - `start`)',
-
// Multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2
- 'shift_sum_formula' => '
- SUM(
- (1 +
- (
- (HOUR(FROM_UNIXTIME(`Shifts`.`end`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) < 6)
- OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`start`)) < 6)
- OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) <= 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) >= 6)
- )
- )
- * (`Shifts`.`end` - `Shifts`.`start`)
- * (1 - 3 * `ShiftEntry`.`freeloaded`)
- )
- ',
+ 'night_shifts' => [
+ 'enabled' => true, // Disable to weigh every shift the same
+ 'start' => 2,
+ 'end' => 6,
+ 'multiplier' => 2,
+ ],
// Voucher calculation
'voucher_settings' => [
@@ -109,10 +99,10 @@ return [
'en_US.UTF-8' => 'English',
],
- 'default_locale' => env('DEFAULT_LOCALE', 'en_US.UTF-8'),
+ 'default_locale' => env('DEFAULT_LOCALE', 'en_US.UTF-8'),
// Available T-Shirt sizes, set value to null if not available
- 'tshirt_sizes' => [
+ 'tshirt_sizes' => [
'S' => 'S',
'S-G' => 'S Girl',
'M' => 'M',