1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 23:33:02 +01:00

Filtro referente per sede in interventi

This commit is contained in:
Beppe 2023-01-13 10:02:43 +01:00
parent f25f105d69
commit 8398dc723b

View File

@ -76,7 +76,7 @@ echo '
</div>
<div class="col-md-6">
{[ "type": "select", "label": "'.tr('Referente').'", "name": "idreferente", "value": "$idreferente$", "ajax-source": "referenti", "select-options": '.json_encode(['idanagrafica' => $record['idanagrafica'], 'idclientefinale' => $record['idclientefinale']]).', "readonly": "'.intval($record['flag_completato']).'" ]}
{[ "type": "select", "label": "'.tr('Referente').'", "name": "idreferente", "value": "$idreferente$", "ajax-source": "referenti", "select-options": '.json_encode(['idanagrafica' => $record['idanagrafica'], 'idclientefinale' => $record['idclientefinale'], 'idsede_destinazione' => $record['idsede_destinazione']]).', "readonly": "'.intval($record['flag_completato']).'" ]}
</div>
</div>
@ -690,7 +690,8 @@ $(document).ready(function() {
updateSelectOption("idsede_destinazione", $(this).val());
session_set("superselect,idsede_destinazione", $(this).val(), 0);
input("idimpianti").getElement().selectReset();
input("idreferente").getElement().selectReset();
let data = sede.getData();
if (data) {
input("idzona").set(data.idzona ? data.idzona : "");