From c711bcec2bd31da37af5bcea89819cd19ad81513 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 14 Dec 2018 14:52:30 +0100 Subject: [PATCH] Bugfix minori --- modules/fatture/actions.php | 2 +- plugins/exportFE/src/Connection.php | 4 ++-- update/2_4_5.sql | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php index 58693441c..fcf68746c 100644 --- a/modules/fatture/actions.php +++ b/modules/fatture/actions.php @@ -95,7 +95,7 @@ switch (post('op')) { 'rivalsainps' => 0, 'ritenutaacconto' => 0, 'iva_rivalsainps' => 0, - 'codice_stato_fe' => post('codice_stato_fe'), + 'codice_stato_fe' => post('codice_stato_fe') ?: null, ], $data), ['id' => $id_record]); $query = 'SELECT descrizione FROM co_statidocumento WHERE id='.prepare($idstatodocumento); diff --git a/plugins/exportFE/src/Connection.php b/plugins/exportFE/src/Connection.php index c8a90a6ff..fc584c2a4 100644 --- a/plugins/exportFE/src/Connection.php +++ b/plugins/exportFE/src/Connection.php @@ -35,7 +35,7 @@ class Connection return !empty(setting('OSMCloud Services API Token')); } - protected function request($type, $resource, $data = [], $options = []) + public static function request($type, $resource, $data = [], $options = []) { $client = static::getClient(); @@ -62,7 +62,7 @@ class Connection return $client->request($type, '', $options); } - protected function responseBody($response) + public static function responseBody($response) { $body = $response->getBody(); diff --git a/update/2_4_5.sql b/update/2_4_5.sql index 12b16e30e..252112dd0 100644 --- a/update/2_4_5.sql +++ b/update/2_4_5.sql @@ -1,4 +1,4 @@ INSERT INTO `zz_plugins` (`id`, `name`, `title`, `idmodule_from`, `idmodule_to`, `position`, `directory`, `options`) VALUES -(NULL, 'Ricevute FE', 'Ricevute FE', (SELECT `id` FROM `zz_modules` WHERE `name`='Fatture di vendita'), (SELECT `id` FROM `zz_modules` WHERE `name`='Fatture di vendita'), 'tab_main', 'receiptFE', 'custom'), +(NULL, 'Ricevute FE', 'Ricevute FE', (SELECT `id` FROM `zz_modules` WHERE `name`='Fatture di vendita'), (SELECT `id` FROM `zz_modules` WHERE `name`='Fatture di vendita'), 'tab_main', 'receiptFE', 'custom'); UPDATE `fe_stati_documento` SET `icon` = 'fa fa-check text-success' WHERE `codice` = 'ACK';