diff --git a/app/db/sync_invoices.py b/app/db/sync_invoices.py index 06f7705..ecb4dbe 100644 --- a/app/db/sync_invoices.py +++ b/app/db/sync_invoices.py @@ -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 = (