diff --git a/CHANGELOG.md b/CHANGELOG.md index e171cf5ef..f3f07a7ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,21 @@ 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.1] - Unreleased +### Added + +### Changed + - Modificato il comportamento del popover nella colonna tempo a lavoro per i dipendenti con "Presenza automatica": + anche per questi viene mostrato il tempo che si avrebbe da timbrature con l'eventuale sottrazione della pausa pranzo + (per rendicontazione). + ## [2.16.0] - 2024-05-24 ### Added ### Changed - Modificato il nome dell'orario Maternità CNR in Allattamento per renderlo più generico e usabile in tutte le installazioni di ePAS + ## [2.15.2] - 2024-05-23 ### Added diff --git a/app/manager/PersonDayManager.java b/app/manager/PersonDayManager.java index 6fa37335d..661065ac3 100755 --- a/app/manager/PersonDayManager.java +++ b/app/manager/PersonDayManager.java @@ -416,10 +416,6 @@ public PersonDay updateTimeAtWork(PersonDay personDay, WorkingTimeTypeDay wttd, personDay.setJustifiedTimeNoMeal(0); personDay.setTimeAtWork(0); - // Patch persone fixed - if (fixedTimeAtWork) { - return updateTimeAtWorkFixed(personDay, wttd); - } // Gli invarianti del calcolo. // @@ -439,6 +435,7 @@ public PersonDay updateTimeAtWork(PersonDay personDay, WorkingTimeTypeDay wttd, } else { personDay.setOutOpening(personDay.getStampingsTime() - stampingTimeInOpening); } + //Caso assenza che assegna l'intera giornata ex 103, 103BP, 105BP Optional assignAllDay = getAssignAllDay(personDay); @@ -513,6 +510,11 @@ public PersonDay updateTimeAtWork(PersonDay personDay, WorkingTimeTypeDay wttd, mealTicketHandlerAndDecurtedMeal(personDay, wttd, stampingTimeInOpening, startLunch, endLunch, exitingNow); + + // Patch persone fixed + if (fixedTimeAtWork) { + return updateTimeAtWorkFixed(personDay, wttd); + } //Gestione decurtazione. // Si applica solo se non ci sono assenze orarie che maturano il buono diff --git a/app/views/Stampings/personStampingComponents/_workTimeDifferenceProgressive.html b/app/views/Stampings/personStampingComponents/_workTimeDifferenceProgressive.html index cb23ebcd8..16688644d 100644 --- a/app/views/Stampings/personStampingComponents/_workTimeDifferenceProgressive.html +++ b/app/views/Stampings/personStampingComponents/_workTimeDifferenceProgressive.html @@ -67,7 +67,7 @@ Tempo a lavoro totale calcolato: ${dayRecap.personDay.timeAtWork.printHourMinute()} #{if dayRecap.fixedWorkingTimeCode} -
${dayRecap.fixedWorkingTimeCode.description} +
${dayRecap.fixedWorkingTimeCode.description} #{/if} #{if dayRecap.personDay?.stampingsTime > 0}