add payment_link and banks
This commit is contained in:
1 parent
2ae79b1ca4
commit
de3135b588
100 files changed
+6167
-47
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{% load jalali humanize %}
|
||||
{% if payment_can_create or customer_notices %}
|
||||
<details class="ticket-notices">
|
||||
<summary><span class="ticket-notices-title"><svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3h14v18l-3-2-4 2-4-2-3 2V3ZM9 8h6M9 12h6"/></svg>اعلامیه واریز</span><span class="ticket-notices-chevron" aria-hidden="true">⌄</span></summary>
|
||||
<div class="ticket-notices-content">
|
||||
{% include 'payments/_notice_shortcut.html' %}
|
||||
<p class="ticket-notices-caption">آخرین اعلامیههای این مشتری</p>
|
||||
<ul class="ticket-notices-list" aria-label="اعلامیههای اخیر مشتری">
|
||||
{% for notice in customer_notices %}
|
||||
<li><a class="ticket-notice-item" href="{% url 'staff_payments:notice_detail' notice.public_id %}">
|
||||
<strong>{{ notice.subject }}</strong>
|
||||
<span class="ticket-notice-meta"><bdi>{{ notice.number }}</bdi><time datetime="{{ notice.created_at|date:'c' }}">{{ notice.created_at|jalali_date }}</time></span>
|
||||
<span class="ticket-notice-meta"><span>{{ notice.amount|intcomma }} ریال</span><span class="ticket-notice-status {% if notice.cancelled_at %}is-cancelled{% elif notice.approved_total >= notice.amount %}is-settled{% endif %}">{% if notice.cancelled_at %}لغو شده{% elif notice.approved_total >= notice.amount %}تسویه شده{% elif notice.approved_total %}پرداخت جزئی{% else %}در انتظار واریز{% endif %}</span></span>
|
||||
</a></li>
|
||||
{% empty %}<li class="ticket-notices-empty">اعلامیه واریزی برای نمایش وجود ندارد.</li>{% endfor %}
|
||||
</ul>
|
||||
<a class="ticket-notices-more" href="{% url 'staff_payments:desk' %}?tab=notices&customer={{ customer.pk }}"><span>بیشتر</span><small>همه اعلامیههای این مشتری</small><span aria-hidden="true">←</span></a>
|
||||
</div>
|
||||
</details>
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user