feat: enforce KS-2/KS-3 stornation integrity
This commit is contained in:
@@ -89,12 +89,18 @@
|
||||
<div class="alert alert-success" role="alert">
|
||||
КС-3 проведено. Документ не может быть изменён.
|
||||
</div>
|
||||
{% if cancel_blocked_reason %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Сторнирование недоступно: {{ cancel_blocked_reason }}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="mb-3">
|
||||
<form method="post" action="/projects/{{ project.id }}/ks3/{{ document.id }}/cancel" class="d-inline">
|
||||
<button type="submit" class="btn btn-outline-danger"
|
||||
onclick="return confirm('ВНИМАНИЕ: Сторнировать КС-3? Документ будет исключён из финансовых агрегатов. Действие необратимо.')">Сторнировать</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="/projects/{{ project.id }}/ks3" class="btn btn-secondary">Назад к списку</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user