Hi Everyone
Quick question about decimal point for quantity, on the screen it shows properly like “3 Boxes”, but when i print it or save it as PDF shows as “3.0 Boxes”
Any suggestions
Used below code
{%- for row in doc.items -%} <td style="width: 3%;">{{ row.idx }}</td>
<td style="width: 20%;">
{{ row.item_name }}
{% if row.item_code != row.item_name -%}
<br>Item Code: {{ row.item_code}}
{%- endif %}
</td>
<td style="width: 37%;">
<div style="border: 0px;">{{ row.description }}</div></td>
<td style="width: 10%; text-align: right;">{{ row.qty }} </td>
<td style="width: 15%; text-align: right;">{{
row.rate}}</td>
<td style="width: 15%; text-align: right;">{{
row.amount}}</td>
</tr>
{%- endfor -%}
ID | Material | Description | Quantity (PCS) | Rate(AED) | Amount(AED) |
---|