mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
show also full paid people
This commit is contained in:
parent
293f00f304
commit
24e7b7e012
@ -228,14 +228,14 @@ class TransactionCreationsController extends AppController
|
||||
$sumAmount += $transactionCreation->amount;
|
||||
}
|
||||
}
|
||||
if($sumAmount < 10000000) {
|
||||
//if($sumAmount < 10000000) {
|
||||
array_push($possibleReceiver, [
|
||||
'name' => $stateUser->first_name . ' ' . $stateUser->last_name,
|
||||
'id' => $stateUser->id,
|
||||
'email' => $stateUser->email,
|
||||
'amount' => $sumAmount
|
||||
]);
|
||||
}
|
||||
//}
|
||||
}
|
||||
//var_dump($possibleReceiver);
|
||||
$creationForm = new CreationForm();
|
||||
|
||||
@ -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';
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user