Aggiunta possibilità di modificare richiesta promemoria in programmazione

This commit is contained in:
loviuz 2021-05-17 17:31:03 +02:00 committed by Dasc3er
parent e944be583a
commit 65930d516e
2 changed files with 5 additions and 1 deletions

View File

@ -189,6 +189,10 @@ switch (post('op')) {
} else {
$id_record = post('id_intervento');
$intervento = Intervento::find($id_record);
$intervento->richiesta = post('richiesta');
$intervento->save();
$idcontratto = $dbo->fetchOne('SELECT idcontratto FROM co_promemoria WHERE idintervento = :id', [
':id' => $id_record,
])['idcontratto'];

View File

@ -332,6 +332,7 @@ if (!empty($id_intervento)) {
input("idsede_destinazione").disable();
input("idpreventivo").disable();
input("idcontratto").disable();
input("idordine").disable();
input("idimpianti").disable();
input("componenti").disable();
input("idanagrafica").disable();
@ -339,7 +340,6 @@ if (!empty($id_intervento)) {
input("idzona").disable();
input("idtipointervento").disable();
input("idstatointervento").disable();
input("richiesta").disable();
input("data_richiesta").disable();
});
</script>';