diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php index 7a864da5c..f53559601 100755 --- a/modules/fatture/actions.php +++ b/modules/fatture/actions.php @@ -242,7 +242,7 @@ switch ($op) { ->where('id', '!=', $id_record) ->where('data', '>=', $_SESSION['period_start']) ->where('data', '<=', $_SESSION['period_end']) - ->where('numero_esterno', '!=', null) + ->where('numero_esterno', '!=', '') ->whereHas('tipo', function ($query) use ($direzione) { $query->where('dir', '=', $direzione); })->count(); diff --git a/update/2_4_49.sql b/update/2_4_49.sql index f830467cf..f1985b013 100644 --- a/update/2_4_49.sql +++ b/update/2_4_49.sql @@ -67,4 +67,7 @@ INSERT INTO `zz_widgets` (`id`, `name`, `type`, `id_module`, `location`, `class` INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `html_format`, `search_inside`, `order_by`, `visible`, `summable`, `default`) VALUES ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli'), '_bg_', 'IF(threshold_qta!=0, IF(mg_articoli.qta>threshold_qta, \'#CCFFCC\', \'#FFCCEB\'), \'\')', '14', '0', '0', '0', '0', '', '', '0', '0', '0'); -- Aggiunto titolo righe preventivi -ALTER TABLE `co_righe_preventivi` ADD `is_titolo` BOOLEAN NOT NULL AFTER `confermato`; \ No newline at end of file +ALTER TABLE `co_righe_preventivi` ADD `is_titolo` BOOLEAN NOT NULL AFTER `confermato`; + +ALTER TABLE `co_documenti` CHANGE `numero_esterno` `numero_esterno` VARCHAR(100) NOT NULL; +