{{ bid.name }}

تاریخ : {{doc.date}} شماره : # {{doc.code | number_format}}
صورتحساب
{% for row in rows %} {% if row.commodity != null %} {% endif %} {% endfor %} {% if discount > 0 %} {% endif %}
کالا تعداد فی قبل تخفیف جمع
{{row.commodity.name}} {{row.commodityCount}} {% if row.commodityCount > 0 %} {% if row.showPercentDiscount %} {% set originalPrice = row.bs / (1 - (row.discountPercent / 100)) %} {% set unitPrice = originalPrice / row.commodityCount %} {% else %} {% set originalPrice = row.bs + row.discount %} {% set unitPrice = originalPrice / row.commodityCount %} {% endif %} {{ unitPrice|round|number_format }} {% else %} 0 {% endif %} {% if row.showPercentDiscount %} {% set originalPrice = row.bs / (1 - (row.discountPercent / 100)) %} {{ originalPrice|round|number_format }} {% else %} {{ (row.bs + row.discount)|number_format }} {% endif %} {{row.bs | number_format}}
جمع فاکتور {{doc.amount | number_format}}
تخفیف {% if showPercentDiscount %} {{ discountPercent }}% ({{ (doc.amount * discountPercent / 100)|round|number_format }}) {% else %} {{ discount | number_format }} {% endif %}
از خرید شما متشکریم