fix: Se elimina producto Tip de Bill report
This commit is contained in:
parent
cd199fbaa0
commit
57f95f0b7d
2
sale.py
2
sale.py
@ -178,7 +178,7 @@ class Sale(metaclass=PoolMeta):
|
|||||||
"unit_price": str(line.amount_w_tax) if line.type != 'title' else None,
|
"unit_price": str(line.amount_w_tax) if line.type != 'title' else None,
|
||||||
"taxes": str(round(line.taxes[0].rate * 100, 2))+'%'
|
"taxes": str(round(line.taxes[0].rate * 100, 2))+'%'
|
||||||
if line.type != 'title' and line.taxes else None
|
if line.type != 'title' and line.taxes else None
|
||||||
} for line in record.lines if not line.product.tip]
|
} for line in record.lines if line.type == 'line' and not line.product.tip]
|
||||||
|
|
||||||
data["total_discount"] = str(round(record.total_discount,2))
|
data["total_discount"] = str(round(record.total_discount,2))
|
||||||
data["untaxed_amount"] = str(record.untaxed_amount)
|
data["untaxed_amount"] = str(record.untaxed_amount)
|
||||||
|
Loading…
Reference in New Issue
Block a user