mirror of
https://bitbucket.org/presik/trytonpsk-dash_sale.git
synced 2023-12-14 05:22:58 +01:00
Add unit price w tax to res
This commit is contained in:
parent
9d5d223c34
commit
96f68be41d
4
sale.py
4
sale.py
|
@ -134,10 +134,10 @@ class Sale(metaclass=PoolMeta):
|
||||||
percent_commission = price_line.price_list.percent_commission
|
percent_commission = price_line.price_list.percent_commission
|
||||||
|
|
||||||
#ADD TAXES
|
#ADD TAXES
|
||||||
taxes_ids = [t.id for t in product.customer_taxes_used]
|
# taxes_ids = [t.id for t in product.customer_taxes_used]
|
||||||
# res = cls.get_price_with_tax([line], ['amount_w_tax', 'unit_price_w_tax'])
|
# res = cls.get_price_with_tax([line], ['amount_w_tax', 'unit_price_w_tax'])
|
||||||
res = {
|
res = {
|
||||||
# 'unit_price_w_tax': math.ceil(res['unit_price_w_tax'][None]),
|
'unit_price_w_tax': math.ceil(product.sale_price_taxed),
|
||||||
# 'amount_w_tax': math.ceil(res['amount_w_tax'][None]),
|
# 'amount_w_tax': math.ceil(res['amount_w_tax'][None]),
|
||||||
# 'taxes': [[('add'), taxes_ids]],
|
# 'taxes': [[('add'), taxes_ids]],
|
||||||
'unit_price': math.ceil(unit_price),
|
'unit_price': math.ceil(unit_price),
|
||||||
|
|
Loading…
Reference in a new issue