Aggiunta possibilità di modificare richiesta promemoria in programmazione

This commit is contained in:
loviuz 2021-05-17 17:31:03 +02:00
parent 7357d7b0ca
commit 30b249b4c0
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>';