fix: properly check disposition status regarding invoice upload
This commit is contained in:
@@ -28,7 +28,9 @@ framework:
|
||||
- checking_contract
|
||||
to: new
|
||||
upload_invoice:
|
||||
from: confirmed
|
||||
from:
|
||||
- confirmed
|
||||
- completed
|
||||
to: checking_invoice
|
||||
confirm_invoice:
|
||||
from: checking_invoice
|
||||
|
||||
@@ -5,7 +5,11 @@
|
||||
{% block content %}
|
||||
{% set assignment = disposition.assignment %}
|
||||
<h1 class="text-2xl font-bold pb-8">
|
||||
Dein Einsatz wurde bestätigt!
|
||||
{% if workflow_has_marked_place(disposition, 'completed') %}
|
||||
Dein Einsatz ist abgeschlossen
|
||||
{% else %}
|
||||
Dein Einsatz wurde bestätigt!
|
||||
{% endif %}
|
||||
</h1>
|
||||
<div class="grid lg:grid-cols-2 gap-8 items-start">
|
||||
<div>
|
||||
@@ -72,7 +76,7 @@
|
||||
{% endif %}
|
||||
|
||||
{# Upload invoice #}
|
||||
{% if workflow_has_marked_place(disposition, 'confirmed') %}
|
||||
{% if workflow_has_marked_place(disposition, 'completed') %}
|
||||
<h2 class="text-lg font-bold pb-4">
|
||||
Honorarnote
|
||||
</h2>
|
||||
@@ -140,13 +144,6 @@
|
||||
</h3>
|
||||
{% endif %}
|
||||
|
||||
{# No invoice required #}
|
||||
{% if workflow_has_marked_place(disposition, 'completed') %}
|
||||
<h3 class="text-xl font-bold pb-4">
|
||||
Dein Einsatz ist abgeschlossen
|
||||
</h3>
|
||||
{% endif %}
|
||||
|
||||
<div class="pt-4">
|
||||
<a href="{{ returnUrl }}" class="underline">
|
||||
zurück
|
||||
|
||||
Reference in New Issue
Block a user