{% if printOptions.invoiceIndex %} {% endif %}

صورتحساب فروش کالا و خدمات

تاریخ: {{ doc.date }}


شماره: {{ doc.code }}

{% if printOptions.bidInfo %}
فروشنده

نام: {% if bid.legalName is not empty %}{{ bid.legalName }}{% endif %}

شناسه ملی: {% if bid.shenasemeli is not empty %}{{ bid.shenasemeli }}{% endif %}

شماره ثبت: {% if bid.shomaresabt is not empty %}{{ bid.shomaresabt }}{% endif %}

شماره اقتصادی: {% if bid.codeeghtesadi is not empty %}{{ bid.codeeghtesadi }}{% endif %}

تلفن / نمابر: {% if bid.tel is not empty %}{{ bid.tel }}{% endif %}

کد پستی: {% if bid.postalcode is not empty %}{{ bid.postalcode }}{% endif %}

آدرس: {% if bid.ostan is not empty %}استان {{ bid.ostan }}{% endif %}{% if bid.shahrestan is not empty %}، شهر {{ bid.shahrestan }}{% endif %}{% if bid.address is not empty %}، {{ bid.address }}{% endif %}

{% endif %}
خریدار

نام: {% if person.prelabel is not null %}{{ person.prelabel.label }}{% endif %} {% if person.nikename is not empty %}{{ person.nikename }}{% endif %}

شناسه ملی: {% if person.shenasemeli is not empty %}{{ person.shenasemeli }}{% endif %}

شماره ثبت: {% if person.sabt is not empty %}{{ person.sabt }}{% endif %}

شماره اقتصادی: {% if person.codeeghtesadi is not empty %}{{ person.codeeghtesadi }}{% endif %}

تلفن / نمابر: {% if person.tel is not empty %}{{ person.tel }}{% endif %}

کد پستی: {% if person.postalcode is not empty %}{{ person.postalcode }}{% endif %}

آدرس: {% if person.ostan is not empty %}استان {{ person.ostan }}{% endif %}{% if person.shahr is not empty %}، شهر {{ person.shahr }}{% endif %}{% if person.address is not empty %}، {{ person.address }}{% endif %}

{% if printOptions.discountInfo %} {% endif %} {% if printOptions.taxInfo %} {% endif %} {% set taxAll = 0 %} {% set rowIndex = 0 %} {% for item in rows%} {% if item.commodity %} {% set taxAll = taxAll + item.tax %} {% set rowIndex = rowIndex + 1 %} {% if printOptions.discountInfo %} {% endif %} {% if printOptions.taxInfo %} {% endif %} {% endif %} {% endfor %}
ردیف کالا/خدمات شرح تعداد / مقدار مبلغ واحدتخفیف قبل تخفیفمالیاتمبلغ کل
{{rowIndex}} {{ item.commodity.code }} - {{ item.commodity.name }} {{ item.des }} {{ item.commodityCount }} {{ item.commodity.unit.name }} {% if item.commodityCount > 0 %} {% if item.showPercentDiscount %} {% set discountDivisor = 1 - (item.discountPercent / 100) %} {% if discountDivisor <= 0 %} {% set originalPrice = item.bs %} {% else %} {% set originalPrice = item.bs / discountDivisor %} {% endif %} {% set unitPrice = originalPrice / item.commodityCount %} {% else %} {% set originalPrice = item.bs + item.discount %} {% set unitPrice = originalPrice / item.commodityCount %} {% endif %} {{ unitPrice|round|number_format }} {{ doc.money.shortName }} {% else %} 0 {{ doc.money.shortName }} {% endif %} {% if item.showPercentDiscount %} {{ item.discountPercent }}% ({{ (item.bs * item.commodityCount * item.discountPercent / 100)|round|number_format }} {{ doc.money.shortName }}) {% else %} {{ item.discount|number_format }} {{ doc.money.shortName }} {% endif %} {% if item.showPercentDiscount %} {% set discountDivisor = 1 - (item.discountPercent / 100) %} {% if discountDivisor <= 0 %} {% set originalPrice = item.bs %} {% else %} {% set originalPrice = item.bs / discountDivisor %} {% endif %} {{ originalPrice|round|number_format }} {{ doc.money.shortName }} {% else %} {{ (item.bs + item.discount)|number_format }} {{ doc.money.shortName }} {% endif %} {{ item.tax | number_format}} {{ doc.money.shortName }}{{ item.bs| number_format }} {{ doc.money.shortName }}

توضیحات: {{doc.des}}
{% if (doc.relatedDocs | length != 0) and (printOptions.pays == true) %}

پرداخت‌ها:

    {% for item in doc.relatedDocs%}
  • {{item.date}} - {{ item.amount | number_format }} - {{ item.des }}
  • {% endfor %}
{% endif %} {% if printOptions.note == true %}

یادداشت:

  • {{note | raw}}
{% endif %} {# فیلد جدید وضعیت حساب مشتری #} {% if accountStatus is defined %}

وضعیت حساب مشتری با احتساب این فاکتور: {{ accountStatus.value | number_format}} {{ doc.money.shortName }} {{ accountStatus.label }}

{% endif %}

تخفیف: {{discount | number_format}} {{ doc.money.shortName }}

مالیات: {{taxAll | number_format}} {{ doc.money.shortName }}

حمل و نقل: {{transfer | number_format}} {{ doc.money.shortName }}

{% if doc.amount != (doc.amount + discount) %}

جمع بدون تخفیف: {{ (doc.amount + discount) | number_format}} {{ doc.money.shortName }}

{% endif %}

جمع کل: {{ doc.amount | number_format }} {{ doc.money.shortName }}

مهر و امضا خریدار

مهر و امضا فروشنده:


{% if printOptions.businessStamp %} {% endif %}