Use list price used to calculate unit list price on point of sale

This commit is contained in:
Cédric Krier
2025-10-17 17:27:27 +02:00
parent c36128f264
commit b84bec1dcf
+2 -2
View File
@@ -552,8 +552,8 @@ class POSSaleLine(ModelSQL, ModelView, TaxableMixin):
self.unit_list_price = round_price(Tax.reverse_compute(
self.unit_gross_price, self.taxes,
date=self.sale.date))
elif self.product.list_price is not None:
self.unit_list_price = self.product.list_price
elif self.product.list_price_used is not None:
self.unit_list_price = self.product.list_price_used
taxes = Tax.compute(
self.taxes, self.unit_list_price, 1,
date=self.sale.date)