fix auto complete final invoice
This commit is contained in:
parent
23f50aacd4
commit
6367d34f0c
7 changed files with 160 additions and 39 deletions
|
|
@ -60,7 +60,7 @@
|
|||
<div class="bs-stepper-content">
|
||||
|
||||
<div class="row g-3">
|
||||
{% if is_broker and invoice.get_remaining_amount != 0 %}
|
||||
{% if is_broker and needs_approval %}
|
||||
<div class="col-12 col-lg-5">
|
||||
<div class="card border h-100">
|
||||
<div class="card-header"><h5 class="mb-0">ثبت تراکنش تسویه</h5></div>
|
||||
|
|
@ -193,7 +193,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if approver_statuses and invoice.get_remaining_amount != 0 and step_instance.status != 'completed' %}
|
||||
{% if approver_statuses and needs_approval and step_instance.status != 'completed' %}
|
||||
<div class="card border mt-2">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<h6 class="mb-0">وضعیت تاییدها</h6>
|
||||
|
|
@ -318,7 +318,11 @@
|
|||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{% if invoice.get_remaining_amount != 0 %}
|
||||
{% if not needs_approval %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
فاکتور کاملاً تسویه شده است و نیازی به تایید ندارد.
|
||||
</div>
|
||||
{% elif invoice.get_remaining_amount != 0 %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
مانده فاکتور: <strong>{{ invoice.get_remaining_amount|floatformat:0|intcomma:False }} ریال</strong><br>
|
||||
امکان تایید تا تسویه کامل فاکتور وجود ندارد.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue