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