From 502c9fc61749fcc1f89d9521aaa65ebaeb7d8dd7 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 5 Nov 2025 19:01:52 +0100 Subject: [PATCH] descuent_det --- app/db/sync_invoices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = (