Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Dec 17, 2024
1 parent 550107a commit bf2ec4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/Admin/templates/Fundings/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
['name' => 'fundingsupporter.name', 'label' => 'Träger', 'sortable' => false],
['label' => 'Summe', 'template' => 'list/fundings/budgetplan', 'sortable' => false],
['label' => 'eingereicht', 'template' => 'list/fundings/submitInfo'],
['label' => 'überwiesen', 'template' => 'list/fundings/moneyTransferInfo'],
['label' => 'ZB', 'template' => 'list/fundings/zuwendungsbestaetigung'],
['label' => 'überwiesen', 'template' => 'list/fundings/moneyTransferInfo'],
['name' => 'created', 'type' => 'datetime', 'label' => 'erstellt'],
['name' => 'modified', 'type' => 'datetime', 'label' => 'geändert'],
],
Expand Down
8 changes: 5 additions & 3 deletions templates/element/funding/moneyTransferInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

use Cake\Core\Configure;

if ($funding->money_transfer_date === null) {
return;
}

echo '<div class="verification-wrapper is-verified">';
if ($funding->money_transfer_date !== null) {
echo 'Am ' . $funding->money_transfer_date->i18nFormat(Configure::read('DateFormat.de.DateShort')) . ' wurden ' . $this->MyNumber->formatAsDecimal($funding->budgetplan_total_with_limit) . ' € überwiesen.';
}
echo 'Am ' . $funding->money_transfer_date->i18nFormat(Configure::read('DateFormat.de.DateShort')) . ' wurden ' . $this->MyNumber->formatAsDecimal($funding->budgetplan_total_with_limit) . ' € überwiesen.';
echo '</div>';

0 comments on commit bf2ec4b

Please sign in to comment.