-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
497 additions
and
179 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
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,17 @@ | ||
from .types import Months | ||
|
||
|
||
MONTHS: Months = ( | ||
"apr", | ||
"may", | ||
"jun", | ||
"jul", | ||
"aug", | ||
"sep", | ||
"oct", | ||
"nov", | ||
"dec", | ||
"jan", | ||
"feb", | ||
"mar", | ||
) |
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,46 @@ | ||
from typing import Literal, TypedDict | ||
|
||
|
||
Month = Literal[ | ||
"apr", | ||
"may", | ||
"jun", | ||
"jul", | ||
"aug", | ||
"sep", | ||
"oct", | ||
"nov", | ||
"dec", | ||
"jan", | ||
"feb", | ||
"mar", | ||
] | ||
Months = tuple[ | ||
Literal["apr"], | ||
Literal["may"], | ||
Literal["jun"], | ||
Literal["jul"], | ||
Literal["aug"], | ||
Literal["sep"], | ||
Literal["oct"], | ||
Literal["nov"], | ||
Literal["dec"], | ||
Literal["jan"], | ||
Literal["feb"], | ||
Literal["mar"], | ||
] | ||
|
||
|
||
class MonthsDict[T](TypedDict): | ||
apr: T | ||
may: T | ||
jun: T | ||
jul: T | ||
aug: T | ||
sep: T | ||
oct: T | ||
nov: T | ||
dec: T | ||
jan: T | ||
feb: T | ||
mar: T |
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
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
28 changes: 28 additions & 0 deletions
28
payroll/migrations/0015_employee_basic_pay_employee_ernic_employee_pension.py
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 4.2.16 on 2024-11-27 14:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("payroll", "0014_alter_vacancypayperiods_vacancy"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="employee", | ||
name="basic_pay", | ||
field=models.BigIntegerField(db_comment="pence", default=0), | ||
), | ||
migrations.AddField( | ||
model_name="employee", | ||
name="ernic", | ||
field=models.BigIntegerField(db_comment="pence", default=0), | ||
), | ||
migrations.AddField( | ||
model_name="employee", | ||
name="pension", | ||
field=models.BigIntegerField(db_comment="pence", default=0), | ||
), | ||
] |
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.