Gestion du changement de type de contrat + correction du calcule des RTT sur un contrat qui commence en milieu de semaine (#19)
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [x] Pas de régression - [x] TU/TI/TF rédigée - [x] TU/TI/TF OK - [x] CHANGELOG modifié Reviewed-on: #19 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
This commit was merged in pull request #19.
This commit is contained in:
13
frontend/services/dto/contract-phase.ts
Normal file
13
frontend/services/dto/contract-phase.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { ContractType } from './contract'
|
||||
|
||||
export type ContractPhase = {
|
||||
id: number
|
||||
contractType: ContractType
|
||||
weeklyHours: number | null
|
||||
isDriver: boolean
|
||||
startDate: string
|
||||
endDate: string | null
|
||||
periodIds: number[]
|
||||
isCurrent: boolean
|
||||
contractNature: 'CDI' | 'CDD' | 'INTERIM'
|
||||
}
|
||||
@@ -16,6 +16,7 @@ export type EmployeeLeaveSummary = {
|
||||
previousYearPaidDays: number
|
||||
presenceDaysByMonth: Record<string, number>
|
||||
presenceDaysToToday: number
|
||||
forfaitWorkTargetDays: number | null
|
||||
dataStartDate: string | null
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { Site } from './site'
|
||||
import type { Contract } from './contract'
|
||||
import type { ContractPhase } from './contract-phase'
|
||||
|
||||
export type ContractSuspension = {
|
||||
id: number
|
||||
@@ -41,4 +42,5 @@ export type Employee = {
|
||||
currentSuspensions?: ContractSuspension[]
|
||||
currentInterimAgencyId?: number | null
|
||||
currentInterimAgencyName?: string | null
|
||||
contractPhases?: ContractPhase[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user