Configurable activity and project number (#4729)

* added configurable activity number
* added configurable project number
* fix deprecations
* added some tests for entity exporter
* better configuration of dropdown pattern for customer, project and activity
This commit is contained in:
Kevin Papst
2024-04-04 17:43:22 +02:00
committed by GitHub
parent c1f5d3def4
commit a636683dee
55 changed files with 920 additions and 136 deletions

View File

@@ -71,6 +71,14 @@
</td>
</tr>
{% endif %}
{% if activity.number is not empty %}
<tr>
<th>{{ 'activity_number'|trans }}</th>
<td colspan="3">
{{ activity.number }}
</td>
</tr>
{% endif %}
{% for metaField in activity.visibleMetaFields|filter(field => field.defined)|sort((a, b) => a.order <=> b.order) %}
<tr>
<th>{{ metaField.label|trans }}</th>

View File

@@ -24,6 +24,7 @@
{% if form.project is defined %}
{{ form_row(form.project) }}
{% endif %}
{{ form_row(form.number) }}
{% if form.budgetType is defined %}
<div class="row">
{% if form.budget is defined %}

View File

@@ -20,6 +20,8 @@
{% endif %}
{% elseif column == 'comment' %}
{{ entry.comment|comment1line }}
{% elseif column == 'number' %}
{{ entry.number }}
{% elseif column == 'budget' %}
{% if entry.hasBudget() and is_granted('budget', entry) %}
{{ entry.budget|money((entry.project is null ? defaultCurrency : entry.project.customer.currency)) }}