Compare commits
3 Commits
c8fa396c8f
...
580fbfcaab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
580fbfcaab | ||
|
|
565cd08f10 | ||
|
|
52baa7f6c3 |
4
.replit
4
.replit
@ -35,6 +35,10 @@ externalPort = 4200
|
|||||||
localPort = 42175
|
localPort = 42175
|
||||||
externalPort = 3002
|
externalPort = 3002
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 42187
|
||||||
|
externalPort = 6800
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 43169
|
localPort = 43169
|
||||||
externalPort = 5000
|
externalPort = 5000
|
||||||
|
|||||||
Binary file not shown.
BIN
database-backups/vigilanzaturni_v1.0.51_20251024_132912.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.51_20251024_132912.sql.gz
Normal file
Binary file not shown.
@ -929,7 +929,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
const weekEndTimestampForContract = new Date(weekEndYear, weekEndMonth - 1, weekEndDay, 23, 59, 59, 999);
|
const weekEndTimestampForContract = new Date(weekEndYear, weekEndMonth - 1, weekEndDay, 23, 59, 59, 999);
|
||||||
|
|
||||||
// Ottieni tutti i siti attivi della sede con contratto valido nelle date della settimana
|
// Ottieni tutti i siti attivi della sede con contratto valido nelle date della settimana
|
||||||
const activeSites = await db
|
const allActiveSites = await db
|
||||||
.select()
|
.select()
|
||||||
.from(sites)
|
.from(sites)
|
||||||
.leftJoin(serviceTypes, eq(sites.serviceTypeId, serviceTypes.id))
|
.leftJoin(serviceTypes, eq(sites.serviceTypeId, serviceTypes.id))
|
||||||
@ -944,6 +944,12 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Filtra solo siti FISSI in base alla classificazione del serviceType
|
||||||
|
// Esclude siti con classificazione "mobile" che vanno gestiti in Planning Mobile
|
||||||
|
const activeSites = allActiveSites.filter((s: any) =>
|
||||||
|
!s.service_types || s.service_types.classification?.toLowerCase() === "fisso"
|
||||||
|
);
|
||||||
|
|
||||||
// Ottieni tutti i turni della settimana per la sede
|
// Ottieni tutti i turni della settimana per la sede
|
||||||
// ✅ CORRETTO: Usa timestamp già creati correttamente sopra
|
// ✅ CORRETTO: Usa timestamp già creati correttamente sopra
|
||||||
const weekStartTimestamp = weekStartTimestampForContract;
|
const weekStartTimestamp = weekStartTimestampForContract;
|
||||||
@ -1526,7 +1532,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
|
|
||||||
// Filtra solo turni FISSI in base alla classificazione del serviceType
|
// Filtra solo turni FISSI in base alla classificazione del serviceType
|
||||||
const weekShifts = allWeekShifts.filter((s: any) =>
|
const weekShifts = allWeekShifts.filter((s: any) =>
|
||||||
s.serviceType && s.serviceType.classification === "fisso"
|
s.serviceType && s.serviceType.classification?.toLowerCase() === "fisso"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Ottieni tutte le assegnazioni per i turni della settimana
|
// Ottieni tutte le assegnazioni per i turni della settimana
|
||||||
|
|||||||
16
version.json
16
version.json
@ -1,7 +1,13 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.50",
|
"version": "1.0.51",
|
||||||
"lastUpdate": "2025-10-24T10:26:29.152Z",
|
"lastUpdate": "2025-10-24T13:29:30.617Z",
|
||||||
"changelog": [
|
"changelog": [
|
||||||
|
{
|
||||||
|
"version": "1.0.51",
|
||||||
|
"date": "2025-10-24",
|
||||||
|
"type": "patch",
|
||||||
|
"description": "Deployment automatico v1.0.51"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.0.50",
|
"version": "1.0.50",
|
||||||
"date": "2025-10-24",
|
"date": "2025-10-24",
|
||||||
@ -295,12 +301,6 @@
|
|||||||
"date": "2025-10-17",
|
"date": "2025-10-17",
|
||||||
"type": "patch",
|
"type": "patch",
|
||||||
"description": "Deployment automatico v1.0.2"
|
"description": "Deployment automatico v1.0.2"
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.1",
|
|
||||||
"date": "2025-10-17",
|
|
||||||
"type": "patch",
|
|
||||||
"description": "Deployment automatico v1.0.1"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user