Supporto url API remota OSMCloud

This commit is contained in:
Thomas Zilio 2019-04-18 18:22:49 -07:00
parent 7e99578ae0
commit 038c406716
2 changed files with 7 additions and 1 deletions

View File

@ -50,8 +50,10 @@ class Connection
protected static function getClient()
{
if (!isset(self::$client)) {
$url = setting('OSMCloud Services API URL');
self::$client = new Client([
'base_uri' => 'https://services.osmcloud.it/api/',
'base_uri' => $url,
'verify' => false,
]);
}

View File

@ -237,3 +237,7 @@ UPDATE `fe_stati_documento` SET `icon`='fa fa-file-code-o text-info' WHERE `codi
-- Impostazioni per i riferimenti ai documenti
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`) VALUES (NULL, 'Riferimento dei documenti nelle stampe', '1', 'boolean', 1, 'Generali', 13);
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`) VALUES (NULL, 'Riferimento dei documenti in Fattura Elettronica', '1', 'boolean', 1, 'Generali', 14);
-- Supporto alla personalizzazione dell'API remota OSMCloud
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`) VALUES
(NULL, 'OSMCloud Services API URL', 'https://services.osmcloud.it/api/', 'string', 0, 'Fatturazione Elettronica', 11);