Resuelto - establecer 0 cuando descuento es None
This commit is contained in:
parent
f793cd2240
commit
9b09fbbcd1
|
@ -7502,7 +7502,7 @@ class Tickets(BaseModel):
|
|||
|
||||
cantidad = float(producto['cantidad'])
|
||||
valor_unitario = self._without_tax(self, producto['valor_unitario'], p)
|
||||
descuento = float(producto['descuento'])
|
||||
descuento = float(producto['descuento'] or 0)
|
||||
precio_final = valor_unitario - descuento
|
||||
importe = round(cantidad * precio_final, DECIMALES)
|
||||
|
||||
|
|
Loading…
Reference in New Issue