[FIX] point_of_sale: subtotal non ESC/POS receipt shouldn't include tax

On the PosTicket receipt (non-ESC/POS receipt) we have a line titled
subtotal. The subtotal was calculated with getSubtotal(). The issue is
that getSubtotal() ends up just using the price of the product. This
doesn't make sense when taxes are included in the price, because then
the subtotal will contain taxes.

It's not an issue on the ESC/POS receipt, because there we don't show
the subtotal at all if we only have included taxes.

fixes #10137
opw-660266
This commit is contained in:
Joren Van Onder 2015-12-21 16:12:34 +01:00
parent 11cd22711c
commit dfb0e4b8f1
1 changed files with 1 additions and 1 deletions

View File

@ -973,7 +973,7 @@
<tr>
<td>Subtotal:</td>
<td class="pos-right-align">
<t t-esc="widget.format_currency(order.getSubtotal())"/>
<t t-esc="widget.format_currency(order.getTotalTaxExcluded())"/>
</td>
</tr>
<t t-foreach="order.getTaxDetails()" t-as="taxdetail">