{% extends 'base.html' %} {% block content %}

{{ 'Ödeme' if payment.direction=='PAYMENT' else 'Tahsilat' }} #{{ payment.id }}

{{ payment.institution.name }} · {{ payment.transaction_date|date_tr }}
{% if current_user.has_permission('payments.cancel') and not payment.is_cancelled %}
{% endif %}
{% if payment.is_cancelled %}
Bu işlem iptal edilmiştir ve bakiye/dağıtımlara dahil edilmez.
{% endif %}
İşlem Tutarı
{{ payment.amount|money }} {{ payment.currency }}
Dağıtılan
{{ payment_allocated(payment)|money }} {{ payment.currency }}
Dağıtılmamış
{{ payment_unallocated(payment)|money }} {{ payment.currency }}
Tür
{{ {'CASH_ACCOUNT':'Nakit/Hesap','CHECK':'Çek','NOTE':'Senet'}.get(payment.method) }}
Kasa/Hesap
{{ payment.account.name if payment.account else '-' }}
Belge No
{{ payment.document_number or '-' }}
Vade / Durum
{{ payment.due_date|date_tr }} · {{ payment.instrument_status }}
{% if payment.description %}
Açıklama
{{ payment.description }}
{% endif %}
{% if current_user.has_permission('payments.manage') and payment.method in ['CHECK','NOTE'] and not payment.is_cancelled %}
{% endif %}

Mevcut Dağıtımlar

{% for item in payment.allocations %}{% else %}{% endfor %}
FaturaTarihDağıtılan
{{ item.invoice.invoice_number }}{{ item.invoice.invoice_date|date_tr }}{{ item.amount|money }} {{ payment.currency }}
Henüz bir faturaya dağıtılmadı.
{% if current_user.has_permission('payments.manage') and not payment.is_cancelled and payment_unallocated(payment) > 0 %}

Açık Faturalara Dağıt

Bir veya daha fazla faturaya tutar girin. Toplam dağıtım {{ payment_unallocated(payment)|money }} {{ payment.currency }} tutarını aşamaz.

{% for item in open_invoices %} {% else %}{% endfor %}
FaturaTarih / VadeAçık TutarDağıtılacak
{{ item.invoice_number }}{{ item.invoice_date|date_tr }} / {{ item.due_date|date_tr }}{{ invoice_open_amount(item)|money }} {{ item.currency }}
Bu yön ve para biriminde açık fatura yok.
{% if open_invoices %}{% endif %}
{% endif %} {% endblock %}