{% extends "pdf/base_pdf.html" %} {% load i18n %} {% block title %}{% trans "Quotation" %} #{{ quotation.quotation_number|default:quotation.id }}{% endblock %} {% block content %}
{% if settings.logo %} Logo {% else %}

{{ settings.business_name }}

{% endif %}
{{ settings.address }}
{{ settings.phone }}
{{ settings.email }}
{% if settings.vat_number %}
{% trans "VAT" %}: {{ settings.vat_number }}
{% endif %}

{% trans "Quotation" %} / عرض سعر

{% trans "Quotation #" %} / رقم العرض: {{ quotation.quotation_number|default:quotation.id }}
{% trans "Date" %} / التاريخ: {{ quotation.created_at|date:"Y-m-d" }}
{% trans "Valid Until" %} / سارٍ حتى: {{ quotation.valid_until|date:"Y-m-d"|default:"-" }}
{% trans "Bill To" %} / العميل
{{ quotation.customer.name|default:"Guest" }}
{% if quotation.customer.phone %}
{{ quotation.customer.phone }}
{% endif %} {% if quotation.customer.address %}
{{ quotation.customer.address }}
{% endif %}
{% if quotation.status == 'converted' %}{% trans "Converted" %} / محول لفاتورة {% elif quotation.status == 'accepted' %}{% trans "Accepted" %} / مقبول {% elif quotation.status == 'rejected' %}{% trans "Rejected" %} / مرفوض {% else %}{% trans "Open" %} / مفتوح {% endif %}
{% for item in quotation.items.all %} {% endfor %} {% if quotation.discount > 0 %} {% endif %}
{% trans "Item" %} / الصنف {% trans "Price" %} / السعر {% trans "Qty" %} / الكمية {% trans "Total" %} / المجموع
{{ item.product.name_ar }}
{{ item.product.name_en }}
{{ item.unit_price|floatformat:3 }} {{ item.quantity|floatformat:2 }} {{ item.line_total|floatformat:3 }}
{% trans "Subtotal" %} / المجموع الفرعي {{ quotation.total_amount|add:quotation.discount|floatformat:3 }}
{% trans "Discount" %} / الخصم -{{ quotation.discount|floatformat:3 }}
{% trans "Total" %} / الإجمالي {{ quotation.total_amount|floatformat:3 }} {{ settings.currency_symbol }}
{% if amount_in_words %}
{% trans "Amount in Words" %} / المبلغ بالحروف: {{ amount_in_words }}
{% endif %} {% if quotation.terms_and_conditions %}
{% trans "Terms & Conditions" %} / الشروط والأحكام
{{ quotation.terms_and_conditions }}
{% endif %}
{% trans "Generated by" %} {{ settings.business_name }}
{% endblock %}