diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-08-17 13:54:48 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-08-17 13:54:48 +0200 |
| commit | 8ed1b574e8b5e9fc806aedc87af7aabcf73da6e6 (patch) | |
| tree | 5126fb297b9df2829b6b34f966f615183b4c73af /lib/shift.dart | |
| parent | 3d25fdc99fd37f3b5e37f25b7a38804a02130426 (diff) | |
b0.2
Diffstat (limited to 'lib/shift.dart')
| -rw-r--r-- | lib/shift.dart | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/shift.dart b/lib/shift.dart index eecf4cc..c444b38 100644 --- a/lib/shift.dart +++ b/lib/shift.dart @@ -120,6 +120,11 @@ class Shift { getMinutePayRate() * 1.35; } + if (start.weekday == 7) { + return endToCalculate.difference(start).inMinutes * + getMinutePayRate() * + 2; + } return endToCalculate.difference(start).inMinutes * getMinutePayRate(); } |
