1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-26 15:54:17 +01:00

Bugfix minori

This commit is contained in:
Luca 2018-12-14 14:52:30 +01:00
parent 5c8081878c
commit c711bcec2b
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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';