Compare commits
3 Commits
b8b6ebae3d
...
2debdb2cfa
Author | SHA1 | Date |
---|---|---|
Pek5892 | 2debdb2cfa | |
Pek5892 | e1fde6896c | |
Pek5892 | 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
|
||||
|
@ -101,6 +104,7 @@ Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://k
|
|||
- Corretta query elenco di scadenze scadute per cliente in nuova fattura di vendita
|
||||
- Corretta logica riapertura fattura pagata
|
||||
- Corretta valorizzazione codice REA in fase di importazione fattura elettronica
|
||||
- Corretta creazione fattura da azioni di gruppo in Attività se valorizzato 'Per conto di'
|
||||
## 2.4.37 (2022-11-04)
|
||||
### Aggiunto (Added)
|
||||
- Aggiunto modulo Mappa per geolocalizzare le attività
|
||||
|
|
|
@ -97,7 +97,14 @@ switch (post('op')) {
|
|||
|
||||
// Lettura righe selezionate
|
||||
foreach ($interventi as $intervento) {
|
||||
$id_anagrafica = $intervento['idanagrafica'];
|
||||
|
||||
if (!empty($intervento['idclientefinale'])){
|
||||
$id_anagrafica = $intervento['idclientefinale'];
|
||||
}
|
||||
else {
|
||||
$id_anagrafica = $intervento['idanagrafica'];
|
||||
}
|
||||
|
||||
$id_documento = $id_documento_cliente[$id_anagrafica];
|
||||
|
||||
$anagrafica = Anagrafica::find($id_anagrafica);
|
||||
|
|
|
@ -85,7 +85,7 @@ echo '
|
|||
</div>';
|
||||
|
||||
//gestione replace
|
||||
$descrizione = get_var('Descrizione fattura pianificata');
|
||||
$descrizione = setting('Descrizione fattura pianificata');
|
||||
$modules = MODULES::get('Contratti')['id'];
|
||||
$variables = include Modules::filepath($modules, 'variables.php');
|
||||
foreach ($variables as $variable => $value) {
|
||||
|
|
|
@ -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