-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from moshthepitt/better-leave-day-calculation
Better leave day calculation
- Loading branch information
Showing
12 changed files
with
510 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
""" | ||
Main init file for small_small_hr | ||
""" | ||
VERSION = (0, 1, 1) | ||
VERSION = (0, 1, 2) | ||
__version__ = '.'.join(str(v) for v in VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.1.2 on 2018-11-15 18:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('small_small_hr', '0004_auto_20180725_2127'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='staffdocument', | ||
name='public', | ||
field=models.BooleanField( | ||
blank=True, | ||
default=False, | ||
help_text='If public, it will be available to everyone.', | ||
verbose_name='Public'), | ||
), | ||
migrations.AlterField( | ||
model_name='staffprofile', | ||
name='overtime_allowed', | ||
field=models.BooleanField( | ||
blank=True, default=False, verbose_name='Overtime allowed'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
Configurable options | ||
""" | ||
SSHR_MAX_CARRY_OVER = 10 | ||
SSHR_DAY_LEAVE_VALUES = { | ||
1: 1, # Monday | ||
2: 1, # Tuesday | ||
3: 1, # Wednesday | ||
4: 1, # Thursday | ||
5: 1, # Friday | ||
6: 0, # Saturday | ||
7: 0, # Sunday | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.