This commit is contained in:
MatteoPistorello 2022-02-03 10:12:43 +01:00
commit 68f7f995ed
3 changed files with 2 additions and 2 deletions

View File

@ -1041,6 +1041,7 @@ div.tip {
.control-sidebar.control-sidebar-open, .control-sidebar.control-sidebar-open,
.control-sidebar.control-sidebar-open + .control-sidebar-bg { .control-sidebar.control-sidebar-open + .control-sidebar-bg {
right: 0; right: 0;
top: 50px;
} }
.control-sidebar-toggle { .control-sidebar-toggle {

View File

@ -921,7 +921,6 @@ $(document).ready(function () {
$("#data_registrazione").on("dp.change", function (e) { $("#data_registrazione").on("dp.change", function (e) {
let data_competenza = $("#data_competenza"); let data_competenza = $("#data_competenza");
data_competenza.data("DateTimePicker").minDate(e.date);
if(data_competenza.data("DateTimePicker").date() < e.date){ if(data_competenza.data("DateTimePicker").date() < e.date){
data_competenza.data("DateTimePicker").date(e.date); data_competenza.data("DateTimePicker").date(e.date);

View File

@ -89,7 +89,7 @@ switch (post('op')) {
$accodare = post('accodare'); $accodare = post('accodare');
$id_segment = post('id_segment'); $id_segment = post('id_segment');
$interventi = $dbo->fetchArray('SELECT *, IFNULL((SELECT MIN(orario_inizio) FROM in_interventi_tecnici WHERE in_interventi_tecnici.idintervento = in_interventi.id), in_interventi.data_richiesta) AS data, in_statiintervento.descrizione AS stato, in_interventi.codice AS codice_intervento FROM in_interventi INNER JOIN in_statiintervento ON in_interventi.idstatointervento=in_statiintervento.idstatointervento WHERE in_statiintervento.is_completato=1 AND in_interventi.id NOT IN (SELECT idintervento FROM co_righe_documenti WHERE idintervento IS NOT NULL) AND in_interventi.id_preventivo IS NULL AND in_interventi.id_contratto IS NULL AND in_interventi.id_ordine IS NULL AND in_interventi.id NOT IN (SELECT idintervento FROM co_promemoria WHERE idintervento IS NOT NULL) AND in_interventi.id IN ('.implode(',', $id_records).')'); $interventi = $dbo->fetchArray('SELECT *, IFNULL((SELECT MIN(orario_inizio) FROM in_interventi_tecnici WHERE in_interventi_tecnici.idintervento = in_interventi.id), in_interventi.data_richiesta) AS data, in_statiintervento.descrizione AS stato, in_interventi.codice AS codice_intervento FROM in_interventi INNER JOIN in_statiintervento ON in_interventi.idstatointervento=in_statiintervento.idstatointervento WHERE in_statiintervento.is_completato=1 AND in_statiintervento.is_fatturabile=1 AND in_interventi.id NOT IN (SELECT idintervento FROM co_righe_documenti WHERE idintervento IS NOT NULL) AND in_interventi.id_preventivo IS NULL AND in_interventi.id_contratto IS NULL AND in_interventi.id_ordine IS NULL AND in_interventi.id NOT IN (SELECT idintervento FROM co_promemoria WHERE idintervento IS NOT NULL) AND in_interventi.id IN ('.implode(',', $id_records).')');
// Lettura righe selezionate // Lettura righe selezionate
foreach ($interventi as $intervento) { foreach ($interventi as $intervento) {