1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00
openstamanager/update/2_4_22.php

16 lines
501 B
PHP
Raw Normal View History

<?php
2021-02-23 11:40:27 +01:00
// Ricalcolo ordine riga per ciascun documento
$campi['co_righe_preventivi'] = 'idpreventivo';
$campi['co_righe_documenti'] = 'iddocumento';
$campi['co_righe_contratti'] = 'idcontratto';
$campi['or_righe_ordini'] = 'idordine';
$campi['dt_righe_ddt'] = 'idddt';
2021-02-23 11:40:27 +01:00
foreach ($campi as $tabella => $campo) {
$documenti = $dbo->fetchArray('SELECT '.$campo.' FROM '.$tabella.' GROUP BY '.$campo);
2021-02-23 11:40:27 +01:00
foreach ($documenti as $documento) {
reorderRows($tabella, $campo, $documento);
}
2021-02-23 11:40:27 +01:00
}