This commit is contained in:
MatteoPistorello 2022-09-05 16:59:36 +02:00
commit 1c94f22ecb
2 changed files with 12 additions and 1 deletions

View File

@ -27,7 +27,7 @@ switch ($resource) {
case 'ordini-cliente': case 'ordini-cliente':
if (isset($superselect['idanagrafica'])) { if (isset($superselect['idanagrafica'])) {
$query = 'SELECT or_ordini.id AS id, $query = 'SELECT or_ordini.id AS id,
CONCAT("Ordine ", numero, " del ", DATE_FORMAT(data, "%d/%m/%Y"), " [", (SELECT `descrizione` FROM `or_statiordine` WHERE `or_statiordine`.`id` = `idstatoordine`) , "]") AS descrizione CONCAT("Ordine ", numero_esterno, " del ", DATE_FORMAT(data, "%d/%m/%Y"), " [", (SELECT `descrizione` FROM `or_statiordine` WHERE `or_statiordine`.`id` = `idstatoordine`) , "]") AS descrizione
FROM or_ordini FROM or_ordini
INNER JOIN or_tipiordine ON or_ordini.idtipoordine = or_tipiordine.id INNER JOIN or_tipiordine ON or_ordini.idtipoordine = or_tipiordine.id
INNER JOIN an_anagrafiche ON or_ordini.idanagrafica = an_anagrafiche.idanagrafica INNER JOIN an_anagrafiche ON or_ordini.idanagrafica = an_anagrafiche.idanagrafica

View File

@ -1,5 +1,16 @@
<?php <?php
// File e cartelle deprecate
$files = [
'modules/scadenzario/controller_after.php',
];
foreach ($files as $key => $value) {
$files[$key] = realpath(base_dir().'/'.$value);
}
delete($files);
$scadenze = $dbo->fetchArray('SELECT * FROM co_scadenziario'); $scadenze = $dbo->fetchArray('SELECT * FROM co_scadenziario');
foreach ($scadenze as $scadenza) { foreach ($scadenze as $scadenza) {