diff --git a/app/Http/Controllers/Transaction/ShowController.php b/app/Http/Controllers/Transaction/ShowController.php index a8ef038532..246ac0c8ba 100644 --- a/app/Http/Controllers/Transaction/ShowController.php +++ b/app/Http/Controllers/Transaction/ShowController.php @@ -70,7 +70,7 @@ class ShowController extends Controller /** @var TransactionJournal $first */ $first = $transactionGroup->transactionJournals->first(); $splits = $transactionGroup->transactionJournals->count(); - $type = (string)trans(sprintf('firefly.%s', strtolower($first->transactionType->type))); + $type = $first->transactionType->type; $title = 1 === $splits ? $first->description : $transactionGroup->title; $subTitle = sprintf('%s: "%s"', $type, $title); $message = $request->get('message'); diff --git a/resources/views/v1/transactions/show.twig b/resources/views/v1/transactions/show.twig index bd3e40fff7..cd579124df 100644 --- a/resources/views/v1/transactions/show.twig +++ b/resources/views/v1/transactions/show.twig @@ -201,6 +201,7 @@
|
+
{{ journal.source_name }} →
{% if type == 'Withdrawal' or type == 'Deposit' %}
@@ -429,177 +430,3 @@
{% endblock %}
-{#
-
- {% if links.count > 0 %}
-
-
-
-
- {{ 'journal_links'|_ }}-
-
-
- - - {% endif %} - - -
-
-
-
-
-
-
-
-
- {{ 'transactions'|_ }}-
-
-
-
-
-#}
| |||||||||