1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-28 01:07:58 +01:00

Bugfix tempo_standard

This commit is contained in:
Thomas Zilio 2018-11-23 17:58:59 +01:00
parent e72020197e
commit ee1f5ae16b

View File

@ -409,7 +409,7 @@ if (!empty($id_intervento)) {
if($(this).val()){ if($(this).val()){
//TODO: disattivato perché genera problemi con il change successivo di iditpointervento per il tempo standard* //TODO: disattivato perché genera problemi con il change successivo di iditpointervento per il tempo standard*
//$('#bs-popup #idtipointervento').selectSetNew($(this).selectData().idtipointervento, $(this).selectData().idtipointervento_descrizione); $('#bs-popup #idtipointervento').selectSetNew($(this).selectData().idtipointervento, $(this).selectData().idtipointervento_descrizione);
} }
}); });
@ -427,11 +427,11 @@ if (!empty($id_intervento)) {
$("#bs-popup #componenti").selectReset(); $("#bs-popup #componenti").selectReset();
}); });
// tempo standard* // tempo standard
// TODO: tempo_standard da preventivo e contratto attraverso selectData() relativi
$('#bs-popup #idtipointervento').change( function(){ $('#bs-popup #idtipointervento').change( function(){
if ($(this).selectData() && (($(this).selectData().tempo_standard)>0) && ('<?php echo filter('orario_fine'); ?>' == '')){
if ( (($(this).selectData().tempo_standard)>0) && ('<?php echo filter('orario_fine'); ?>' == '')){
tempo_standard = $(this).selectData().tempo_standard; tempo_standard = $(this).selectData().tempo_standard;
data = moment($('#bs-popup #orario_inizio').val(), globals.timestampFormat); data = moment($('#bs-popup #orario_inizio').val(), globals.timestampFormat);