feat: enforce KS-2/KS-3 stornation integrity
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
<div class="alert alert-success" role="alert">
|
||||
КС-2 проведено. Документ не может быть изменён.
|
||||
</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 }}/ks2/{{ document.id }}/cancel" class="d-inline">
|
||||
<button type="submit" class="btn btn-outline-danger"
|
||||
@@ -54,6 +59,7 @@
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<h4>Позиции</h4>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user