show also full paid people

This commit is contained in:
Dario Rekowski on RockPI 2020-01-13 08:27:25 +00:00
parent 293f00f304
commit 24e7b7e012
2 changed files with 3 additions and 3 deletions

View File

@ -228,14 +228,14 @@ class TransactionCreationsController extends AppController
$sumAmount += $transactionCreation->amount;
}
}
if($sumAmount < 10000000) {
//if($sumAmount < 10000000) {
array_push($possibleReceiver, [
'name' => $stateUser->first_name . '&nbsp;' . $stateUser->last_name,
'id' => $stateUser->id,
'email' => $stateUser->email,
'amount' => $sumAmount
]);
}
//}
}
//var_dump($possibleReceiver);
$creationForm = new CreationForm();

View File

@ -44,7 +44,7 @@ $this->assign('title', __('Schöpfungstransaktion'));
<?= $this->Form->control('amount'); ?>
<?php foreach($possibleReceiver as $possibleReceiver) :
$disable = '';
if($activeUser['id'] == $possibleReceiver['id']) {
if($activeUser['id'] == $possibleReceiver['id'] || $possibleReceiver['amount'] > 10000000) {
$disable = 'disabled';
}
?>