Fix minori
This commit is contained in:
parent
b8b6ebae3d
commit
fe82291c94
|
@ -69,6 +69,9 @@ Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://k
|
||||||
- Aggiunto controllo file di servizio
|
- Aggiunto controllo file di servizio
|
||||||
- Aggiunta email tecnici assegnati nel template Notifica intervento
|
- Aggiunta email tecnici assegnati nel template Notifica intervento
|
||||||
- Aggiunta azione di gruppo invio mail da Attività
|
- Aggiunta azione di gruppo invio mail da Attività
|
||||||
|
- Aggiunte opzioni per connessione al Database
|
||||||
|
- Aggiunto controllo plugin duplicati per i moduli
|
||||||
|
- Aggiunto controllo per Anagrafiche con codici REA non validi
|
||||||
### Modificato(Changed)
|
### Modificato(Changed)
|
||||||
- Miglioria gestione prezzi
|
- Miglioria gestione prezzi
|
||||||
- Ottimizzate query viste per aumentare la velocità di caricamento dei moduli principali
|
- Ottimizzate query viste per aumentare la velocità di caricamento dei moduli principali
|
||||||
|
|
|
@ -36,7 +36,7 @@ class Interventi extends AppResource
|
||||||
$today = new Carbon();
|
$today = new Carbon();
|
||||||
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
|
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
|
||||||
$start = $today->copy()->subMonths($mesi_precedenti);
|
$start = $today->copy()->subMonths($mesi_precedenti);
|
||||||
$end = $today->copy()->addMonth(1);
|
$end = $today->copy()->addMonth();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'today' => $today,
|
'today' => $today,
|
||||||
|
|
|
@ -38,7 +38,7 @@ class RigheInterventi extends AppResource
|
||||||
// Periodo per selezionare interventi
|
// Periodo per selezionare interventi
|
||||||
$today = new Carbon();
|
$today = new Carbon();
|
||||||
$start = $today->copy()->subMonths(2);
|
$start = $today->copy()->subMonths(2);
|
||||||
$end = $today->copy()->addMonth(1);
|
$end = $today->copy()->addMonth();
|
||||||
|
|
||||||
// Informazioni sull'utente
|
// Informazioni sull'utente
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
@ -72,7 +72,7 @@ class RigheInterventi extends AppResource
|
||||||
// Periodo per selezionare interventi
|
// Periodo per selezionare interventi
|
||||||
$today = new Carbon();
|
$today = new Carbon();
|
||||||
$start = $today->copy()->subMonths(2);
|
$start = $today->copy()->subMonths(2);
|
||||||
$end = $today->copy()->addMonth(1);
|
$end = $today->copy()->addMonth();
|
||||||
|
|
||||||
// Informazioni sull'utente
|
// Informazioni sull'utente
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
|
@ -34,7 +34,7 @@ class SessioniInterventi extends AppResource
|
||||||
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
|
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
|
||||||
$today = new Carbon();
|
$today = new Carbon();
|
||||||
$start = $today->copy()->subMonths($mesi_precedenti);
|
$start = $today->copy()->subMonths($mesi_precedenti);
|
||||||
$end = $today->copy()->addMonth(1);
|
$end = $today->copy()->addMonth();
|
||||||
|
|
||||||
// Informazioni sull'utente
|
// Informazioni sull'utente
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
@ -73,7 +73,7 @@ class SessioniInterventi extends AppResource
|
||||||
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
|
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
|
||||||
$today = new Carbon();
|
$today = new Carbon();
|
||||||
$start = $today->copy()->subMonths($mesi_precedenti);
|
$start = $today->copy()->subMonths($mesi_precedenti);
|
||||||
$end = $today->copy()->addMonth(1);
|
$end = $today->copy()->addMonth();
|
||||||
|
|
||||||
// Informazioni sull'utente
|
// Informazioni sull'utente
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
|
@ -116,8 +116,9 @@ class Zip
|
||||||
*/
|
*/
|
||||||
public static function check($path)
|
public static function check($path)
|
||||||
{
|
{
|
||||||
$errno = zip_open($path);
|
$zip = new ZipArchive;
|
||||||
zip_close($errno);
|
$errno = $zip->open($path);
|
||||||
|
$errno = $zip->close();
|
||||||
|
|
||||||
if (!is_resource($errno)) {
|
if (!is_resource($errno)) {
|
||||||
// using constant name as a string to make this function PHP4 compatible
|
// using constant name as a string to make this function PHP4 compatible
|
||||||
|
|
|
@ -28,11 +28,11 @@ $anno_precedente_end = (new Carbon($date_end))->subYears(1)->format('Y-m-d');
|
||||||
|
|
||||||
$periodo = $dbo->fetchOne('SELECT valore FROM zz_settings WHERE nome="Liquidazione iva"');
|
$periodo = $dbo->fetchOne('SELECT valore FROM zz_settings WHERE nome="Liquidazione iva"');
|
||||||
if ($periodo['valore'] == 'Mensile') {
|
if ($periodo['valore'] == 'Mensile') {
|
||||||
$periodo_precedente_start = (new Carbon($date_start))->subMonth(1)->format('Y-m-d');
|
$periodo_precedente_start = (new Carbon($date_start))->subMonth()->format('Y-m-d');
|
||||||
$periodo_precedente_end = (new Carbon($date_end))->subMonth(1)->format('Y-m-d');
|
$periodo_precedente_end = (new Carbon($date_end))->subMonth()->format('Y-m-d');
|
||||||
} else {
|
} else {
|
||||||
$periodo_precedente_start = (new Carbon($date_start))->subMonth(3)->format('Y-m-d');
|
$periodo_precedente_start = (new Carbon($date_start))->subMonths(3)->format('Y-m-d');
|
||||||
$periodo_precedente_end = (new Carbon($date_end))->subMonth(3)->format('Y-m-d');
|
$periodo_precedente_end = (new Carbon($date_end))->subMonths(3)->format('Y-m-d');
|
||||||
}
|
}
|
||||||
|
|
||||||
$maggiorazione = 0;
|
$maggiorazione = 0;
|
||||||
|
|
Loading…
Reference in New Issue