Fix percorsi errati in Interventi

This commit is contained in:
Thomas Zilio 2019-11-08 15:09:05 +01:00
parent 258b1ed37c
commit 2457bd4edd
7 changed files with 7 additions and 36 deletions

View File

@ -1,10 +1,6 @@
<?php
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
include_once __DIR__.'/../../core.php';
// Prezzo modificabile solo se l'utente loggato è un tecnico (+ può vedere i prezzi) o se è amministratore
$gruppi = Auth::user()['gruppo'];

View File

@ -1,11 +1,6 @@
<?php
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
$module_name = 'Interventi';
include_once __DIR__.'/../../core.php';
if (get('anteprima') !== null) {
// Lettura dati intervento

View File

@ -1,10 +1,6 @@
<?php
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
include_once __DIR__.'/../../core.php';
$idriga = filter('idriga');

View File

@ -1,10 +1,6 @@
<?php
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
include_once __DIR__.'/../../core.php';
use Modules\Interventi\Intervento;

View File

@ -2,11 +2,7 @@
use Modules\Interventi\Intervento;
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
include_once __DIR__.'/../../core.php';
$show_prezzi = Auth::user()['gruppo'] != 'Tecnici' || (Auth::user()['gruppo'] == 'Tecnici' && setting('Mostra i prezzi al tecnico'));

View File

@ -1,10 +1,6 @@
<?php
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
include_once __DIR__.'/../../core.php';
$show_costi = true;
// Limitazione delle azioni dei tecnici

View File

@ -1,10 +1,6 @@
<?php
if (file_exists(__DIR__.'/../../../core.php')) {
include_once __DIR__.'/../../../core.php';
} else {
include_once __DIR__.'/../../core.php';
}
include_once __DIR__.'/../../core.php';
use Modules\Anagrafiche\Anagrafica;
use Modules\Fatture\Fattura;