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
|
||||
- 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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue