Corrected link between types and rekeningen
This commit is contained in:
parent
6a63c39da9
commit
8e0ee10171
@ -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;
|
||||
|
Reference in New Issue
Block a user