1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-18 10:15:05 +01:00

Correzione generazione stampe

This commit is contained in:
Thomas Zilio 2019-12-20 11:40:22 +01:00
parent 5efdb80fcf
commit 00cb2eb2da
5 changed files with 22 additions and 20 deletions

View File

@ -19,8 +19,8 @@ class Categoria extends Model
$model->save();
$gruppi = database()->fetchArray('SELECT `id` FROM `zz_groups`');
foreach($gruppi as $array) {
foreach($array as $k=>$v) {
foreach ($gruppi as $array) {
foreach ($array as $k => $v) {
$newArray[$k] = $v;
}
}

View File

@ -590,7 +590,7 @@ if (empty($domenica)) {
echo "
minTime: '".setting('Inizio orario lavorativo')."',
maxTime: '".((setting('Fine orario lavorativo') != '00:00:00' and !empty(setting('Fine orario lavorativo'))) ? setting('Fine orario lavorativo'):'23:59:59')."',
maxTime: '".((setting('Fine orario lavorativo') != '00:00:00' and !empty(setting('Fine orario lavorativo'))) ? setting('Fine orario lavorativo') : '23:59:59')."',
";
?>

View File

@ -125,6 +125,7 @@ class Prints
$dbo = $database = database();
$infos = self::get($print);
if (!$return_string) {
Permissions::addModule($infos['id_module']);
$has_access = true;
@ -143,6 +144,7 @@ class Prints
if (empty($infos) || empty($infos['enabled']) || !Permissions::check([], false) || !$has_access) {
return false;
}
}
// Individuazione della configurazione
if (!empty($directory) && !directory($directory)) {

View File

@ -2,8 +2,8 @@
namespace Update\v2_4_10;
use Common\Document;
use Common\Components\Row;
use Common\Document;
use Illuminate\Database\Eloquent\Builder;
use Modules\Articoli\Articolo as Original;
use UnexpectedValueException;

View File

@ -2,8 +2,8 @@
namespace Update\v2_4_10\Components;
use Update\v2_4_10\Article;
use Modules\Articoli\Articolo as Original;
use Update\v2_4_10\Article;
use Update\v2_4_10\Fattura;
class Articolo extends Article