2022-09-01 12:52:33 +02:00
|
|
|
<?php
|
|
|
|
|
2022-09-05 15:33:40 +02:00
|
|
|
// File e cartelle deprecate
|
|
|
|
$files = [
|
|
|
|
'modules/scadenzario/controller_after.php',
|
|
|
|
];
|
|
|
|
|
|
|
|
foreach ($files as $key => $value) {
|
|
|
|
$files[$key] = realpath(base_dir().'/'.$value);
|
|
|
|
}
|
|
|
|
|
|
|
|
delete($files);
|
|
|
|
|
2022-09-01 12:52:33 +02:00
|
|
|
$scadenze = $dbo->fetchArray('SELECT * FROM co_scadenziario');
|
|
|
|
|
|
|
|
foreach ($scadenze as $scadenza) {
|
|
|
|
$idanagrafica = $dbo->selectOne('co_documenti', 'idanagrafica', ['id' => $scadenza['iddocumento']])['idanagrafica'];
|
|
|
|
$dbo->update('co_scadenziario', [
|
|
|
|
'idanagrafica' => $idanagrafica ?: setting('Azienda predefinita'),
|
|
|
|
], ['id' => $scadenza['id']]);
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|