Skip to content

Commit

Permalink
Add code for toestemming hoofdbewoner
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Mar 11, 2024
1 parent 6d1d670 commit 563fae3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Service/RelocationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getRelocationProperties(ObjectEntity $object, array $objectArray
$objectArray['newAddress']['addressFunction'] = 'LIVING_ADDRESS'; // @TODO cant make a difference yet between LIVING or MAILING ADDRESS
$objectArray['newAddress']['numberOfResidents'] = $caseProperties['AANTAL_PERS_NIEUW_ADRES'];
$objectArray['newAddress']['destinationCurrentResidents'] = 'Unknown';
$objectArray['newAddress']['liveIn'] = ['liveInApplicable' => false]; // @TODO for other than Maastricht this could be something else
$objectArray['newAddress']['liveIn'] = ['liveInApplicable' => false];
$objectArray['declarant'] = $objectArray['newAddress']['mainOccupant'] = [
'bsn' => $caseProperties['BSN'],
'contactInformation' => [
Expand All @@ -134,6 +134,13 @@ public function getRelocationProperties(ObjectEntity $object, array $objectArray
],
];

if(isset($caseProperties['BSN_HOOFDBEWONER']) === true) {
$objectArray['newAddress']['mainOccupant'] = [
'bsn' => $caseProperties['BSN_HOOFDBEWONER'],
];
$objectArray['newAddress']['liveIn'] = ['liveInApplicable' => true];
}

$relocators = $this->getRelocators($caseProperties);
$objectArray['relocators'] = $relocators;

Expand Down

0 comments on commit 563fae3

Please sign in to comment.