mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 12:27:05 +00:00
Fix #3187
This commit is contained in:
@@ -111,6 +111,7 @@
|
||||
|
||||
<h4>{{ 'optional_tj_business_fields'|_ }}</h4>
|
||||
{{ ExpandedForm.checkbox('tj[internal_reference]','1', tjOptionalFields.internal_reference,{ 'label' : 'pref_optional_tj_internal_reference'|_ }) }}
|
||||
{{ ExpandedForm.checkbox('tj[external_uri]','1', tjOptionalFields.external_uri,{ 'label' : 'pref_optional_tj_external_uri'|_ }) }}
|
||||
{{ ExpandedForm.checkbox('tj[notes]','1', tjOptionalFields.notes,{ 'label' : 'pref_optional_tj_notes'|_ }) }}
|
||||
|
||||
<h4>{{ 'optional_tj_attachment_fields'|_ }}</h4>
|
||||
|
@@ -248,11 +248,25 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for metaField in ['external_id','bunq_payment_id','internal_reference','sepa_batch_id','sepa_ct_id','sepa_ct_op','sepa_db','sepa_country','sepa_cc','sepa_ep','sepa_ci'] %}
|
||||
{% for metaField in ['external_id','bunq_payment_id','internal_reference','sepa_batch_id','sepa_ct_id','sepa_ct_op','sepa_db','sepa_country','sepa_cc','sepa_ep','sepa_ci','external_uri'] %}
|
||||
{% if journalHasMeta(journal.transaction_journal_id, metaField) %}
|
||||
<tr>
|
||||
<td>{{ trans('list.'~metaField) }}</td>
|
||||
<td>{{ journalGetMetaField(journal.transaction_journal_id, metaField) }}</td>
|
||||
<td>
|
||||
{% if 'external_uri' == metaField %}
|
||||
{% set uri = journalGetMetaField(journal.transaction_journal_id, metaField) %}
|
||||
<a href="{{ uri }}" rel="noopener noreferrer nofollow" target="_blank">
|
||||
{% if uri|length > 60 %}
|
||||
{{ uri|slice(0, 60) ~ '...' }}
|
||||
{% else %}
|
||||
{{ uri }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if 'external_uri' != metaField %}
|
||||
{{ journalGetMetaField(journal.transaction_journal_id, metaField) }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -373,7 +387,7 @@
|
||||
{% block scripts %}
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
var modalDialogURI = '{{ route('transactions.link.modal', ['%JOURNAL%']) }}';
|
||||
var acURI = '{{ route('json.autocomplete.all-journals-with-id') }}';
|
||||
var acURI = '{{ route('api.v1.autocomplete.transactions-with-id') }}';
|
||||
var groupURI = '{{ route('transactions.show',['%GROUP%']) }}';
|
||||
var newCloneInstructions = '{{ 'new_clone_instructions'|_|escape('js') }}';
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user