[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:
parent
11cd22711c
commit
dfb0e4b8f1
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue