1
0

Corrected link between types and rekeningen

This commit is contained in:
Christiaan Goossens 2017-03-31 16:03:29 +02:00
parent 6a63c39da9
commit 8e0ee10171

View File

@ -31,13 +31,15 @@ class Rekeningen
$returnArray = array();
foreach ($rekeningen as $rekening) {
$type = $db->types->where('id', $rekening['typeid'])[$rekening['typeid']];
$returnArray[] = array(
"iban" => $ibanhelper->getIBAN($rekening['rekeningnr']),
"nr" => $rekening['rekeningnr'],
"saldo" => (double) $rekening['saldo'],
"typeid" => $rekening['typeid']
"naam" => $type['rekeningnaam'],
"rente" => $type['rente']
);
$returnArray = array_push($returnArray, $db->types->where($rekening['typeid'], 'typeid'));
}
return $returnArray;