Import initail de calcul-astreintes v0.9.4 pour passage en paycheck 1.0
This commit is contained in:
21
internal/models/import.go
Normal file
21
internal/models/import.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package models
|
||||
|
||||
// Agent = une personne trouvée dans le fichier (affichage + clé matricule)
|
||||
type Agent struct {
|
||||
Matricule string `json:"matricule"`
|
||||
Nom string `json:"nom"`
|
||||
Prenom string `json:"prenom"`
|
||||
Display string `json:"display"` // "NOM Prenom (matricule)"
|
||||
}
|
||||
|
||||
// AgentTotals = les totaux "Total Agent" (ligne du dessus)
|
||||
type AgentTotals struct {
|
||||
Matricule string `json:"matricule"`
|
||||
Q471 float64 `json:"q471"` // Total heures astreinte (col G)
|
||||
Q456 float64 `json:"q456"` // Intervention jour (col L)
|
||||
Q459 float64 `json:"q459"` // Intervention nuit (col M)
|
||||
Q458 float64 `json:"q458"` // Intervention dimanche/ferié (col N)
|
||||
|
||||
// ✅ Nouveau: nombre de dimanches / jours fériés détectés via les lignes P_DIM-JF
|
||||
NbDimFerie int `json:"nbDimFerie"`
|
||||
}
|
||||
Reference in New Issue
Block a user