[FIX] point_of_sale: discount != 0
Display "Discount:" only if strictly larger than zero. Most of the time, it just shows 'Discount: 0.00' opw-757101
This commit is contained in:
@@ -1458,10 +1458,12 @@
|
||||
</tr>
|
||||
</t>
|
||||
<tr>
|
||||
<td>Discount:</td>
|
||||
<td class="pos-right-align">
|
||||
<t t-esc="widget.format_currency(order.get_total_discount())"/>
|
||||
</td>
|
||||
<t t-if="order.get_total_discount() > 0">
|
||||
<td>Discount:</td>
|
||||
<td class="pos-right-align">
|
||||
<t t-esc="widget.format_currency(order.get_total_discount())"/>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
<tr class="emph">
|
||||
<td>Total:</td>
|
||||
|
||||
Reference in New Issue
Block a user