[FIX] l10n_fr_pos_cert: show old price with taxes

Current behavior:
If you apply a discount on a product, the PoS ui will show the old price
without taxes.

Steps to reproduce:
- Install PoS and l10n_fr_pos_cert
- Create a product with a price of 100€ and a tax of 20%
- Create a pricelist with another price for the product (e.g. 80€)
- Open a PoS session
- Add the product to the order
- Apply the pricelist
- It show the old price as 100€ instead of 120€ (100€ + 20% tax)

opw-3211796

closes odoo/odoo#116836

X-original-commit: e5549d7a9962d92b1abc79d416c3c47303e06134
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
roen-odoo
2023-03-28 18:45:53 +02:00
parent 2cf46f6265
commit fa19780371
3 changed files with 5 additions and 4 deletions
@@ -16,7 +16,7 @@
Old unit price:
<span class="oldPrice">
<s>
<t t-out="env.pos.format_currency(line.fixed_lst_price, 'Product Price')" /> / Units
<t t-out="env.pos.format_currency(line.taxed_lst_unit_price, 'Product Price')" /> / Units
</s>
</span>
</div>
@@ -8,7 +8,7 @@
Old unit price:
<span class="oldPrice">
<s>
<t t-out="env.pos.format_currency(props.line.get_fixed_lst_price(),'Product Price')" /> / Units
<t t-out="env.pos.format_currency(props.line.get_taxed_lst_unit_price(),'Product Price')" /> / Units
</s>
</span>
</li>
+3 -2
View File
@@ -2344,8 +2344,9 @@ export class Orderline extends PosModel {
tax: this.get_tax(),
product_description: this.get_product().description,
product_description_sale: this.get_product().description_sale,
pack_lot_lines: this.get_lot_lines(),
customer_note: this.get_customer_note(),
pack_lot_lines: this.get_lot_lines(),
customer_note: this.get_customer_note(),
taxed_lst_unit_price: this.get_taxed_lst_unit_price(),
};
}
generate_wrapped_product_name() {