| {{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}} |
{% endif %}
{% endfor %}