[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:
Nicolas Martinelli
2017-07-25 19:06:28 +02:00
parent 901d777591
commit cfc2a55c06
+6 -4
View File
@@ -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>