Compare commits

...

3 Commits

Author SHA1 Message Date
valentina c78abaebd5 Fix eliminazione articolo collegato a listino 2024-07-25 16:49:44 +02:00
Beppe c613caf49d Merge branch 'master' of https://github.com/devcode-it/openstamanager 2024-07-25 16:02:30 +02:00
Beppe 8c33757941 Fix refuso 2024-07-25 16:02:28 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -160,6 +160,7 @@ switch (post('op')) {
if (!empty($elementi)) { if (!empty($elementi)) {
$dbo->query('UPDATE `mg_articoli` SET `deleted_at` = NOW() WHERE `id` = '.prepare($id).Modules::getAdditionalsQuery($id_module)); $dbo->query('UPDATE `mg_articoli` SET `deleted_at` = NOW() WHERE `id` = '.prepare($id).Modules::getAdditionalsQuery($id_module));
} else { } else {
$dbo->query('DELETE FROM `mg_prezzi_articoli` WHERE `id_articolo` = '.prepare($id));
$dbo->query('DELETE FROM `mg_articoli` WHERE `id` = '.prepare($id).Modules::getAdditionalsQuery($id_module)); $dbo->query('DELETE FROM `mg_articoli` WHERE `id` = '.prepare($id).Modules::getAdditionalsQuery($id_module));
} }
} }

View File

@ -41,7 +41,7 @@ class Interventi extends Resource implements RetrieveInterface, CreateInterface,
'in_interventi.*', 'in_interventi.*',
'MAX(in_interventi_tecnici.orario_fine) as data', 'MAX(in_interventi_tecnici.orario_fine) as data',
'GROUP_CONCAT(DISTINCT b.ragione_sociale SEPARATOR \', \') AS tecnici', 'GROUP_CONCAT(DISTINCT b.ragione_sociale SEPARATOR \', \') AS tecnici',
'in_statiintervento_lang.name AS stato', 'in_statiintervento_lang.title AS stato',
]; ];
$joins[] = [ $joins[] = [