scripts in de database
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// last execution: Tue Jul 14 2020 09:06:56 GMT+0200 (Midden-Europese zomertijd)
|
||||
|
||||
global\set('nascholingstotalen-niet-herberekenen', true);
|
||||
|
||||
logAdd(log);
|
||||
$rows = record\fetchManyHash('Nascholingstotaal', 'id, jaar, dagenMedisch', 'name', 'asc', 'jaar<=', '2018');
|
||||
logAdd(log, 'Aantal rijen:', array\length($rows));
|
||||
|
||||
$i = 0;
|
||||
$n = array\length($rows);
|
||||
|
||||
while($i < $n,
|
||||
$row = array\at($rows, $i);
|
||||
$id = hash\get($row, 'id');
|
||||
$jaar = hash\get($row, 'jaar');
|
||||
record\update('Nascholingstotaal', $id, 'dagenMedisch', 0);
|
||||
logAdd(log, 'Updating: ', $i, ' - ', $jaar);
|
||||
$i = $i + 1;
|
||||
);
|
||||
|
||||
global\unset('nascholingstotalen-niet-herberekenen');
|
||||
Reference in New Issue
Block a user