mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #656 from gradido/community_oldBackend_newDecayFormat
move back decay as standalone transaction in old frontend
This commit is contained in:
commit
32f55b1463
@ -111,7 +111,15 @@ class StateBalancesController extends AppController
|
|||||||
$decay = true;
|
$decay = true;
|
||||||
$transactions = [];
|
$transactions = [];
|
||||||
if($stateUserTransactionsQuery->count() > 0) {
|
if($stateUserTransactionsQuery->count() > 0) {
|
||||||
$transactions = $transactionsTable->listTransactionsHumanReadable($stateUserTransactionsQuery->toArray(), $user, $decay);
|
$transactions_with_decay = $transactionsTable->listTransactionsHumanReadable($stateUserTransactionsQuery->toArray(), $user, $decay);
|
||||||
|
foreach($transactions_with_decay as $tr) {
|
||||||
|
$transactions[] = $tr;
|
||||||
|
if(isset($tr['decay'])) {
|
||||||
|
$tr['decay']['type'] = 'decay';
|
||||||
|
$tr['decay']['memo'] = '';
|
||||||
|
$transactions[] = $tr['decay'];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$state_balance = $stateBalancesTable->find()->where(['state_user_id' => $user['id']])->first();
|
$state_balance = $stateBalancesTable->find()->where(['state_user_id' => $user['id']])->first();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user