diff --git a/plugins/exportFE/src/InvoiceHook.php b/plugins/exportFE/src/InvoiceHook.php index 0486a4ff3..c2b8e647d 100644 --- a/plugins/exportFE/src/InvoiceHook.php +++ b/plugins/exportFE/src/InvoiceHook.php @@ -28,7 +28,7 @@ class InvoiceHook extends Manager public function execute() { $fattura = Fattura::where('hook_send', 1) - ->where('codice_stato_fe', 'ERR') + ->where('codice_stato_fe', 'QUEUE') ->first(); $result = Interaction::sendInvoice($fattura->id); diff --git a/update/2_4_10.sql b/update/2_4_10.sql index 666ad3798..17925bec1 100644 --- a/update/2_4_10.sql +++ b/update/2_4_10.sql @@ -25,7 +25,7 @@ UPDATE `zz_hooks` SET `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` ALTER TABLE `zz_hooks` ADD FOREIGN KEY (`id_module`) REFERENCES `zz_modules`(`id`) ON DELETE CASCADE; INSERT INTO `zz_hooks` (`id`, `name`, `class`, `frequency`, `id_module`) VALUES -(NULL, 'Ricevute', 'Modules\\Aggiornamenti\\UpdateHook', '7 day', (SELECT `id` FROM `zz_modules` WHERE `name` = 'Aggiornamenti')); +(NULL, 'Aggiornamenti', 'Modules\\Aggiornamenti\\UpdateHook', '7 day', (SELECT `id` FROM `zz_modules` WHERE `name` = 'Aggiornamenti')); -- -- Aggiunta nuovi campi per tracciamento sedi diff --git a/update/2_4_13.sql b/update/2_4_13.sql index 1356b9a48..e9e4bda0c 100755 --- a/update/2_4_13.sql +++ b/update/2_4_13.sql @@ -166,3 +166,5 @@ INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione` ALTER TABLE `zz_settings` CHANGE `help` `help` TEXT; UPDATE `zz_settings` SET `help` = '

Impostare la maschera senza indicare l''anno per evitare il reset del contatore.

' WHERE `zz_settings`.`nome` = 'Formato codice preventivi'; + +UPDATE `zz_hooks` SET `name` = 'Aggiornamenti' WHERE `class` = 'Modules\Aggiornamenti\UpdateHook'; \ No newline at end of file