descuent_det

This commit is contained in:
David Arranz 2025-11-05 19:01:52 +01:00
parent 0e3d9d4fcf
commit 502c9fc617

View File

@ -210,9 +210,9 @@ def insertar_datos(conn_mysql, filas, conn_factuges, config):
factura_detalle['CANTIDAD'] or 0)*100
item_unit_amount_value = None if factura_detalle['IMPORTE_UNIDAD'] is None else (
factura_detalle['IMPORTE_UNIDAD'] or 0)*10000
Descuento = factura_detalle['DESCUENTO']
Descuento = factura_detalle['DESCUENTO_DET']
item_discount_percentage_value = None if Descuento is None else None if Descuento == 0 else (
factura_detalle['DESCUENTO'])*100
factura_detalle['DESCUENTO_DET'])*100
item_discount_amount = None
# Se calcula en el objeto de negocio de nuevo, comprobar si coincide
# item_discount_amount = (