Fix minori

This commit is contained in:
Pek5892 2022-12-06 16:47:21 +01:00
parent b8b6ebae3d
commit fe82291c94
6 changed files with 15 additions and 11 deletions

View File

@ -69,6 +69,9 @@ Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://k
- Aggiunto controllo file di servizio
- Aggiunta email tecnici assegnati nel template Notifica intervento
- 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)
- Miglioria gestione prezzi
- Ottimizzate query viste per aumentare la velocità di caricamento dei moduli principali

View File

@ -36,7 +36,7 @@ class Interventi extends AppResource
$today = new Carbon();
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
$start = $today->copy()->subMonths($mesi_precedenti);
$end = $today->copy()->addMonth(1);
$end = $today->copy()->addMonth();
return [
'today' => $today,

View File

@ -38,7 +38,7 @@ class RigheInterventi extends AppResource
// Periodo per selezionare interventi
$today = new Carbon();
$start = $today->copy()->subMonths(2);
$end = $today->copy()->addMonth(1);
$end = $today->copy()->addMonth();
// Informazioni sull'utente
$user = Auth::user();
@ -72,7 +72,7 @@ class RigheInterventi extends AppResource
// Periodo per selezionare interventi
$today = new Carbon();
$start = $today->copy()->subMonths(2);
$end = $today->copy()->addMonth(1);
$end = $today->copy()->addMonth();
// Informazioni sull'utente
$user = Auth::user();

View File

@ -34,7 +34,7 @@ class SessioniInterventi extends AppResource
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
$today = new Carbon();
$start = $today->copy()->subMonths($mesi_precedenti);
$end = $today->copy()->addMonth(1);
$end = $today->copy()->addMonth();
// Informazioni sull'utente
$user = Auth::user();
@ -73,7 +73,7 @@ class SessioniInterventi extends AppResource
$mesi_precedenti = intval(setting('Mesi per lo storico delle Attività'));
$today = new Carbon();
$start = $today->copy()->subMonths($mesi_precedenti);
$end = $today->copy()->addMonth(1);
$end = $today->copy()->addMonth();
// Informazioni sull'utente
$user = Auth::user();

View File

@ -116,8 +116,9 @@ class Zip
*/
public static function check($path)
{
$errno = zip_open($path);
zip_close($errno);
$zip = new ZipArchive;
$errno = $zip->open($path);
$errno = $zip->close();
if (!is_resource($errno)) {
// using constant name as a string to make this function PHP4 compatible

View File

@ -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"');
if ($periodo['valore'] == 'Mensile') {
$periodo_precedente_start = (new Carbon($date_start))->subMonth(1)->format('Y-m-d');
$periodo_precedente_end = (new Carbon($date_end))->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()->format('Y-m-d');
} else {
$periodo_precedente_start = (new Carbon($date_start))->subMonth(3)->format('Y-m-d');
$periodo_precedente_end = (new Carbon($date_end))->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))->subMonths(3)->format('Y-m-d');
}
$maggiorazione = 0;