1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-27 22:19:26 +01:00

Update Sessioni.php

This commit is contained in:
Luca 2020-05-08 18:37:45 +02:00
parent 4a3c680820
commit 47a82c93a6

View File

@ -13,7 +13,7 @@ class Sessioni extends Resource implements RetrieveInterface, CreateInterface, D
{
$user = $this->getUser();
$query = 'SELECT id, idtecnico AS id_tecnico, idintervento AS id_intervento, orario_inizio, orario_fine FROM in_interventi_tecnici WHERE `idintervento` = :id_intervento';
$query = 'SELECT id, idtecnico AS id_tecnico, idintervento AS id_intervento, orario_inizio, orario_fine, ragione_sociale AS tecnico FROM in_interventi_tecnici INNER JOIN an_anagrafiche ON idanagrafica = idtecnico WHERE `idintervento` = :id_intervento';
$parameters = [
':id_intervento' => $request['id_intervento'],