Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

169 modificare le absencetypes in funzione della sincronizzazione con sistema timesheet #173

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.16.0] - UNRELEASED
### Added
- Aggiunto campo externalId all'enumerato che modella gli absenceTypes e reso disponibile anche
nella form di modifica degli absence_types

### Changed
- Modificato il valore del campo isRealAbsence per le assenze che sono in realtà specifiche modalità
di lavoro
- Aggiornata la procedura di allineamento tra enumerato e absence_types

## [2.15.0] - 2024-04-04
### Added
- Aggiunti ruoli di sistema Gestore assenze e Gestore anagrafica a quelli che possono chiamare
il servizio REST con la lista delle sedi
- Modificato il calcolo delle ore di turno del pomeriggio per chi utilizza la fascia oraria
07-14/13.30-19: ora a chi fa il pomeriggio viene conteggiata una mezz'ora in meno


### Changed
- Nel metodo REST /rest/v2/certifications/getMonthSituationByOffice valorizzate correttamente
le competenze
- Nel metodo REST /rest/v3/persondays/getMonthSituationByPerson per il personDay esportati i campi
stampingsTime e decurtedMeal e per le assenze esportato isRealAbsence


## [2.14.1] - 2024-03-15
### Changed
- Corretto metodo che preleva la lista delle persone attive che aveva un problema
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.15.0
2.16.0
3 changes: 3 additions & 0 deletions app/manager/services/absences/EnumAllineator.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ public void handleAbsenceTypes(boolean initialization) {
}
absenceType.setValidFrom(defaultAbsenceType.get().validFrom);
absenceType.setValidTo(defaultAbsenceType.get().validTo);
absenceType.setExternalId(defaultAbsenceType.get().externalId);
absenceType.setRealAbsence(defaultAbsenceType.get().isRealAbsence);
absenceType.save();
updateBehaviourSet(absenceType, absenceType.getJustifiedBehaviours(),
defaultAbsenceType.get().behaviour);

absenceType.save();
}

Expand Down
3 changes: 3 additions & 0 deletions app/models/absences/AbsenceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ public class AbsenceType extends BaseModel {
private boolean reperibilityCompatible;

private boolean shiftCompatible;

@Getter
@Setter
private boolean isRealAbsence = true;

private String externalId;
Expand Down
1,101 changes: 552 additions & 549 deletions app/models/absences/definitions/DefaultAbsenceType.java

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/views/AbsenceGroups/editAbsenceType.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#{f.selectEnum 'absenceType.mealTicketBehaviour', items:models.enumerate.MealTicketBehaviour.values(), custom_popover:'true' /}
#{f.booleanRadio 'absenceType.reperibilityCompatible', custom_popover:'true' /}
#{f.booleanRadio 'absenceType.shiftCompatible', custom_popover:'true' /}
#{f.booleanRadio 'absenceType.realAbsence', custom_popover:'true' /}

#{f.input 'absenceType.externalId',custom_popover:'true' /}
#{f.booleanRadio 'absenceType.toUpdate', custom_popover:'true' /}
Expand Down
4 changes: 4 additions & 0 deletions conf/messages.it
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,10 @@ absenceType.toUpdate=Aggiornamento stato assenza
absenceType.mealTicketBehaviour =Comportamento per buono pasto
absenceType.externalId =External id
absenceType.externalId.popover =External id utilizzabile anche per il raggruppamento delle assenze per i timesheet
absenceType.realAbsence =Vera assenza
absenceType.realAbsence.popover =Codice che giustifica una assenza o una specifica condizione lavorativa non in sede
absenceType.reperibilityCompatible.popover =Compatibile con una giornata di reperibilità
absenceType.shiftCompatible.popover =Compatibile con la presenza in turno

absenceType.replacingTime=Minuti per completamento
absenceType.used=Usato
Expand Down
Loading