se corrige campo notes para que no ponga none al convertir en string

This commit is contained in:
David Arranz 2026-02-04 11:45:09 +01:00
parent 80e88e98a0
commit 3ecf1be181

View File

@ -105,7 +105,7 @@ def normalize_header_invoice_fields(fd: Dict[str, Any]) -> Dict[str, Any]:
"operation_date": str(fd['FECHA_FACTURA']),
"description": textwrap.shorten(
f"{str(fd['REFERENCIA'])} - {str(fd.get('NOMBRE')) or ''}", width=50, placeholder=""),
"notes": str(fd["OBSERVACIONES"]),
"notes": fd["OBSERVACIONES"],
# siempre tendrán 2 decimales
'subtotal_amount_value': cents(fd.get('IMPORTE_NETO')),
'discount_amount_value': cents(fd.get('IMPORTE_DESCUENTO')),