diff --git a/views/communities/transaction_edit.php b/views/communities/transaction_edit.php index bff0ee5..b146d87 100644 --- a/views/communities/transaction_edit.php +++ b/views/communities/transaction_edit.php @@ -39,13 +39,15 @@ -

Payee

- getUserId(), $payeeUserIds) ? 'checked' : '' ?>> + - +

Description

Sum

diff --git a/views/communities/transactions.php b/views/communities/transactions.php index 23e40c5..8200542 100644 --- a/views/communities/transactions.php +++ b/views/communities/transactions.php @@ -30,7 +30,29 @@

getEvent()->getTitle() ?>

getDescription() ?>

-

getPayerUser()->getDisplayName() ?> getPayeeUser() ? $transaction->getPayeeUser()->getDisplayName() : '[common]' ?>

+

+ getPayerUser()->getDisplayName() ?> + + + getPayees()) > 0) { + $found = false; + foreach ($transaction->getPayees() as $payee) { + if ($member->getUserId() === $payee->getUserId()) { + $found = true; + } + } + } else { + $found = true; + } + ?> + + getUser()->getDisplayName() ?> + + getUser()->getDisplayName() ?> + + +

getTimeDate()->format('Y-m-d H:i') ?>