scripts in de database

This commit is contained in:
2026-08-28 12:17:50 +02:00
parent 51187f8537
commit 2f92328461
179 changed files with 7344 additions and 0 deletions
@@ -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');