se corrige campo notes para que no ponga none al convertir en string
This commit is contained in:
parent
80e88e98a0
commit
3ecf1be181
@ -105,7 +105,7 @@ def normalize_header_invoice_fields(fd: Dict[str, Any]) -> Dict[str, Any]:
|
|||||||
"operation_date": str(fd['FECHA_FACTURA']),
|
"operation_date": str(fd['FECHA_FACTURA']),
|
||||||
"description": textwrap.shorten(
|
"description": textwrap.shorten(
|
||||||
f"{str(fd['REFERENCIA'])} - {str(fd.get('NOMBRE')) or ''}", width=50, placeholder="…"),
|
f"{str(fd['REFERENCIA'])} - {str(fd.get('NOMBRE')) or ''}", width=50, placeholder="…"),
|
||||||
"notes": str(fd["OBSERVACIONES"]),
|
"notes": fd["OBSERVACIONES"],
|
||||||
# siempre tendrán 2 decimales
|
# siempre tendrán 2 decimales
|
||||||
'subtotal_amount_value': cents(fd.get('IMPORTE_NETO')),
|
'subtotal_amount_value': cents(fd.get('IMPORTE_NETO')),
|
||||||
'discount_amount_value': cents(fd.get('IMPORTE_DESCUENTO')),
|
'discount_amount_value': cents(fd.get('IMPORTE_DESCUENTO')),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user