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;
|
$sumAmount += $transactionCreation->amount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($sumAmount < 10000000) {
|
//if($sumAmount < 10000000) {
|
||||||
array_push($possibleReceiver, [
|
array_push($possibleReceiver, [
|
||||||
'name' => $stateUser->first_name . ' ' . $stateUser->last_name,
|
'name' => $stateUser->first_name . ' ' . $stateUser->last_name,
|
||||||
'id' => $stateUser->id,
|
'id' => $stateUser->id,
|
||||||
'email' => $stateUser->email,
|
'email' => $stateUser->email,
|
||||||
'amount' => $sumAmount
|
'amount' => $sumAmount
|
||||||
]);
|
]);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
//var_dump($possibleReceiver);
|
//var_dump($possibleReceiver);
|
||||||
$creationForm = new CreationForm();
|
$creationForm = new CreationForm();
|
||||||
|
|||||||
@ -44,7 +44,7 @@ $this->assign('title', __('Schöpfungstransaktion'));
|
|||||||
<?= $this->Form->control('amount'); ?>
|
<?= $this->Form->control('amount'); ?>
|
||||||
<?php foreach($possibleReceiver as $possibleReceiver) :
|
<?php foreach($possibleReceiver as $possibleReceiver) :
|
||||||
$disable = '';
|
$disable = '';
|
||||||
if($activeUser['id'] == $possibleReceiver['id']) {
|
if($activeUser['id'] == $possibleReceiver['id'] || $possibleReceiver['amount'] > 10000000) {
|
||||||
$disable = 'disabled';
|
$disable = 'disabled';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user