Files
paycheck/internal/models/import.go

22 lines
798 B
Go

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"`
}